angular / vscode-ng-language-service

Angular extension for Visual Studio Code
MIT License
773 stars 116 forks source link

Unexpected character "EOF" (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.) #2008

Closed RafaGomezGuillen closed 7 months ago

RafaGomezGuillen commented 7 months ago

🐞 bug report

Description

A clear and concise description of the problem... I have got an error on every HTML file when I use a @if, else, for... statement. It compiles perfectly and I do not have any other error in the project. Just annoying because I can not use the Angular extension well for this error. ## Bug Type What does this bug affect

Screenshots

The error appears at the end of the HTML file.

Screenshot 2024-02-19 103040

image

🌍 Your Environment

Angular Version:


Angular CLI: 17.0.5
Node: 20.9.0
Package Manager: npm 10.1.0
OS: win32 x64

Angular: 
... 

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.1700.5 (cli-only)
@angular-devkit/core         17.0.5 (cli-only)
@angular-devkit/schematics   17.0.5 (cli-only)
@schematics/angular          17.0.5 (cli-only)

RafaGomezGuillen commented 7 months ago

Ok, the bug seems to be fixed.

This error appeared when I opened the project with multiple non-Angular project folders.

image

If I open the project from the frontend folder (Angular Project Folder Name) suddenly the error disappears.

image

angular-automatic-lock-bot[bot] commented 6 months ago

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.