We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I use IncrementalLauncher, if I set setShouldCompile to false, it will always rebuild and not use cache;
When setShouldCompile is false, the class file will not be filled into class-files, resulting in an empty folder
Finally, the class-files folder will be deleted
When analyzed again, the class-files folder doesn't exist, Leading to a constant rebuild
No response
FilteringFolder filteringFolder = filteringFolder.addFolder(new FileSystemFolder(projectPath)); List<SpoonFile> allSpoonFiles = filteringFolder.getAllFiles(); Set<File> allFiles = allSpoonFiles.stream().map(file -> file.toFile()).collect(Collectors.toSet()); IncrementalLauncher incrementalLauncher = new IncrementalLauncher(allFiles, Collections.EMPTY_SET, new File(dataCollector.project.getOutDirStr())); incrementalLauncher.getEnvironment().setComplianceLevel(11); incrementalLauncher.getEnvironment().setAutoImports(true); incrementalLauncher.getEnvironment().setIgnoreDuplicateDeclarations(true); incrementalLauncher.buildModel(); // This bug occurs only when false is set incrementalLauncher.getEnvironment().setShouldCompile(false); incrementalLauncher.saveCache()
10.4.0
11
windows
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
When I use IncrementalLauncher, if I set setShouldCompile to false, it will always rebuild and not use cache;
reason:
When setShouldCompile is false, the class file will not be filled into class-files, resulting in an empty folder
Finally, the class-files folder will be deleted
When analyzed again, the class-files folder doesn't exist, Leading to a constant rebuild
Source code you are trying to analyze/transform
No response
Source code for your Spoon processing
Actual output
No response
Expected output
No response
Spoon Version
10.4.0
JVM Version
11
What operating system are you using?
windows
The text was updated successfully, but these errors were encountered: