-
Notifications
You must be signed in to change notification settings - Fork 2
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
Document usage example #4
Comments
I can add more explanation about this to the readme later |
Did you configured the infer.jar file as shown in the screenshot here https://github.com/MagpieBridge/IntelliJLSP. A web page should be opened in your browser once the server started. There you can have buttons and configurations you can choose. The manual triggering is not in IDE but in the web page MagpieBridge generates. |
Yes, I did. May be this has to do with the plugin not being loaded properly, as the logs have
exception? full stacktrace
|
The stack trace for me looks like an issue using java 9+ to execute java 8 code. Can java 8 be found under your PATH which you configured in the MagpieBridge LSP configuration wizard? Since MagpieBridge and lsp4j are written in java 8, so the infer server must be executed by java 8. One thing I found was very annoying is that IntelliJ doesn't give me the PATH which has been set on my machine. That's why I left a configuration option for setting the PATH in the wizard (see here). The command line tool Infer has to be on the PATH too. |
@bzz if the suggestion on PATH still doesn't solve your problem, please share me the version of IntelliJ you are using, I can try to reproduce the error. |
Thank you for advice, but changing PATH did not help. It seems to me that the plugin fails to load due to class-loader failing to find the class Do you think it may have to do with https://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html#modules-available-in-all-products that mentions
and that I can not find in I'm sorry for not beeing more helpfull, but without ability to build the project locally (that is handled under #3) it's very hard for me to experiment more. I'm using the latest EAP version from https://www.jetbrains.com/idea/nextversion |
@bzz oh, sorry to hear that. We will try to make the plugin as you wish in #3 in the next few days and let you know. We are not experts in writing IntelliJ plugin. This one was first implemented experimentally. Thank you for your advice! |
It is well-documented to how to install already built plugin and configure it:
But how does one trigger the run?
https://github.com/MagpieBridge/InferIDE#when-is-infer-running gives some idea, but it is still not immediately clear how to trigger it manually from IDE?
That becomes especially important when after installing the plugin and the serve, one can only see this exception in the logs (latest IDEA 2020.2 EAP)
🤷
The text was updated successfully, but these errors were encountered: