Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 12:52
    craynic commented #1118
  • 12:47
    fbricon commented #1118
  • 12:45
    craynic opened #1118
  • 12:25
    alexandrudima commented #1115
  • 11:42
    ShimonBenYair opened #1117
  • 10:21

    fbricon on master

    Upversion to 0.53.0 Signed-off… (compare)

  • 10:20

    fbricon on v0.52.0

    (compare)

  • 09:16
    liangjiancang edited #1111
  • 09:09
    fbricon commented #1115
  • 08:55
    jrieken commented #1115
  • 08:37
    fbricon commented #1115
  • 08:34
    jrieken commented #1115
  • 08:32

    fbricon on master

    Add changelog for 0.52.0 Signe… (compare)

  • 01:59

    snjeza on master

    Use custom paste action instead… (compare)

  • 01:59
    snjeza closed #1116
  • 01:59
    snjeza closed #1115
  • Oct 22 23:28
    fbricon review_requested #1116
  • Oct 22 23:21
    fbricon commented #1115
  • Oct 22 23:18
    fbricon review_requested #1116
  • Oct 22 23:17
    fbricon synchronize #1116
ace510
@ace510
good morning, i'm working with maven in VS Code, and having trouble with it listing my project under 'Maven Projects' on the left
would this be a decent place to ask? or is there a better chat for maven stuff
Fred Bricon
@fbricon
The Maven support is contributed by Microsoft, not sure if their devs are here
@ace510 you can still ask, we'll see if we can be helpful
else you should open a ticket at https://github.com/microsoft/vscode-maven/issues
ace510
@ace510
@fbricon i'm thinking raising an issue would make sense, because I just generated a blank maven project and it is doing the same thing
Fred Bricon
@fbricon
any errors in the vscode-java logs?
ace510
@ace510
woooo! i'm a big dummy, turns out I had some bad listings in my workspace config that kept maven from working properly
Kevin Shaw
@shawmanz32na
I've got a multi-root workspace with a root folder that's a Maven project building a react app ( no java code, but a Maven POM that builds the react app ), but the rest of the folders are legit . How can I exclude the
Snjeza
@snjeza
@shawmanz32na You can use: "java.import.maven.enabled": false
Sudip Bhandari
@SudipB18
I have created two java files. Whenever I run the code, I get an error saying, can not find the main class. Although, there is a main method inside one of the class.
PinGu
@pingu8007
[News] It seems Microsoft just release a new version Java debugger which incompatible with Git Bash on Windows. microsoft/vscode-java-debug#642
cranberrynut
@cranberrynut
Can you move a java package beneath another package and automatically update the package declarations in the impacted sources?
Kevin Shaw
@shawmanz32na
@snjeza Thanks for the reply a few weeks ago. I have the "java.import.maven.enabled":false setting configured in the folder's settings.json (there's the user settings, then the workspace settings, then the folder settings for each root in the multi-root workspace), but I still see messages when I launch that VS Code is building this particular folder. Does the vscode-java extension honor the folder-specific settings in a multi-root workspace?
Kevin Shaw
@shawmanz32na
@snjeza That did the trick, although a bit clunky, and not clearly documented. Should I open an issue?
Snjeza
@snjeza
@shawmanz32na yes, please
matrixbot
@matrixbot

BuZZ-dEE Hi, I get the following error:

Unsupported operation. Please use pom.xml file to manage the source directories of maven project.
if I select:
Add Folder to Java Source Path
What could be the problem?

BuZZ-dEE Hi, I get the following error:

Unsupported operation. Please use pom.xml file to manage the source directories of maven project.

if I select:

Add Folder to Java Source Path

What could be the problem?

Manish Kumar Khedawat
@mkkhedawat
Running Spring boot application via launch.json prints classpath and exits.
Weird error. Has anybody else seen similar issue?
Jinbo Wang
@testforstephen
@mkkhedawat Could you change the VS Code user setting to "java.debug.settings.console": "internalConsole", and try again?
azam
@azam
Hi. I normally open a whole directory with vscode, but I don't want the Java extension to be enabled on certain paths (ie /var/**) . is there a way to do this?
Or whitelist dirs that the extension can be enabled (ie /home/me/projects/**)
Jinbo Wang
@testforstephen
@azam try the user setting
    "java.import.exclusions": [
        "**/node_modules/**",
        "**/.metadata/**",
        "**/archetype-resources/**",
        "**/META-INF/maven/**"
    ]
Arjun
@adapanagarjuna
Hi, could anyone help me using eclipse formatter in vscode? I understand that language support for java extension can do this but I couldn't make it working
azam
@azam
@testforstephen Didn't create the .project etc files when I put the dir in the exclusion list, so it looks like it is working for me. Thanks!
Regine Rosewich
@rr-appadaptive
Since yesterday (October 1st) after VS-Code updated the Red-Hat Java-Language Support Package to v0.50.0 I get the error: "Java 8 or more recent is required to run. Please download and install a recent JDK" although adoptopenjdk-11 is installed and operative.
Manish Kumar Khedawat
@mkkhedawat
@adapanagarjuna Here is how I do it - https://github.com/mkkhedawat/java-formatter-configuration
Manish Kumar Khedawat
@mkkhedawat
@rr-appadaptive Check java:home VS Code preferences > setting
Manish Kumar Khedawat
@mkkhedawat

@mkkhedawat Could you change the VS Code user setting to "java.debug.settings.console": "internalConsole", and try again?

Thanks @testforstephen , Worked. Had found this infamous issue as pinned in debugger extension.

Regine Rosewich
@rr-appadaptive
java:home points to the right jdk - all other Programs needing the java-jdk are running fine with this jdk -
Dilendra Khanal
@dilen11
my visual studio code is not displaying the error line
is thete any idea
djebbibmw
@djebbibmw
Hello
devendranadhn
@devendranadhn
Hi I'm trying to install 'Language Support for Java(TM) by Red Hat' extension in my code-server (remote VS-Code) . It's giving me error saying 'Unable to install because, the extension 'redhat.java' compatible with current version '1.32.0' of VS Code is not found.' I would want to know which version of code-server i need to take, so that i can install Java Extension ?
michalorestes
@michalorestes
Hi everyone
I installed the java support extension in VS Code
However, syntax highlighting is not working at all for .java files :/
Does anyone know what could cause this issue?
Patrick Boston
@patrickboston
Hello. I am looking to utilize this extension to validate Beanshell (scripted Java language) that is inside of XML objects. I use a specific application in my field that uses XML object with Beanshell scripts inside of them. Is there any way I can use the current extension or reference it in my own custom extension to do so?
mrneo240
@mrneo240

Hello! im experiencing an issue where this environment in vs code is compiling and running code that should clearly fail to run due to missing imports.

is it possible that behind the scenes, imports are being added?

if someone from the future sees this, https://hastebin.com/ubifetevem.cpp this is the code in question that is compiling and running. Clearly it is missing an import java.util.Objects; statement
alan-hwp
@alan-hwp
Hi, good job on the Java Language Support. The debugging experience is terrific. But, there seems to be a problem with the maven support. I see many errors for missing artefact: however, I know they exist in my local ~/.m3/repository/.....
...sorry, that should have read ~/.m2/repository/
is there some configuration that I need to add or update?
Maximiliano Cosia
@maxicosia
Hey! I cant set my java path, someone can help me?
Michael Schäfer
@mschaefer88
Hi!
I have a workspace containing several java projects (with gradle), my core project uses a shadow jar which relocates a dependency to project.relocated.
Unfortunately vscode-java lists all imports of type project.relocated as 'cannot be resolved' where gradle builds without any issue.
Is there anything I can do about that?