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

Doesn't work with PyCharm 2021.2 Pro

Open SerGeRybakov opened this issue 4 years ago • 16 comments

Hi! Unfortunately your plugin is unsupported by IntelliJ for new version of PyCharm (PyCharm 2021.2 (Professional Edition) Build #PY-212.4746.96, built on July 27, 2021). Is there any hope for making it work back?

SerGeRybakov avatar Aug 05 '21 14:08 SerGeRybakov

If you're talking about Run configuration, Env tab is a feature of the "EnvFile" plugin - https://plugins.jetbrains.com/plugin/7861-envfile

adelf avatar Aug 05 '21 14:08 adelf

I mean file support - https://plugins.jetbrains.com/plugin/9525--env-files-support

SerGeRybakov avatar Aug 05 '21 14:08 SerGeRybakov

What exactly "doesn't work"?

adelf avatar Aug 05 '21 14:08 adelf

Actually everything. Even if IDE settings are configured to treat .env-files as Env Files they're still being treated as text files. No hints in code, I can't even comment a string in env-file with CTRL+/. I tried to switch it on/off in settings and to download it from the link mentioned above - no result.

SerGeRybakov avatar Aug 05 '21 16:08 SerGeRybakov

What is the plugin version?

adelf avatar Aug 05 '21 16:08 adelf

image

SerGeRybakov avatar Aug 05 '21 16:08 SerGeRybakov

Thank you. I'll check.

Sorry for the tab question. I get tons of "issues" with this another plugin...

adelf avatar Aug 05 '21 16:08 adelf

Screenshot 2021-08-12 at 16 22 44

Having the same issue with current IntelliJ Idea

vojkny avatar Aug 12 '21 14:08 vojkny

I installed PyCharm and checked - everything works. What exactly doesn't work? If you're missing the Env tab in Run configuration: it is a feature of the another plugin - "EnvFile" https://plugins.jetbrains.com/plugin/7861-envfile

If you don't see the syntax highlighting for .env files: please check Settings > Editor > File Types. It should look like this:

image

adelf avatar Aug 13 '21 11:08 adelf

I get this error at startup:

Plugin error: File '~/Library/Application Support/JetBrains/Toolbox/apps/PyCharm-P/ch-0/212.4746.96/PyCharm 2021.2 EAP.app.plugins/EnvFile/lib/envfile-3.2.1.jar' contains invalid plugin descriptor

coordt avatar Aug 13 '21 18:08 coordt

On mine it said the installed plugin version was only compatible with PyCharm build 203 or older, but didn't give me an upgrade option. After disabling the plugin and trying to uninstall it, I could then see the upgrade option and the plugin is working now.

thomscode avatar Aug 13 '21 19:08 thomscode

@coordt this is another plugin - https://github.com/ashald/EnvFile/issues/151

adelf avatar Aug 13 '21 21:08 adelf

D'oh! 😊 Sorry about that.

coordt avatar Aug 14 '21 14:08 coordt

If you don't see the syntax highlighting for .env files: please check Settings > Editor > File Types. It should look like this:

image

Updating the .env file types fixed it for me. Thank you!!

nitinsavant avatar Sep 07 '21 14:09 nitinsavant

I installed PyCharm and checked - everything works. What exactly doesn't work? If you're missing the Env tab in Run configuration: it is a feature of the another plugin - "EnvFile" https://plugins.jetbrains.com/plugin/7861-envfile

If you don't see the syntax highlighting for .env files: please check Settings > Editor > File Types. It should look like this:

image

Thank you! The problem has been fixed after adding .env to the .env file group (initially it was in Text group)

sakhdevel avatar Feb 10 '22 12:02 sakhdevel

had same problem with '.env' file which was being treated by default as a 'Text file' - adding to '.env file' group it solved the issue, thanks

ibra86 avatar Jul 11 '22 10:07 ibra86