-
Notifications
You must be signed in to change notification settings - Fork 17
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
Simplify plugin configuration #179
Open
JojOatXGME
wants to merge
8
commits into
JetBrains:master
Choose a base branch
from
JojOatXGME:simplify
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Commits on Jun 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c910ff5 - Browse repository at this point
Copy the full SHA c910ff5View commit details -
Configuration menu - View commit details
-
Copy full SHA for c8992ab - Browse repository at this point
Copy the full SHA c8992abView commit details -
Create java file in subdirectory matching package
Introduce GenerateLexerTask.targetRootOutputDir as a replacement of targetOutputDir. When using the new property, the task creates the java sources in the directory matching the package name. The package name is detected using some heuristics. The commit also introduces GenerateLexerTask.packageName to manually specify the package name.
Configuration menu - View commit details
-
Copy full SHA for e6d8b38 - Browse repository at this point
Copy the full SHA e6d8b38View commit details -
Make pathToParser and pathToPsiRoot optional
The two properties of GenerateParserTask are only used when purgeOldFiles is explicitly set to true, but they still had to be specified. As of this commit, if purgeOldFiles is set to true but none of the two properties are specified, the task will delete the whole content of targetRootOutputDir. I am not aware of any reason not to delete the whole directory of targetRootOutputDir unless the directory is overlapping with other files than the files generated by this task. Since overlapping task outputs are explicitly discouraged by Gradle, I deprecated the two properties.
Configuration menu - View commit details
-
Copy full SHA for 713bf6a - Browse repository at this point
Copy the full SHA 713bf6aView commit details -
Stale files should be avoided because they can cause build failures at subsequent tasks in incremental builds. For example removing a grammar rule from a *.bnf file may cause a compilation error when the stale AST note tries to call its corresponding method on the visitor. In combination with the build cache, a stale file may even be persisted in the cache, making :clean ineffective for fixing such issue.
Configuration menu - View commit details
-
Copy full SHA for b4eeba6 - Browse repository at this point
Copy the full SHA b4eeba6View commit details -
Add default for targetRootOutputDir
The default should be sufficient in most use cases and makes the configuration of the plugin a bit easier. Note that the default is only available for the tasks :generateLexer and :generateParser. Custom tasks of type GenerateLexerTask or GenerateParserTask do not have a default for this property.
Configuration menu - View commit details
-
Copy full SHA for fcdd567 - Browse repository at this point
Copy the full SHA fcdd567View commit details -
Configuration menu - View commit details
-
Copy full SHA for 79f08a4 - Browse repository at this point
Copy the full SHA 79f08a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for a72533f - Browse repository at this point
Copy the full SHA a72533fView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.