iamcco / coc-angular

Angular Language Service coc extension for (neo)vim
146 stars 17 forks source link

Crashes on startup #49

Closed theTechGoose closed 2 years ago

theTechGoose commented 2 years ago

Describe the bug

To Reproduce Steps to reproduce the behavior: start vim with coc-angular installed

Expected behavior it should not crash

Screenshots Screen Shot 2022-03-02 at 4 38 42 PM

Desktop (please complete the following information):

Log:

theTechGoose commented 2 years ago

Never mind, this happens if it is not installed. Is there a way to install globally?

iamcco commented 2 years ago

Can't reproduce

traitran44 commented 2 years ago

What did you do to fix this issue? After running :CocInstall coc-angular, I encountered the exact same issue on M1 MacOS Monterey

theTechGoose commented 2 years ago

This uses @angular/language-service, you have to install it in the project that you are using the plugin. Just do:

npm i @angular/language-service

In the project in question and it should work. My question to the devs is, how can we make this work on the global installation of the @angular/language-service package so that you don't have to do this in every angular project?

traitran44 commented 2 years ago

This uses @angular/language-service, you have to install it in the project that you are using the plugin. Just do:

npm i @angular/language-service

In the project in question and it should work. My question to the devs is, how can we make this work on the global installation of the @angular/language-service package so that you don't have to do this in every angular project?

This fixed the issue, thanks a lot. I think this should be added to home page README.

iamcco commented 2 years ago

It should work if @angular/language-service does not install in your project. Please test latest version.