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

Language support wont start #2756

Closed
maxtarquini opened this issue Oct 26, 2022 · 20 comments
Closed

Language support wont start #2756

maxtarquini opened this issue Oct 26, 2022 · 20 comments

Comments

@maxtarquini
Copy link

Type: Bug

Java language support wonnt start. No logs available and no build status available. The icon on the navbar continue cycling but nothig happen

Extension version: 1.11.0
VS Code version: Code 1.72.2 (d045a5eda657f4d7b676dedbfa7aab8207f8a075, 2022-10-12T22:16:26.920Z)
OS version: Linux x64 5.19.16-200.fc36.x86_64
Modes:
Sandboxed: No

System Info
Item Value
CPUs 12th Gen Intel(R) Core(TM) i7-1270P (16 x 4076)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) 1, 1, 1
Memory (System) 31.06GB (23.87GB free)
Process Argv --unity-launch --crash-reporter-id 2e590ceb-5cb5-41c4-a1a8-982a893d6130
Screen Reader no
VM 0%
DESKTOP_SESSION gnome
XDG_CURRENT_DESKTOP GNOME
XDG_SESSION_DESKTOP gnome
XDG_SESSION_TYPE wayland
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscoreces:30445986
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
azure-dev_surveyone:30548225
pyindex848:30577860
nodejswelcome1:30587005
fc301958:30595537
2e4cg342:30596373

@snjeza
Copy link
Contributor

snjeza commented Oct 26, 2022

@maxtarquini could you attach a project example reproducing the error?

@maxtarquini
Copy link
Author

maxtarquini commented Oct 26, 2022

@snjeza every maven project.
Everything where working until 2 days ago and now all vscode stopped working with all java project.
attached a simple maven project i did for some students.
esempi.zip

@maxtarquini
Copy link
Author

immagine
Some more informations. running tasks: configure vscode prompt for input but nothing else happen. Disabling java language support by red hat the problem is fixed but vscode is not usefull anymore :(

@snjeza
Copy link
Contributor

snjeza commented Oct 26, 2022

@maxtarquini Could you try the following:

  • close VS Code
$ rm -rf ~/.vscode/extensions/redhat.java* # remove VS Code extension
  • start VS Code and reinstall Language Support for Java(TM) by Red Hat

@maxtarquini
Copy link
Author

@snjeza did it and nothing change. I did many many tests:
removed vscode, .vscode and .config/Code folders and intalled an older version (1.71) for vs code. Nothing changed
removed .vscode and .config/Code folder, installed java extensions pack and downgraded to older version. Nothing changed
vscode update to last version using older version for language pack. Nothing changed

May be the rpm installer install something somewhere i don't know?
Once i cleaned .vscode folder and .config/Code folder did i removed everything?
Is there some king of cache?

@maxtarquini
Copy link
Author

@snjeza some more info. If i ask for build status i got this:

Error: there is no registered task type 'Java'. Did you miss installing an extension that provides a corresponding task provider?
Error: there is no registered task type 'Java'. Did you miss installing an extension that provides a corresponding task provider?

The problem seems to appear when language support try to build the workspace.

@maxtarquini
Copy link
Author

@snjeza i'm available for a remote session if you desire.

@snjeza
Copy link
Contributor

snjeza commented Oct 26, 2022

@maxtarquini could you run

$ ls ~/.vscode/extensions

@maxtarquini
Copy link
Author

@snjeza
╰─$ ls ~/.vscode/extensions
redhat.java-1.11.0-linux-x64 vscjava.vscode-java-dependency-0.20.0
visualstudioexptteam.intellicode-api-usage-examples-0.2.6 vscjava.vscode-java-pack-0.25.3
visualstudioexptteam.vscodeintellicode-1.2.29 vscjava.vscode-java-test-0.37.1
vscjava.vscode-java-debug-0.45.0 vscjava.vscode-maven-0.39.0

@maxtarquini
Copy link
Author

@snjeza if is use ctrl+shiftp+p task: rerun last task result is still the same

Error: there is no registered task type 'Java'. Did you miss installing an extension that provides a corresponding task provider?

When i manually use task: run build task vscode shows the messages in the picture
immagine

@snjeza
Copy link
Contributor

snjeza commented Oct 26, 2022

@maxtarquini could you try

  • close VS Code
 $ rm -rf ~/.config/Code/User/globalStorage/redhat.java/
  • start VS Code

@maxtarquini
Copy link
Author

@snjeza nothing changed :(

@maxtarquini
Copy link
Author

@snjeza i created another user, logged in, executed vscode and created java project.
Everything works well. May be there is something that may affect vscode within user folder?

@snjeza
Copy link
Contributor

snjeza commented Oct 26, 2022

@maxtarquini you can try to remove the ~/.config/Code and ~/.vscode folders and restart VS Code

@maxtarquini
Copy link
Author

@snjeza as you can read in the previous comment i did it tens of times and nothing change. I'm now moving my productivity to a new user (vscode works as exepected). Will leave old user active for further investigations. My idea is to start cleaning user folder step by step until i find where the problem is.

@maxtarquini
Copy link
Author

Hello @snjeza as a good noews i found the reason why the extension was blocked. It depends by a environment file. I need to understand which env variable is creating the problem but seems that i definitively fixed.
I can consider this issue closed.

@pouriamoosavi
Copy link

I have the same issue.
If you found the fix would you please share it here?

@houtaru
Copy link

houtaru commented Oct 10, 2023

Hi, I encountered the same issue:
Here are logs from Output:

[Error - 4:35:02 PM] Client Language Support for Java (Syntax Server): connection to server is erroring. Shutting down server.
[Error - 4:35:02 PM] Stopping server failed
Error: Client is not running and can't be stopped. It's current state is: starting
	at S.shutdown (/home/user/.vscode/extensions/redhat.java-1.23.0-linux-x64/dist/extension.js:2:1148447)
	at S.stop (/home/user/.vscode/extensions/redhat.java-1.23.0-linux-x64/dist/extension.js:2:1148028)
	at S.stop (/home/user/.vscode/extensions/redhat.java-1.23.0-linux-x64/dist/extension.js:2:1310318)
	at S.handleConnectionError (/home/user/.vscode/extensions/redhat.java-1.23.0-linux-x64/dist/extension.js:2:1154535)
	at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[Error - 4:35:02 PM] Language Support for Java (Syntax Server) client: couldn't create connection to server.
  Message: write EPIPE
  Code: -32099 
[Info  - 4:35:02 PM] Connection to server got closed. Server will restart.
false
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
[Error - 4:35:02 PM] Language Support for Java (Syntax Server) client: couldn't create connection to server.
  Message: Cannot call write after a stream was destroyed
  Code: -32099 
[Error - 4:35:02 PM] Restarting server failed
  Message: Cannot call write after a stream was destroyed
  Code: -32099 
[Info  - 4:35:02 PM] Connection to server got closed. Server will restart.
false
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
[Error - 4:35:02 PM] Client Language Support for Java (Syntax Server): connection to server is erroring. Shutting down server.
[Error - 4:35:02 PM] Stopping server failed
Error: Client is not running and can't be stopped. It's current state is: starting
	at S.shutdown (/home/user/.vscode/extensions/redhat.java-1.23.0-linux-x64/dist/extension.js:2:1148447)
	at S.stop (/home/user/.vscode/extensions/redhat.java-1.23.0-linux-x64/dist/extension.js:2:1148028)
	at S.stop (/home/user/.vscode/extensions/redhat.java-1.23.0-linux-x64/dist/extension.js:2:1310318)
	at S.handleConnectionError (/home/user/.vscode/extensions/redhat.java-1.23.0-linux-x64/dist/extension.js:2:1154535)
	at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[Error - 4:35:02 PM] Language Support for Java (Syntax Server) client: couldn't create connection to server.
  Message: write EPIPE
  Code: -32099 
[Error - 4:35:02 PM] Restarting server failed
  Message: write EPIPE
  Code: -32099 
[Info  - 4:35:02 PM] Connection to server got closed. Server will restart.
false
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
[Error - 4:35:02 PM] Language Support for Java (Syntax Server) client: couldn't create connection to server.
  Message: Cannot call write after a stream was destroyed
  Code: -32099 
[Error - 4:35:02 PM] Restarting server failed
  Message: Cannot call write after a stream was destroyed
  Code: -32099 
[Info  - 4:35:02 PM] Connection to server got closed. Server will restart.
false
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
[Error - 4:35:02 PM] Connection to server got closed. Server will not be restarted.
[Error - 4:35:02 PM] Language Support for Java (Syntax Server) client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 

@pouriamoosavi
Copy link

Turns out our issue was related to windows region/region format setting. It seems that this extension has some issues with Persian/Arabic region formats.

Can anybody please explain why this happens?

@tankpow
Copy link

tankpow commented Dec 28, 2023

Is the problem with java runtime configure?
See offcial: https://code.visualstudio.com/docs/java/java-project#_configure-runtime-for-projects

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

No branches or pull requests

5 participants