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

Build runs on every compile #85

Open
masonwheeler opened this issue Jul 25, 2024 · 2 comments
Open

Build runs on every compile #85

masonwheeler opened this issue Jul 25, 2024 · 2 comments

Comments

@masonwheeler
Copy link

The ANTLR build process appears to run every time I build the containing assembly. This wouldn't be so bad if it didn't take so long, but when I'm trying to fix a test failure, rebuild, and run the test again, taking 10+ seconds to run an external Java engine to rebuild something I don't need rebuilt severely damages my iteration speed.

Would it be possible to put a check in the build task that can determine "we have existing generated code files in obj, and the timestamp on them is newer than the Last Modified timestamp on the .g4 files, therefore we don't have to rebuild anything"?

@kaby76
Copy link
Owner

kaby76 commented Jul 26, 2024 via email

@masonwheeler
Copy link
Author

Sorry, nevermind; I should have checked this further. I knew the parser was slowing things down drastically, but upon investigation it looks like it isn't running ANTLR every time. It's that the generated parser + lexer files are over 100,000 lines of code, and CSC is taking a while to chew through them.

My bad.

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

No branches or pull requests

2 participants