-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Java Extension Pack installs but does not work properly #444
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
Comments
Will fix. Thanks for the report! |
I've tried similar things. Of possible note, installing the Java Extension Pack on native VS Code also installs other extensions named in the pack; I notice that neither my coder.com instance nor my self-hosted show that the following are installed:
Unfortunately even after installing those (and OpenJDK 11, and maven) I'm unable to get any of the Java features to work. |
same issue here - cannot get that pack to work |
i was able to start, debug & run tests a spring app... the extension is installed before code-server starts - maybe this is the key that this puppy works. else, try to open the command prompt (Keyboard Shortcut: ⇧⌘P (Windows, Linux Ctrl+Shift+P)) and type Reload Window (vscode restarts and the extenions are reloaded/installed) |
Hi @adrianliechti - thanks for sharing this impressive Dockerfile! cool work! I will give it a try later. I have the RedHat Java extension installed her: And I restart code-server every day so that cannot be the root cause as well. |
I tried to run code-server as a non-root user. I had to re-install the Java extension pack, I stopped code-server, restarted, logged in again but still it doesn't work. To tell whether it works or not I did two simple tests within an existing (and working) Java source code file:
My JAVA_HOME is set to |
I see this error when I connect to code-server using my browser:
not sure if this has anything to do with this |
@ksemba The |
I did some experimenting with this using both the stock Coder image and the Dockerfile @adrianliechti posted above.
After installing the plugins manually as per the Dockerfile above, I was still not able to get code completion. However at this point I was getting errors from the |
Thanks @nyxcharon - manually installing the Java extension according to @adrianliechti 's Dockerfile and restarting code-server worked!! Thank you all! |
I had try install both |
I ran into this issue also, and the above discussion pretty much points to the reason some work, some dont. The specific plugins and order of install are not the issue, it appears to be installing from microsoft sources (aka @andrianliechti Dockerfile example) or from Coder's marketplace (using code-server --install-extension or the in-app marketplace) My guess is something is off in the coder copy. also, hats off to @andrianliechti awesome work on that Dockerfile! Definitely stealing some ideas there! |
A follow up/me too: Is this particular to them being MS components, or the wrapping extension? Is there something I need to do on my side to enable this "custom marketplace", or is that there already by default? re: some parts: |
I had the same issue. I.e. just syntax highlighting and nothing else worked. |
Hey all, try out v2 in Releases. I think we fixed this one. |
@sr229 what exactly the solution here? |
Did you find any solution to this? I have the exact same problem and can't get what's wrong. |
@coloal It's possible the extension has broken again, please feel free to open a new issue and fill in the details and we'll take a look. |
It works for me, thanks! |
code-server
version: 1.604-vsc1.32.0systemd-nspawn
container.Description
When opening a Java file after installing the Java Extension Pack, the syntax highlighting works, but nothing else does - I don't get the rocket as described on https://code.visualstudio.com/docs/java/java-tutorial.
I have verified that the same setup works on desktop (Linux) VS Code.
I have installed OpenJDK 11 inside the coder container.
Steps to Reproduce
The text was updated successfully, but these errors were encountered: