Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IncrementalLauncher invoke saveCache error #3404

Closed
liulhdarks opened this issue Jun 9, 2020 · 1 comment · Fixed by #3557
Closed

IncrementalLauncher invoke saveCache error #3404

liulhdarks opened this issue Jun 9, 2020 · 1 comment · Fixed by #3557

Comments

@liulhdarks
Copy link

My sources code depends on tripartite libraries, but I want to use IncrementalLauncher to analysis only source code without JAR packages, it can succeed to build model, but when I execute saveCache method, it will report erros:
spoon.support.compiler.SnippetCompilationError: The import org.apache.ibatis cannot be resolved at [C@3c137612:7 at spoon.support.compiler.jdt.JDTBasedSpoonCompiler.reportProblemsWhenCompiling(JDTBasedSpoonCompiler.java:590) at spoon.support.compiler.jdt.JDTBasedSpoonCompiler.compile(JDTBasedSpoonCompiler.java:160) at spoon.IncrementalLauncher.saveCache(IncrementalLauncher.java:267)

  1. why IncrementalLauncher must invoke compile method?
    getModelBuilder().compile(SpoonModelBuilder.InputType.FILES);

  2. if I want to build incremental model, is it the only way to use IncrementalLauncher? can I add a new CtClass or update existing CtClass from single source code string to the model built by SpoonAPI launcher?

@monperrus
Copy link
Collaborator

Thanks for the bug report! Would you create a PR with a failing test case? It would be super helpful to fix the bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants