idea-php-dotenv-plugin icon indicating copy to clipboard operation
idea-php-dotenv-plugin copied to clipboard

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

Open aoxiaoxi opened this issue 7 years ago • 9 comments

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 avatar Jan 24 '19 06:01 aoxiaoxi

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

aoxiaoxi avatar Jan 24 '19 06:01 aoxiaoxi

Please check

adelf avatar Jan 24 '19 12:01 adelf

it worked ! thank you!

aoxiaoxi avatar Jan 26 '19 03:01 aoxiaoxi

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

image

image

drawgas avatar Aug 08 '19 08:08 drawgas

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

adelf avatar Aug 08 '19 16:08 adelf

You were absolutely correct, thanks for pointing that out 👍

drawgas avatar Aug 09 '19 06:08 drawgas

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

gentax avatar Apr 21 '20 07:04 gentax

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!

LexSombra avatar Apr 21 '20 22:04 LexSombra

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.

BeQ avatar Mar 18 '21 20:03 BeQ