adelf / idea-php-dotenv-plugin

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

I install this is valid,but only env.example is valid and highlight. .env is not valid #34

Open aoxiaoxi opened 5 years ago

aoxiaoxi commented 5 years ago

I install this plugin first time ,env.example and .env is valid and highlight. but phpstorm's event log say like reconvert file,I click that button.and then .env is not valid. so I unstall plugin and install this plugin again。but .env is not valid, only env.example is valid and highlight. help me ,thanks!

aoxiaoxi commented 5 years ago

.env.example image .env image why did it happen?

adelf commented 5 years ago

Please check

aoxiaoxi commented 5 years ago

it worked ! thank you!

drawgas commented 5 years ago

Can't seem to make it work for deeper level .env files. While for the main .env it works perfectly

image

image

adelf commented 5 years ago

Hi @drawgas . image Maybe you somehow marked this file(file type) as a text file?

drawgas commented 5 years ago

You were absolutely correct, thanks for pointing that out 👍

gentax commented 4 years ago

when I updated webstorm to latest release 2020.1, it reassigned .env to text file type, even if it was listed to .env I deleted it from text and it worked well again

LexSombra commented 4 years ago

when I updated webstorm to latest release 2020.1, it reassigned .env to text file type, even if it was listed to .env I deleted it from text and it worked well again

Thanks, worked perfectly!

BeQ commented 3 years ago

i do not use .env file, but .env.local/.env.stagin/etc, so i've added .env.* pattern in File Types. the code highlighting works perfectly, but there is no code completion (for example in env() function). any ideas?

to be clear: if i have .env file the code completion works fine, but not for the other env files. so my suggestion/feature-request is: parse all env files and combine keys (because for different environment you can have different set of variables) or, at least, have the possibility to choose the file to be used as reference.