language-tools icon indicating copy to clipboard operation
language-tools copied to clipboard

VSCode extension loses all highlighting, auto imports, intellisense, etc.

Open tsi-trmorris opened this issue 1 year ago • 16 comments

I seem to have lost use of essentially all the functionality I care about in the VSCode extension. I have no highlighting, auto-imported components, etc. As a minimal reproduction, I created a new Vuetify project using their generator. For this, I ran pnpm create vuetify with the default options and pnpm as my package manager

image

Running the Vue: Restart Vue and TS servers command in my command palette reports the following in the Output tab:

[Error - 2:19:40 PM] Server process exited with code 0.
[Vue Named Pipe Client] No server found for c:/temp/vue/vuetify-project/src/App.vue

Environment: Version: 1.88.1 (user setup) Commit: e170252f762678dec6ca2cc69aba1570769a5d39 Date: 2024-04-10T17:41:02.734Z Electron: 28.2.8 ElectronBuildId: 27744544 Chromium: 120.0.6099.291 Node.js: 18.18.2 V8: 12.0.267.19-electron.0 OS: Windows_NT x64 10.0.22621

tsi-trmorris avatar Apr 11 '24 21:04 tsi-trmorris

Me too And the file cannot be saved :(

Ludidi avatar Apr 12 '24 02:04 Ludidi

Me too And the file cannot be saved :( Me too

Zhao-changyuan avatar Apr 12 '24 03:04 Zhao-changyuan

Me too And the file cannot be saved :(

saronwei avatar Apr 12 '24 04:04 saronwei

Me too in v2.0.12 😭

s3xysteak avatar Apr 12 '24 05:04 s3xysteak

Same problem in sublime text. No syntax highlighting and cannot be saved

biwchi avatar Apr 12 '24 06:04 biwchi

Try to roll back to version v1.8.27. If there is unocss plug-in, it will be disabled. It is running normally now.

Ludidi avatar Apr 12 '24 06:04 Ludidi

Hey guys, my problem was on vscode 1.88. Both Microsoft VSCode and VSCodium.

The solution for me was rollback the VSCodium version to 1.87, Microsoft VSCode don't let me rollback the version on ubuntu.

Let me know if it works.

cdenadai avatar Apr 12 '24 13:04 cdenadai

Our team resolved this by rolling back Vue plugin - official to v2.0.6

wmurphyrd avatar Apr 12 '24 18:04 wmurphyrd

Our team resolved this by rolling back Vue plugin - official to v2.0.6

This issue has been very disruptive, rolling back Vue - Official plugin to v2.0.6 as per @wmurphyrd fixed it for me as well.

FWIW, "Vue Language Server" output looks like this for me:

[Vue Named Pipe Client] No server found for c:/Users/astamant/Source/Repos/project/project-vue/src/modules/Customer/CustomerHome.vue

astamant avatar Apr 14 '24 16:04 astamant

Using VS Code, I have the same issue but do not even get any output from "Vue Language Server". Rolling back to 2.0.6 works.

marlemie avatar Apr 16 '24 11:04 marlemie

I'm getting [Vue Named Pipe Client] No server found for ..... and [Vue Named Pipe Client] Timeout. Rollback to 2.0.6 is not working for me.

Vue plugin 2.0.14 vue-tsc 2.0.14

Edit: fixed it by deleting all node_modules folders (mono repo), package-lock.json and run npm install...

TheVaan avatar Apr 22 '24 15:04 TheVaan

Just found this my side, easily reproducable by creating a new Vuetify project, opening VSCode into the solution, then hovering over any vuetify control

@wmurphyrd How'd you roll back? My VSCode shows no previous versions

Edit: Here's a tutorial https://github.com/microsoft/vscode/issues/12764#issuecomment-442370545

code --install-extension [email protected]

Double edit: Downgrading doesnt work image

wunderdaz avatar Apr 30 '24 12:04 wunderdaz

Just found this my side, easily reproducable by creating a new Vuetify project, opening VSCode into the solution, then hovering over any vuetify control

@wmurphyrd How'd you roll back? My VSCode shows no previous versions

Edit: Here's a tutorial microsoft/vscode#12764 (comment)

code --install-extension [email protected]

Double edit: Downgrading doesnt work image

Can confirm this, I just created a new Vuetify project using Vuetify;s CLI and it's not working, but Nuxt projects do work without problems (imports, suggestions...)

rrobertobt avatar May 04 '24 04:05 rrobertobt

Just found this my side, easily reproducable by creating a new Vuetify project, opening VSCode into the solution, then hovering over any vuetify control

@wmurphyrd How'd you roll back? My VSCode shows no previous versions

Edit: Here's a tutorial microsoft/vscode#12764 (comment)

code --install-extension [email protected]

Double edit: Downgrading doesnt work image

The same situation, but when I rolled back to version v1.8.27, it seemed to get a little better.

image

Could identify functions that were not implemented. In v2.0.6, the extension did not remind that the function did not exist. But still cannot recognize vuetify controls:

image

------edit------

I've noticed this reply: https://github.com/vuejs/language-tools/issues/4421#issuecomment-2139294691

image

I made changes to the tsconfig.json file based on the content in this reply, and now everything is working fine.

image

And it also applies to the v2.0.19 extension.

MeowSalty avatar Jun 04 '24 09:06 MeowSalty

True, since we are using ts plugins in v2, you must explicitly include vue files in your tsconfig.

so1ve avatar Jun 04 '24 10:06 so1ve

I found that the plugin only started to work again when removing the **.vue files from the "include" section of the TS config. Resulting in other errors being reported by vue-tsc, but I haven't investigated these issues closely now. Seemed to be only related to usages of arrow functions in the template section where the types couldn't be correctly derived anymore.

vikingair avatar Jun 19 '24 07:06 vikingair

Hey there, as there have been many fixes in the last 2.x versions: If you're still encountering issues, please provide a minimal reproduction. Otherwise kindly close this one, thanks!

davidmatter avatar Aug 06 '24 06:08 davidmatter

Vue - Official just didn't work before and now it doesn't work with the VS Code version 1.93.1. The version here does not matter at all. This extension does not work with any version. I just use Vetur which at least shows errors.

sbinfo avatar Sep 15 '24 14:09 sbinfo