-
Notifications
You must be signed in to change notification settings - Fork 60
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 main class could not be found or loaded #2316
Comments
Could you let me know how you installed the extension? |
I used the vscode extension menu. The vscode windows that I used was opened through "code ." in the wsl terminal. Afaik that means the vscode server runs on wsl whole the interface runs on windows (?) |
Thank you for your response! Could you please check the cobol ls extension in the %USERPROFILE%.vscode\extensions (~/.vscode/extensions in the case of Linux) folder? There should be broadcommfd.cobol-language-support-[vertsion]/server/jar folder. Please share the server.jar from there. One more thing:
I'm not a Windows user, but I expect the JVM to run the server in the same environment as a node that runs vscode. I'm not sure that it can be related to the path. Otherwise, I would expect something like a jar not found exception. |
So in windows, there is no such extension. I guess thats because I installed the extension on the linux side. I tried the native mode already and that indeed works. What makes the whole thing a bit unusable for me is that "SCREEN SECTION" is not supported. Any chance to make that work? |
Hello, Alternatively, I can organize an online meeting with you using your email address. |
@Fuzzyma it looks like windows java is being executed under WSL which causes issues with paths. Could you, please, try installing java in your WSL environment and see if the issue persists? |
Description
Installing the vscode extension produces popups notifying that the language server crashed 5 times.
Lookingh at the logs, it seems like the java class
java.lang.ClassNotFoundException: org.eclipse.lsp.cobol.LangServerBootstrap
is not foundSteps to reproduce
code .
Expected behavior
Extension should work
Screenshots
Language server crashes
Environment
Win10 with wsl (5.15.146.1-microsoft-standard-WSL2)
Additional information
The text was updated successfully, but these errors were encountered: