Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug SERVER_PORT Environment Variable Prevents Loading Java Projects #3256

Closed
testforstephen opened this issue Aug 28, 2023 · 1 comment · Fixed by #3259
Closed

Bug SERVER_PORT Environment Variable Prevents Loading Java Projects #3256

testforstephen opened this issue Aug 28, 2023 · 1 comment · Fixed by #3259

Comments

@testforstephen
Copy link
Collaborator

originally created by @johnnylyne on microsoft/vscode-java-pack#1226

Environment:

  • VS Code Version: 1.81.1
  • Extension Version: v0.25.13
  • JDK Type & Version: java-17-openjdk-17.0.7.0.7-5
  • OS Type & Version: CentOS 8

Step to Reproduce:

  • Add export SERVER_PORT=0 to ~/.bashrc
  • Start VS Code with Remote extension (remote extension may not be relevant but I am starting from Windows host and Extension Pack for Java is installed on Remote machine)
  • Open folder containing Java project

Expected Behavior: Java Projects explorer loads and code navigation functionality works

Actual Behavior: Java Project does not load and hangs. Navigation does not work.

Related Issues:

@testforstephen
Copy link
Collaborator Author

const port = process.env['SERVER_PORT'];

To avoid conflict with user's own environment variables, we could rename the "SERVER_PORT" to "JDTLS_SERVER_PORT".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant