Excluded dir shows code inspection errors

Hello everybody,

 

I am using PHPStorm 2020.1

 

PhpStorm 2020.1
Build #PS-201.6668.153, built on April 13, 2020
[...]
Non-Bundled Plugins: mobi.hsz.idea.gitignore, ru.adelf.idea.dotenv, de.espend.idea.laravel



Now I can see that the code inspector shows an error in `vendor` directory, although it's excluded.

 

How to change this behavior and stop code inspection here?

 

 

0
4 comments

Hi there,

What error/warning does it show exactly?

Open the file that has that error and see there.

Normally IDE ignores showing errors/warning for stuff from vendor folder (I'm referring to PHP code/warnings here; also may depend on composer integration settings).

You need to provide more details on that. I suggest creating some brand new project (as I understand it's a Laravel framework), require the same packages and see if it will reproduce there.

0

Hi and thanks for your reply.

 

This is the error.

 

0

Thanks for the screenshot.

If you close that file and restart IDE .. it should not report the error again (I mean, the red underwave in the Project View; until you open that file again) -- works for me.

It behaves the same in 2019.3.4 as well (even though the `bin` folder is not marked as Excluded here (you mast have done something more .. or it works a bit different in 2020.1)

In any case, it's a known issue: https://youtrack.jetbrains.com/issue/WI-51811 --> https://youtrack.jetbrains.com/issue/WEB-43037 . The ticket says it's cased by VueJS plugin ... but it is disabled here in my setup, so it must be something different (although I do have required entries in my package.json as well, as it's a standard Laravel app). You may check with the devs in those tickets for updates.

0

Alright, thanks for your response. Restarting the IDE helps. And I also disabled Vue.js-plugin for now.

 

Thanks a lot :-) 

0

Please sign in to leave a comment.