Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • 15:55
    Ao-Last edited #2297
  • 14:11
    Ao-Last opened #2297
  • Jan 22 20:53
    jeffemandel closed #2270
  • Jan 22 20:53
    jeffemandel commented #2270
  • Jan 22 18:27
    snjeza commented #2287
  • Jan 22 04:33
    mozhuanzuojing edited #2286
  • Jan 21 20:24
    snjeza commented #1607
  • Jan 21 07:48
    Osolemio44 commented #2287
  • Jan 21 03:50

    rgrunber on master

    Add Changelog for 1.3.0 Signed… (compare)

  • Jan 21 03:50
    rgrunber closed #2290
  • Jan 21 02:45
    github-actions[bot] labeled #2240
  • Jan 21 02:45
    github-actions[bot] labeled #2295
  • Jan 21 02:44

    testforstephen on master

    Check Gradle compatibility when… (compare)

  • Jan 21 02:44
    testforstephen closed #2245
  • Jan 21 02:44
    testforstephen closed #2225
  • Jan 20 23:57
    mozhuanzuojing commented #2294
  • Jan 20 21:18
    rgrunber synchronize #2295
  • Jan 20 20:57
    openshift-ci[bot] labeled #2295
  • Jan 20 20:57
    rgrunber converted_to_draft #2295
  • Jan 20 20:57
    rgrunber opened #2295
Fred Bricon
@matevarga providing a sample project reproducing the issue would help
@matevarga when opening a project in vscode-java, don't run maven clean builds at the same time, or else vcode-java will freak out, restart a new build, thus deleting some of the classes being built by the CLI. Everybody loses in the end
Mate Varga
Okay, thanks - this is interesting, we have never seen such a problem with e.g. IDEA, but it kind of makes sense.
@fbricon is it OK to run clean install from VSC itself? (as a 'Maven command'). We need to run these occasionally (so that the app server reloads the artifact)
Bruce Han
Hi everyone, has anyone tries java.import.exclusions setting before? Does it really work
Hello, m getting an error in creating a new file. Whenever I write filename.java in V S Code it shows "(FileSystemError): Error: EPERM: operation not permitted", kindly help me.
Greg Oliver
Hi. Installed the Java Extension Pack recently. New to Java development. Need to add an import but getting red squiggles: "The package ... is not accessible". I can see it in the maven repository (~/.m2/repository/...) I set Java>Configuration>Maven: Global Settings to the settings.xml and set localRepository to ${user.home}/.m2/repository. Help!
Hello everyone actually i want to start contibuting. so please can someone guide me
Jinbo Wang
@kaffan I assume you want to know how to setup environment and debug the extension itself, you could have a look at https://github.com/redhat-developer/vscode-java/blob/master/CONTRIBUTING.md
thank you for that
i have 2 goals
  1. i want to learn new tech and contribute 2. i wnt to crack gsoc
hi guys I have a problem with de java.home. I can't use vscode for java. I have a Fedora machine. [The java.home variable defined in Visual Studio Code settings (/usr/lib/jvm/java-11-openjdk- does not point to a JDK.] but I have the JDK in this path and I add the path in ./bash_profile [export JAVA_HOME='/usr/lib/jvm/java-11-openjdk-'
export PATH=$PATH:$JAVA_HOME/bin
] Help me please!!
Fred Bricon
@da2my set "java.home"="/usr/lib/jvm/java-11-openjdk-" in settings.json. see the documentation for that setting
Carlos Gómez
Evening! I'm trying to work with an eclipse project in VSCode. I've installed the recommended exceptions and everything seems to work, mostly. For some reason in the java projects tab they all appear to be empty, unlike in eclipse where I can see their hierarchy and all of their dependencies.
Any idea about what could be going on?
I expected to get something like this screenshot, for reference
Oliver Chico
hello anyone know why this happening? when i switch java launchmode to lightweight it shows the details of each methods on the box, but on default(hybrid or standard) it shows nothing.
Hi All - I am looking to recruit multiple Java Developers to join first derivatives based in London at all levels. Ideally looking for someone with Financial Service background and knowledge of cloud technologies such as GCP/AWS/Azure
Iwan Aucamp

I'm having this problem,

[Error - 1:38:34 PM] Feb 19, 2021, 1:38:34 PM Error while handling document save. URI: file:///home/iwana/syncthing/sw-wpw/d/dev.azure.com/pdgm/BigLoop/incubator/bla-ted/teg-server-b-stub/src/main/java/shaij/Fake.java
teg-server-b-stub/src/main/java/shaij [in bla-ted] does not exist
Java Model Exception: Java Model Status [teg-server-b-stub/src/main/java/shaij [in bla-ted] does not exist]
    at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException(JavaElement.java:573)

But I can't see why. I am doing nothing different from other subprojects in the same project

Iwan Aucamp
Okay, cleaning out settings helped:
find . -iregex '^.*/[.]\(classpath\|project\|settings\)'  | xargs -t rm -vr
\rm -vr */bin/
and a bit annoying
I actually expected ./gradlew eclipse to do that
Krishna Hrithik
i have created a maven-archetype-quickstart project, how to connect mysql to it?
Ronak Gandhi
A question about importing large multiple Maven projects. What settings to use for java.jdt.ls.vmargs?
Brian Weller
Hello All. working with a client who does their own desktop deployment package of VSCode. The base installation is locked down under Program Files. When I use the refactoring or apply a 'fix' I get the following error 'running the contributed command: 'java.apply.workspaceEdit' failed. Attaching log and version details as images. Note that because the client's build is locked down I run code with the --extensions-dir option so that I can install this plugin. Thanks in advance.
Tomer Eliyahu

Hi, not sure if this is the right place to ask - but I'm trying to run a spring boot test in vscode which depends on pom.xml with the following:


And it fails on downloading it, probably since I'm running behind a proxy:

2021-03-16 23:09:08.309  INFO 2925741 --- [           main] o.s.b.a.mongo.embedded.EmbeddedMongo     : Download 3.2.2:Linux:B64 : starting...

My proxy is set up correctly in ~/.m2/settings.xml and I can run mvn clean install which downloads all the non-test dependencies automatically during build from the command line (zsh).

I tried setting the following according to https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-maven:

"maven.executable.options": "-Dhttp.proxyHost=my-proxy.org.com -Dhttp.proxyPort=911",

Any ideas?

Tomer Eliyahu
OK so I'm pretty sure that the problem is that the language server JVM doesn't set the proxy system properties - how can I verify if this is indeed the case?
Asir Shahriar Roudra

I've set up my vs code for java. But while installing Language Support for Java(TM) by Red Hat extension it is giving an error. Here is the log message:

[2021-03-22 23:31:42.665] [renderer1] [error] An unknown error occurred. Please consult the log for more details.
[2021-03-23 00:06:53.635] [renderer1] [error] Corrupt ZIP: end of central directory record signature not found: validating: Corrupt ZIP: end of central directory record signature not found
    at G.downloadInstallableExtension (file:///F:/Programming/Softwares/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:212029)
    at async G.doInstallFromGallery (file:///F:/Programming/Softwares/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:209233)

Then I downloaded it manually and tried to install but error happend again. Here is the log:

[2021-03-23 00:31:32.133] [renderer1] [error] invalid comment length. expected: 3755. found: 0: Error: invalid comment length. expected: 3755. found: 0
    at S (file:///F:/Programming/Softwares/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:192087)
    at file:///F:/Programming/Softwares/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:193482
    at F:\Programming\Softwares\Microsoft VS Code\resources\app\node_modules.asar\yauzl\index.js:37:7
    at F:\Programming\Softwares\Microsoft VS Code\resources\app\node_modules.asar\yauzl\index.js:133:16
    at F:\Programming\Softwares\Microsoft VS Code\resources\app\node_modules.asar\yauzl\index.js:631:5
    at F:\Programming\Softwares\Microsoft VS Code\resources\app\node_modules.asar\fd-slicer\index.js:32:7
    at FSReqCallback.wrapper [as oncomplete] (fs.js:524:5)

how to solve this problem?

Hello, I begin my first project of code editing solo. Please how can I check that I have installed correctly VScode-java version for first time with all the required components ?
Prashanth Nandavanam
Hello all, the project I am the architect of uses Java (Spring Boot), NodeJS, and Python, among other technologies. My Java developers use Eclipse, IntelliJ, and VSCode. I enforce our formatting guidelines via an Eclipse formatter file, and that works well for Eclipse and IntelliJ. With VSCode, however, I am unable to get it to use the Eclipse formatter file. I have tried specifying the absolute location like this:
"java.format.settings.url": "/Users/pnandavanam/eclipse-codeformatter.xml", but VSCode simply does not use it. I've got the usual Java extensions installed, and not much else (The RedHat and Microsoft Java extensions). Any idea on how to get VSCode to use my Eclipse formatter? Thanks in advance!
@forwardmeasure could you create an issue at https://github.com/eclipse/eclipse.jdt.ls/issues/new/choose ?
In a monorepo with multiple java projects, why does the extension try to build all of them? How do I get it to stop?
Fred Bricon
@forwardmeasure you're facing redhat-developer/vscode-java#1827. Please try a CI build to check it's fixed in 0.77.0 for you
1 reply

I had a project which compiled completely fine on another computer, but when I cloned the repo on my current computer, I'm getting this error when trying to compile

Exception calling "DownloadFile" with "2" argument(s): "Ett undantag uppstod under en WebClient-begäran."
At line:1 char:282
+ ... pe]::Tls12; $webclient.DownloadFile('https://repo.maven.apache.org/ma ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : WebException

Fel: kunde inte hitta eller ladda huvudklassen org.apache.maven.wrapper.MavenWrapperMain
Orsakades av: java.lang.ClassNotFoundException: org.apache.maven.wrapper.MavenWrapperMain

Translated version

Exception calling "DownloadFile" with "2" argument(s): "An exception occurred during a WebClient request."
At line:1 char:282
+ ... pe]::Tls12; $webclient.DownloadFile('https://repo.maven.apache.org/ma ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : WebException

Error: could not find or load main class org.apache.maven.wrapper.MavenWrapperMain
Caused by: java.lang.ClassNotFoundException: org.apache.maven.wrapper.MavenWrapperMain
I can't even create a new project
Catarina Gamboa
Hello everyone, I would like to create a VSCode Java Extension to enhance the existing VSCode Java features with a new kind of verification/diagnostic (related to refinement types in Java). I saw that this should possible (https://github.com/redhat-developer/vscode-java/wiki/Contribute-a-Java-Extension) and I was wondering if you could point me to a project that implements this kind of extension. Thanks in advance!
Catarina Gamboa
Thank you for the fast response @snjeza!
Anyone know how to prevent language server from truncating stacktraces when logging an exception? I'm hitting an issue with an annotation processor but most of the stacktrace is truncated ("... 25 more") and cannot see the root cause.
Nevermind, apparently org.eclipse.jdt.internal.compiler.problem.AbortCompilation is the root cause and doesn't provide any sort of message.
Good evening, does anyone knows if:

Does VSCode offer an intellij Keyboard mapping?