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

Extension only partially working #53

Closed
GaryREM opened this issue Nov 1, 2022 · 4 comments · Fixed by #54
Closed

Extension only partially working #53

GaryREM opened this issue Nov 1, 2022 · 4 comments · Fixed by #54

Comments

@GaryREM
Copy link

GaryREM commented Nov 1, 2022

I have installed extension and am pointing to project specific instances of the Volar languages server and Typescript libraries:

 /Users/grmensz/Documents/MySites/vuecourse-max/main-prj/node_modules/@volar/vue-language-server

 /Users/grmensz/Documents/MySites/vuecourse-max/main-prj/node_modules/typescript/lib/tsserverlibrary.js

The highlighting appears on vue files.
The 2 vue clips show up.
There is no autocompletion in template section of vue files.
There is no autocompletion in script section of vue files.
There IS autocompletion in style section.

There is no Vue extension entry in the Nova extension menu.

I see 2 entries for Vue in the Extension console:

Hello from Vue 💎

Encountered a zero-length single match for scope: <SKScope: 0x600002941130 : name=css.style.string.double-quoted.path, type=Match, regex=<SKRegularExpression: 0x60000064d780> { pattern=(?:[^"\\]|\\.)*, options=82 }, endRegex=(null)>; Ignoring

Any hints on what is wrong?

Note I am running macOS 13.
I am running the following extensions:
HTML Snippets
HTML Validator
Markdown Clips
Prettier
Typescript
Vue

Thanks...

@GaryREM
Copy link
Author

GaryREM commented Nov 13, 2022

resolved this by:

  1. adding jsconfig.json with section "jsx": "preserve" under compilerOptions
  2. installed version 0.40.4 of Volar language server

@johnsoncodehk
Copy link
Contributor

Please track #54

@GaryREM
Copy link
Author

GaryREM commented Dec 21, 2022

Upgraded to Volar 1.0.16.
No jsconfig file.
Commented out languageFeatures and documentFeatures in VolarLangugeServer.js in extension.
Modified typescript property:

typescript: {
          tsdk: "/usr/local/lib/node_modules/typescript/lib",
          // serverPath: typescriptPath,
        },

All is working.

@peterkos
Copy link

As an alternative workaround, #55 worked for me

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.

3 participants