fixed regex parsing for godot4 beta4 #13
Merged
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.
The regex parses the godot version in the format such as:
4.0.beta.official.e6751549c
For whatever reason, the godot 4 beta version (returned by $GODOT4_BIN --version) returns:
4.0.beta4.official.e6751549c
This results in the version regex to fail to match. This pull request simply adds an optional [0-9] to accept one or more digits after "beta" to match (which are ignored).
This only seems to affect recompilation -- compiling for the first time does not have this issue.
Additionally, it looks like there are generated files placed in godot-codegen/input/gen, instead of the target directory, which prevents
cargo clean
from removing the generated json file. This made this issue a bit more frustrating, since a clean rebuild was still using generated files from a previous build (meaning that only a fresh build would compile, but recompiling/clean compiling would not).I don't want to submit another pull request changing this without understanding the rational, but this might be something worth changing.