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
Regression - JavaScript false positive errors ("Expression expected.") #86983
Comments
Is this with the built-in HTML language support? |
Why is this closed? The file extension is .php and the parsing language in VSCode is PHP. Why wouldn't you support PHP tags in the middle of HTML? That's very common in many projects... not everyone uses templates like Twig. |
Ah, ok, you are in PHP mode and you are using a PHP extension. You need to file this against the PHP extension you use. VSCode has no rich PHP language support out-of-the-box. |
The PHP extensions I use are not giving any errors. It is the built-in JS validator of VSCode that is complaining about invalid JS, in the lines similar to the above. Do you still think this is something that the PHP extensions need to fix? |
This is probably bmewburn/vscode-intelephense#836 |
Thank you very much. Oh - I see now it's a duplicate. Thanks for pointing that out, @bmewburn |
Steps to Reproduce:
The first JS line will show error "Expression expected.".
The second JS line will show "An element access expression should take an argument.".
I suppose the JavaScript lint is stripping out the PHP elements before parsing, but in fact, those PHP elements are putting contents where the lint expects them to be.
The text was updated successfully, but these errors were encountered: