Syntax error still in the code after the fix

The bug has appeared in the latest version of PHPStorm.

This is completely the same issue as https://intellij-support.jetbrains.com/hc/en-us/community/posts/206359249-Syntax-errors-not-going-away-even-after-they-are-fixed but ...

  • Invalidate Caches doesn't work for me
  • Ctrl-X -> Crtl+V part of the code with the bug - this temporary fixes the issue, but it's a bad solution :(

A simple example of the issue:

Does anyone have any idea how to fix this now?

5 comments
Comment actions Permalink

Hi there,

This may sound odd and unexpected... but try disabling bundled Grazie plugin (and restart IDE afterwards) -- I've seen a few recent tickets with a similar kind of issues.

It seems to somehow affect the actual code inspections in some situations (https://youtrack.jetbrains.com/issue/IDEA-275168)...

If it's not your case -- you would need to provide your idea.log file

 

1
Comment actions Permalink

Hi Andriy Bazanov, thank you so much.

You were right. Grazie plugin caused my issue. Disabling it fixed the issue.

We can close the topic.

1
Comment actions Permalink

Syntax errors are produced by Python when it is translating the source code ... Syntax errors are usually easy to fix once you figure out what they are.

0
Comment actions Permalink

@Brielletyshawn60

Syntax errors are produced by Python when it is translating the source code ... Syntax errors are usually easy to fix once you figure out what they are.

No clue what you are talking about: this is PhpStorm forum and the thread is about PHP code and the warnings are NOT about syntax errors.

 

Side note / admins: for me that comment sounds like a placeholder for the following SEO spam (that will be edited a week or two later to include unrelated links).

0
Comment actions Permalink

Thanks, Andriy Bazanov, I have the same suspicion.

Brielletyshawn60 Sorry if it sounds offensive but please expand the idea behind your recent post or I will mark it as spam at the end of the day. 

0

Please sign in to leave a comment.