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

TypeError: Cannot read properties of undefined (reading 'stop') #2503

Closed
jdneo opened this issue Jun 10, 2022 · 1 comment · Fixed by #2506
Closed

TypeError: Cannot read properties of undefined (reading 'stop') #2503

jdneo opened this issue Jun 10, 2022 · 1 comment · Fixed by #2506
Milestone

Comments

@jdneo
Copy link
Collaborator

jdneo commented Jun 10, 2022

[provide a description of the issue]

Environment

Version: 1.68.0 (user setup)
Commit: 4af164ea3a06f701fe3e89a2bcbb421d2026b68f
Date: 2022-06-08T11:44:16.822Z
Electron: 17.4.7
Chromium: 98.0.4758.141
Node.js: 16.13.0
V8: 9.8.177.13-electron.0
OS: Windows_NT x64 10.0.22000

  • Java extension version: 1.7.0

Sometimes, after Java extension activated, I'll see TypeError: Cannot read properties of undefined (reading 'stop') in the debug console. Looks like the error happens at:

syntaxClient.getClient().stop().then(client => {

image

When this error happens, we will lose some feature like auto refactoring when moving files in the explorer.

So far from my observation, this error happens with a high possibility on my Windows machine.

@jdneo
Copy link
Collaborator Author

jdneo commented Jun 10, 2022

Looks like it’s because syntax client will not be initialized when the server mode is set to standard

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

Successfully merging a pull request may close this issue.

2 participants