Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect error message using templates inside script #24

Open
GekixD opened this issue Jul 19, 2024 · 0 comments
Open

Incorrect error message using templates inside script #24

GekixD opened this issue Jul 19, 2024 · 0 comments

Comments

@GekixD
Copy link

GekixD commented Jul 19, 2024

I have a code similar to this:

<script>
 {{with .Warning}}
  // do something with {{.}}
 {{end}}
 </script>

inside a Go template file, and there are 2 errors in {{with '.'Warning'}'} at the parts where the single quotes are. Specifically, in VS Code it displays an error message that says: expected "(" and expected ")" respectively.

I tried restarting the tool in VS Code, and the problem still persists. Am I doing something wrong (or is there a configuration I should change but didn't) or there is an issue with JS scripts inside go templates ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant