Closed dankox closed 4 years ago
@dankox what version of Java are you using? We require a full SDK of Java 8 or higher.
I have JDK 8 (not sure if that qualifies as full SDK):
java version "1.8.0_221" Java(TM) SE Runtime Environment (build 1.8.0_221-b11) Java HotSpot(TM) Client VM (build 25.221-b11, mixed mode, sharing)
I have in the same vscode ReadHat Java Language Support extension for running and debugging Java projects.
Also, I wouldn't even mind that error, but it focuses OUTPUT panel instead of my Terminal panel which I have opened. It sounds more like issue for vscode, but it doesn't happen with other extensions even if they have some errors. They write it into output panel but they don't bring it up.
The call stack indicates that it is a Java Runtime issue. You need to install the 64bit Java SDK. It might also work with the Server JRE from Oracle. Another (preferred) alternative is to download the IBM Java linked in our online help. We will do more testing with the different JRE variants and update our documentation.
Just a comment, if somebody else finds this issue and wants to know more.
You can actually setup Java path in settings, it is zopeneditor.JAVA_HOME
field in settings.json. This is useful if you have multiple Java version and don't want to swap them in path just because of this extension.
Or if you just want to disable the focus of the OUTPUT panel no matter what (as I wanted) and you are fine with just the highlighting functionality and no LSP, you can update the extension.js
file in ~/.vscode/extensions/ibm.zopeneditor-0.3.11/dist
directory where you replace revealOutputChannelOn:n.revealOutputChannelOn||p.Error
with revealOutputChannelOn:4
.
What this does, is it turns revealing output channel on error to never reveal it. Errors will be still logged, it just doesn't get the focus so you can work in Terminal or elsewhere.
The call stack indicates that it is a Java Runtime issue. You need to install the 64bit Java SDK. It might also work with the Server JRE from Oracle. Another (preferred) alternative is to download the IBM Java linked in our online help. We will do more testing with the different JRE variants and update our documentation.
I'm not possible to install 64-bit version of Java 8 JDK, only 32-bit.
jdk1.8.0_251 is not solving this issue.
What should I do?
vscode Version: 1.39.2 (user setup) Commit: 6ab598523be7a800d7f3eb4d92d7ab9a66069390 Date: 2019-10-15T15:35:18.241Z Electron: 4.2.10 Chrome: 69.0.3497.128 Node.js: 10.11.0 V8: 6.9.427.31-electron.0 OS: Windows_NT x64 10.0.18362
An error occurs, when opening a sample cobol program in vscode. Highlight works ok, but OUTPUT panel get focus and shows this error. My main problem is that the output panel shows up even if I don't want it, as I have there terminal. I guess that might be vscode issue (although I saw that they resolved it before).
But the issue with ClassDefFoundError is from cobol language server. So I'm attaching the error and also the sample of program where it happens.
steps to reproduce
error
program