question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No more completion for components / HTML tags in Ivy mode

See original GitHub issue

Describe the bug

When enabling the Ivy language service, there is no more components / HTML tags completion/suggestions at all.

To Reproduce

Steps to reproduce the behavior:

  1. npm i @angular/cli -g
  2. ng new demo --inline-template (and say “Yes” to strict mode)
  3. cd demo
  4. code .
  5. Enable extension’s Ivy mode when proposed
  6. Try writing any HTML tag in AppComponent template: no autocomplete at all
  7. ng g component demo
  8. Try writing <app-de in AppComponent template: no autocomplete at all (but if I manually write the full tag, the language service is OK with it)

Note: there is the same issue with external templates (in this case you have HTML tags autocomplete because it’s a HTML file, but you have no more components tags autocomplete).

Expected behavior

Components / HTML tags should be suggested.

Logs

[Info  - 4:44:27 PM] Angular language server process ID: 6223
[Info  - 4:44:27 PM] Using typescript/lib/tsserverlibrary v4.1.5 from /Users/xxx/.vscode/extensions/angular.ng-template-11.2.2/node_modules/typescript/lib/tsserverlibrary.js
[Info  - 4:44:27 PM] Using @angular/language-service/bundles/ivy v11.2.1 from /Users/xxx/.vscode/extensions/angular.ng-template-11.2.2/node_modules/@angular/language-service/bundles/ivy.js
[Info  - 4:44:27 PM] Log file: /Users/xxx/Library/Application Support/Code/logs/20210222T163701/exthost1/Angular.ng-template/nglangsvc.log
[Info  - 4:44:30 PM] Enabling Ivy language service for /Users/xxx/xxx/xxx/lsivyissue/tsconfig.json.

The log file is empty.

Additional context

VS Code version: 1.53.2 Extension and Angular project version: 11.2.2 OS: macOS 11.2.1 (Intel) No other extension.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:6
  • Comments:5

github_iconTop GitHub Comments

4reactions
reed-lawrencecommented, Feb 22, 2021

+1

I have the same issue. As a quick fix, disabling the experimental Ivy features in VS Code settings, the completion returns to expected behavior.

1reaction
CthulhuOfStarscommented, Feb 24, 2021

Same behavior + always crash

Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Understanding Angular Ivy Library Compilation | lacolaco/tech
In this post, I will explain how to compile Angular libraries with Ivy, which is now possible in Angular v11.1, and its details....
Read more >
Build Times, Bundle Sizes, and Other Improvements Made by ...
This article covers Ivy, Angular's next-gen compilation pipeline, and the new and exciting improvements that came with the Version 9 ...
Read more >
All you need to know about Ivy, The new Angular engine!
Angular Ivy — The complete guide for the 3rd generation of the Angular ... In Ivy that becomes much more simpler, every component...
Read more >
Newest 'angular-ivy' Questions - Stack Overflow
I'm using angular 13 and I have a test library which contains 2 components: lib1 and lib2. I want to use lib2 compoment...
Read more >
Components - Axon.ivy 7.4 | Axon.ivy Portal Documentation
Portal widgets should be implemented using the Html Dialog Component technology from Axon.ivy and follow the famous model-view-controller pattern.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found