JetBrains / idea-php-dotenv-plugin

environment parameters completion, based on .env file keys
MIT License
166 stars 13 forks source link

.env file syntax highlighter not working #92

Closed squidjam closed 3 years ago

squidjam commented 3 years ago

I just installed the .env files suppport v2021.3.0.212 plugin on PhpStorm 2021.2.1 and it doesn't seem to be doing anything.

image

adelf commented 3 years ago

Please, try to check this comment: https://github.com/adelf/idea-php-dotenv-plugin/issues/90#issuecomment-898388301

angelxmoreno commented 3 years ago

I think we can close this. Had the same issue and it was resolved once I added .env as per #90

squidjam commented 3 years ago

I would like you to please reopen this since the issue has not been fixed by adding the .env entries to File Type. image

adelf commented 3 years ago

@squidjam probably some pattern is also registered to another file type. you can try to put focus to the red in this picture and search your file name here and it might find this "another" file type:

image

squidjam commented 3 years ago

It's not on any other of the groups listed in Recognized File Types, nor in the Ignored Files and Folders.

Here's the solution:

Could it be that this file associations somehow are not updated by the plugin if they are there (as in, if jetbrains included them already)?

It wasn't working, now it is. Cheers.