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

Vue Semantic Server client: couldn't create connection to server. #2322

Closed
do-block opened this issue Jan 18, 2023 · 7 comments
Closed

Vue Semantic Server client: couldn't create connection to server. #2322

do-block opened this issue Jan 18, 2023 · 7 comments

Comments

@do-block
Copy link

When using vecode to develop a vue3 project, this error is reported when opening the vue file, which has been a very long time problem for me, so I was confused and opened this issue, hoping to get help to solve this problem

error mssage :

image

output:

[Error - 11:11:11 AM] Server initialization failed.
  Message: Request initialize failed with message: Cannot read properties of undefined (reading 'replace')
  Code: -32603 
[Error - 11:11:11 AM] Vue Syntactic Server client: couldn't create connection to server.
  Message: Request initialize failed with message: Cannot read properties of undefined (reading 'replace')
  Code: -32603 

workspace ts version:

image

volar version:

image

releate:
#1942

@do-block
Copy link
Author

Und es führt dazu, dass vscode komplett abstürzt und unbrauchbar wird. Die einzige Möglichkeit, vscode weiter zu verwenden, ist die Deinstallation oder Deaktivierung von volar

@johnsoncodehk
Copy link
Member

I have not heard of this problem, it may be related to your OS. Can you reproduce it in an isolated environment (e.g. Codespaces)? Otherwise, I may need your help to debug to determine which line of code the problem occurs.

@do-block
Copy link
Author

Yes, it might be a problem with my system that I can't reproduce through Codespaces. When I tried many methods I couldn't solve the problem (reinstallation, changing the ts version of the environment, etc.).
Our team uses Vue for all development, that's why I'm bothering you here, if you need any assistance, I'll actively assist from my local machine.

@johnsoncodehk
Copy link
Member

Can you try to debug it yourself first?

https://github.com/vuejs/language-tools#contribution-guide

If it's difficult to you, you can reach me on discord (johnsoncodehk#0495) and I'll follow up later.

@do-block
Copy link
Author

do-block commented Feb 15, 2023

Can you try to debug it yourself first?

https://github.com/vuejs/language-tools#contribution-guide

If it's difficult to you, you can reach me on discord (johnsoncodehk#0495) and I'll follow up later.

I'll clone the repository first and debug locally, if I find the problem and solve it myself I'll reply here and close the issue, thanks for the reply.

@do-block
Copy link
Author

The local F5 error message is as follows:
image

After I cloned the repository to my local environment, I removed the contents.configuration.properties.typescript (as shown) from package.json, and then F5 started the plugin and it worked fine and no longer reported errors. Here is a report to you on the error reporting that occurred on my mac m1. I will close this issue.

image

@do-block
Copy link
Author

I have solved this issue. Since I use Neovim, I globally installed the npm package @volar/vue-language-server. After finding it through npm list, I uninstalled it and then restarted VSCode, and the problem was resolved.

npm uninstall -g @volar/vue-language-server
// or
npm uninstall @volar/vue-language-server

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

2 participants