@skumar-robomq Would you mind opening an issue at https://github.com/microsoft/vscode-java-debug/issues? Appreciate if you could provide a minimum sample project to help reproduce the issue.
It was not an issue. I was not aware of how maven and eclipse work.
shortenCommandLine in this page for more detais: https://code.visualstudio.com/docs/java/java-debugging#_launch
Hi everyone, when I import com.mypackage.abcde.ForecastRequestV1; in VSCode I am getting The import com.mypackage.abcde cannot be resolvedJava(268435846)
In my .code-workspace file, under "java.project.referencedLibraries" I have the entry /path/to/my/jar-1.0.jar". When I open the jar file with vim, I see that com/mypackage/abcde/ForecastRequestV1.class is inside the jar file.
Does anyone know how I can go about debugging why VSCode is complaining that com.mypackage.abcde cannot be resolved?
(I've disabled all other JARs in my workspace and the results are the same)
"${env: MY_PORT}" but vscode refuses to use it cause it is not an integer
Hi, is there any way to use environment variable for the port in launch.json attach?
That's because we limit the scheme for port property to be number. Could you open a feature request against https://github.com/microsoft/vscode-java-debug/issues? // cc: @tomereli
Hi, I'm having trouble setting up a new demo springboot application - I get timeout while waiting for completion of job: Initialize Wodkspace(30)
I see in the client logs that it is stuck at importing the Maven project(s):
{
message: 'Params: {\n' +
' "id": "6cee0e87-cd77-496c-bca1-14fdf36f38e3",\n' +
' "task": "Importing Maven project(s)",\n' +
' "subTask": "https://repo.spring.io/milestone/org/springframework/boot/spring-boot-starter-test/2.5.0-SNAPSHOT/maven-metadata.xml",\n' +
' "status": "Importing Maven project(s) - https://repo.spring.io/milestone/org/springframework/boot/spring-boot-starter-test/2.5.0-SNAPSHOT/maven-metadata.xml",\n' +
' "totalWork": 1000,\n' +
' "workDone": 372,\n' +
' "complete": false\n' +
'}\n' +
'\n',
level: 'info',
timestamp: '2021-03-15 11:24:00.302'
}I am working behind a corporate proxy, and am using zsh so I set up MAVEN_OPTS correctly in my .zshrc - so running mvn commands from shell works fine to download stuff, but I suspect that vscode is not picking it up.
Any idea?
@testforstephen thank you, In my environment, my proxy has no user and password, and we're using the same http proxy for both http and https:
http_proxy environment variable is set to http://proxy.region.company.com:http-port
https_proxy environment variable is set to http://proxy.region.company.com:https-port
how do I set up my proxy and how do I verify the proxy configuration is correct? I'm trying to use the spring initiz extention to create a demo spring boot project, and I get that no JAVA projects are found after creation + all MAVEN plugins are missing, so I'm pretty sure it didn't work out for me.
I also see a message that my setting will be overwritten:
mvn package) and run in dev mode (mvn compile quarkus:dev -Dquarkus.http.host=0.0.0.0){
"type": "java",
"request": "attach",
"name": "Attach to Remote Quarkus App",
"hostName": "localhost",
"port": 5005
}