microsoft / vscode-java-pack

VS Code extensions for Java developers.
Other
286 stars 130 forks source link

Can't run the java code #870

Open hjue opened 2 years ago

hjue commented 2 years ago

Environment:

Step to Reproduce: Installing extensions image

Settings for the JDK

image image Creating a source code file image image

Can't run the java code image

image

Eskibear commented 2 years ago

From the "spinning sync icon" at bottom right corner, it tells that the language server is starting (e.g. importing your project).

Can you wait a little longer, or check "Language Support for Java" output channel for detailed logs? If you can stably reproduce the error (e.g. spinning forever), please provide a sample project.

hjue commented 2 years ago

dev tools log screenshot

client.log

{
  message: 'Language Support for Java (Syntax Server) server encountered error: [object Object], Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed',
  level: 'error',
  timestamp: '2022-01-11 19:00:50.279'
}
{
  message: '[Error - 7:00:50 PM] Connection to server got closed. Server will not be restarted.',
  level: 'info',
  timestamp: '2022-01-11 19:00:50.280'
}
Eskibear commented 2 years ago

Looks like it was working on lightweight mode. @testforstephen Any idea?