Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
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
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
+ ... 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
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!
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 ?
BuZZ-dEE
@buzz-dee:matrix.org
[m]
:point_up: Edit: hi, i'm missing cdi support in vscode-java? is there something i need to install ?
Massinissa Bouziad
@massi4j_twitter
@buzz-dee:matrix.org I'm using spring boot extension to resolve my beans. It's the only extension as far as I know that is able to do that. Unfortunately this extension doesn't resolve CDI annotation only spring support
1 reply
Massinissa Bouziad
@massi4j_twitter
hi, I'm trying to know if there is a limitation with maven support in vscode, as the language server doesn't resolve an additionnal source path added with swagger-codegen-maven-plugin.
This plugin generate javaClasses starting from swagger definition.
                <groupId>io.swagger</groupId>
                <artifactId>swagger-codegen-maven-plugin</artifactId>
                <version>${swagger-codegen-maven-plugin.version}</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                        <configuration>
                            <inputSpec>/sompath/to/swaggerdef.json</inputSpec>
                            <modelPackage>com.my.model</modelPackage>
                            <apiPackage>com.my.api</apiPackage>
                            <language>jaxrs-cxf-client</language>
                            <generateApiTests>false</generateApiTests>
                            <configOptions>
                                <dateLibrary>java8</dateLibrary>
                                <sourceFolder>myfolder</sourceFolder>
                            </configOptions>
                            <output>target/generated-sources</output>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
1 reply
Pola-Haw
@Pola-Haw
Sorry, but I'm totally green and don't get anything. I just start learning and figuring out how to set everything up and what resources to use to learn comfortably (to extend it is possible). I'm just looking for help in this regard.
I don't know even which openJDK download for my Win7 64bit...
1 reply
phoebej89
@phoebej89
hello
Thomas Oster
@t-oster
Hi, I do have a project which uses my own annotation processor (https://lazysql.thomas-oster.de/). I got it working with using the maven-apt plugin as described here (https://github.com/redhat-developer/vscode-java/wiki/Annotation-Processing-support-for-Maven-projects). The problem is if the annotation processor throws a compiler message or warning, it is not displayed in the IDE.
ninadpawar925
@ninadpawar925
how to run java frame program in vs code
dr3s
@dr3s
I want to confirm some behavior before opening a github issue. No matter what I change, my multi-module gradle project in VSCode creates classpath entries and compiles code to bin instead of build whether the default or set explicitly. Is there anything I can check that would be misconfigured? This seems like a clear bug that I can't work around because the setting isn't able to be changed for the JLS when gradle is used.
dr3s
@dr3s
https://docs.gradle.org/current/dsl/org.gradle.api.Project.html#org.gradle.api.Project:buildDir says the default is build. I have searched for the term build and bin in my source and I got nada. I tried setting buildDir in settings.gradle and nothing. I would be happy to provide my gradle properties, screenshots in vscode, and logs if you like.
image.png
dr3s
@dr3s
image.png
back to intellij I guess
charkins
@charkins
How can I tell what version of jdt.ls is being used by vscode-java? I appear to be getting hit by https://bugs.eclipse.org/bugs/show_bug.cgi?id=377850 which was fixed ~4.15
Snjeza
@snjeza
@charkins You can run Java: Open Java Language Server Log File and find a line like the following:
!MESSAGE Initializing Java Language Server 1.5.0.202110161628
charkins
@charkins

!MESSAGE Initializing Java Language Server 1.5.0.202110190407

So I assume the fix in bug #377850 is in. Must be a regression or being triggered another way.

Snjeza
@snjeza
@charkins you can create a new issue at https://github.com/redhat-developer/vscode-java/issues
charkins
@charkins
Pretty sure the issue is upstream in the language server, so i'll probably try up there first. Thanks
ente-ente
@ente-ente:matrix.org
[m]
Good Morning! I have a single directory workspace. Each subdirectory is on "project". There is also one java project among them. But vs code does not recognize the java project. I does, when I add the subdirectoy as a second workspace folder. But that is not really what I want. How can I tell the java support where to look for my project?
爱吃猫的鱼
@itomcat666
hello everyone! the new version Language Support for Java(TM) by Red Hat has bug ,it can`t suggest jdk8 lambda from version 1.1.0,but it work on version 1.0.0
Snjeza
@snjeza
@itomcat666 could you, please, create a new issue at https://github.com/redhat-developer/vscode-java/issues/new ?
爱吃猫的鱼
@itomcat666
@snjeza i hava create issue redhat-developer/vscode-java#2253
爱吃猫的鱼
@itomcat666
@ente-ente:matrix.org yeah!I has upload the demo project under the issue,thank you !