-
Notifications
You must be signed in to change notification settings - Fork 10
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
error ANT02: Cannot find Java executable'' on MacOS #49
Comments
Sorry, I don't usually use MacOS, and I don't think I have a CI test for it yet. For now, make sure to install OpenJDK v11 or newer, and add it to your path. The one at /usr/bin/java is old, and doesn't even accept a --version option to test what version it is. That's why it downloads a .gz file--albeit the wrong one for MacOS. Also, I don't know if the package takes "*.g4". I do globbing, but I don't know if it's done on the .g4's. You may need to replace with each grammar file. I'll check this and add it in the next release. |
It works for windows and linux. The link to the pipeline builds passed :) |
still have the same issue on MacOS
|
@emmekappa It seems the version information checking in this package needs to be fixed.
The package tries to run java and test the version produced. That's because people install java that isn't version 11 or newer. In your case, you installed Sun's official SE java. With the "antlr4" tool in antlr4-tools, Parr just tests if java runs, which isn't quite good enough. This need to be fixed. I'll have something later today. |
<TargetFramework>netstandard2.1</TargetFramework>
https://github.com/rstm-sf/qsharp-compiler/blob/infra/use_Antlr4BuildTasks/src/QsFmt/Parser/Parser.csproj
https://dev.azure.com/ms-quantum-public/Microsoft%20Quantum%20(public)/_build/results?buildId=46269&view=results
The text was updated successfully, but these errors were encountered: