## Where communities thrive

• Join over 1.5M+ people
• Join over 100K+ communities
• Free without limits
• Create your own community
##### Activity
• 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
• Jan 20 19:35
rgrunber commented #2290
• Jan 20 18:57
snjeza commented #2287
• Jan 20 18:54
rgrunber synchronize #2290
• Jan 20 18:50
rgrunber commented #2245
• Jan 20 17:57
fvclaus opened #2294
• Jan 20 17:02
dineiar edited #2292
Bruce Han
Hi everyone, has anyone tries java.import.exclusions setting before? Does it really work
SANCHARIKA DEBNATH
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
@sebastus
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! kaffan @kaffan Hello everyone actually i want to start contibuting. so please can someone guide me Jinbo Wang @testforstephen @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 kaffan @kaffan @testforstephen thank you for that i have 2 goals 1. i want to learn new tech and contribute 2. i wnt to crack gsoc da2my @da2my 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-11.0.9.11-4.fc33.x86_64/bin/java) 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-11.0.9.11-4.fc33.x86_64' export PATH=$PATH:$JAVA_HOME/bin ] Help me please!! Fred Bricon @fbricon @da2my set "java.home"="/usr/lib/jvm/java-11-openjdk-11.0.9.11-4.fc33.x86_64/" in settings.json. see the documentation for that setting Carlos Gómez @Kurolox 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 @oiko78 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. CMGFirstDerivatives @CMGFirstDerivatives 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 @aucampia 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 @aucampia Okay, cleaning out settings helped: find . -iregex '^.*/[.]$$classpath\|project\|settings$$' | xargs -t rm -vr \rm -vr */bin/ odd and a bit annoying I actually expected ./gradlew eclipse to do that Krishna Hrithik @kh-2000 i have created a maven-archetype-quickstart project, how to connect mysql to it? Ronak Gandhi @ronakg A question about importing large multiple Maven projects. What settings to use for java.jdt.ls.vmargs? Brian Weller @bmweller:matrix.org [m] 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 @tomereli 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:  <dependency> <groupId>de.flapdoodle.embed</groupId> <artifactId>de.flapdoodle.embed.mongo</artifactId> <scope>test</scope> </dependency> 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 @tomereli 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 @roudra323 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? krismael @krismael 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 @forwardmeasure 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! Snjeza @snjeza @forwardmeasure could you create an issue at https://github.com/eclipse/eclipse.jdt.ls/issues/new/choose ? shane99a @shane99a 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 @fbricon @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 HVEVB @HVEVB 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
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 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
HVEVB
@HVEVB
I can't even create a new project
Catarina Gamboa
@CatarinaGamboa
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!
Snjeza
@snjeza
Catarina Gamboa
@CatarinaGamboa
Thank you for the fast response @snjeza!
charkins
@charkins
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.
charkins
@charkins
Nevermind, apparently org.eclipse.jdt.internal.compiler.problem.AbortCompilation is the root cause and doesn't provide any sort of message.
Tom--
@schittli
Good evening, does anyone knows if:

## Does VSCode offer an intellij Keyboard mapping?

Sandared
@Sandared
Hi everyone. Since version 0.80.0 the build status always stucks at 46% for our project without any more information or error messages. Is there a way to make this more verbose to see what's happening? Version 0.79.2 with the same project works perfectly fine
fvclaus
@fvclaus

I am using prettier to format my Java code and have trouble getting the import order right. I want to use organizeImports on save to remove unused imports, but it seems that organizeImports runs after editor.formatOnSaveand messes up the order again. I have tried to replicate the order of prettier-java in my settings, but the way vscode-java sorts imports seems to be incompatible with prettier.
prettier-java will format

import lombok.experimental.UtilityClass;
import lombok.val;

and vscode-java ("java.completion.importOrder": [])

import lombok.val;
import lombok.experimental.UtilityClass;

This is just an example. It seems to affect all import statements that have a different package "depth".
Is there a setting to change the order in which formatOnSave and "java.saveActions.organizeImports": true run? I also tried

    "[java]": {
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
}

this will switch the output between prettier-java and vscode-java everytime the file is saved. Alternatively, is there a way to configure the package order in vscode-java without listing all possible packages?

Jacob Williams
@singlow
I have my java projects configured to use JavaSE-1.8 from build.gradle. That seems to be recognized in the status bar when editing a java file. However it seems that it allows me to use methods/classes that are from newer versions of java without complaining. My gradle build rejects it but in vscode it is just fine with me using List.of and autocompletes it even though it is not available in java 1.8.
BuZZ-dEE
@buzz-dee:matrix.org
[m]
hi, i'm missing cdi support in vscode? is there something i need to install ?