Skip to content

Coc-angular not activated in an ionic-angular project inside a nx workspace. #36

Description

@Guilherhast

Describe the bug
The coc-angular extension is not loading when I open a file in an ionic-angular project inside a nx workspace.

To Reproduce
Steps to reproduce the behavior:

Create the workspace.

npx create-nx-workspace@latest --cli=nx --preset=empty myApp

Enter there and install the needed libraries

cd my-app
yarn add -D --exact @nxtend/ionic-angular
yarn add -D @nxtend/capacitor @nrwl/angular

Generate the app:
nx generate @nxtend/ionic-angular:app myApp

Add the experimental configuration to coc-settings.json:

mkdir .vim
echo -e '{\n"angular.experimental-ivy": true\n}' >> .vim/coc-settings.json

Open your project:
vim apps/myApp/src/index.html

Expected behavior
It should load the coc-angular extension.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: x86_64 GNU/Linux

Log:

2021-07-01T19:39:41.382 INFO (pid:28377) [services] - registered service "html"
2021-07-01T19:39:41.383 INFO (pid:28377) [services] - HTML language server state change: stopped => starting
2021-07-01T19:39:41.468 INFO (pid:28377) [plugin] - coc.nvim 0.0.80-2cece2600a initialized with node: v15.13.0 after 199ms
2021-07-01T19:39:41.476 INFO (pid:28377) [language-client-index] - html started with 28390
2021-07-01T19:39:41.828 INFO (pid:28377) [services] - HTML language server state change: starting => running
2021-07-01T19:39:41.834 INFO (pid:28377) [services] - service html started
2021-07-01T19:39:49.591 INFO (pid:28377) [attach] - receive notification: openList [ 'commands' ]
2021-07-01T19:39:49.704 INFO (pid:28377) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-01T19:40:03.567 INFO (pid:28377) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-01T19:40:32.255 INFO (pid:28377) [attach] - receive notification: openLog []

Log of another project:

2021-07-01T19:41:33.699 INFO (pid:28530) [services] - registered service "html"
2021-07-01T19:41:33.700 INFO (pid:28530) [services] - HTML language server state change: stopped => starting
2021-07-01T19:41:33.791 INFO (pid:28530) [plugin] - coc.nvim 0.0.80-2cece2600a initialized with node: v15.13.0 after 342ms
2021-07-01T19:41:33.801 INFO (pid:28530) [language-client-index] - angular started with 28543
2021-07-01T19:41:33.810 INFO (pid:28530) [language-client-index] - html started with 28549
2021-07-01T19:41:34.039 INFO (pid:28530) [language-client-index] - tailwindCSS started with 28557
2021-07-01T19:41:34.212 INFO (pid:28530) [services] - HTML language server state change: starting => running
2021-07-01T19:41:34.217 INFO (pid:28530) [services] - service html started
2021-07-01T19:43:06.860 INFO (pid:28530) [attach] - receive notification: openLog []

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions