iamcco / iamcco/coc-angular

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

Open
#36 0 comments 2 reactions 0 assignees View on GitHub
help wanted
Dominant language
TypeScript
Stars
144
Forks
20
PR merge metrics
No merged PRs in 30d

Description

**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 []
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.