adelf / idea-php-dotenv-plugin

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

Doesn't work with PyCharm 2021.2 Pro #90

Open SerGeRybakov opened 3 years ago

SerGeRybakov commented 3 years ago

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?

adelf commented 3 years ago

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

SerGeRybakov commented 3 years ago

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

adelf commented 3 years ago

What exactly "doesn't work"?

SerGeRybakov commented 3 years ago

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.

adelf commented 3 years ago

What is the plugin version?

SerGeRybakov commented 3 years ago

image

adelf commented 3 years ago

Thank you. I'll check.

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

vojkny commented 3 years ago
Screenshot 2021-08-12 at 16 22 44

Having the same issue with current IntelliJ Idea

adelf commented 3 years ago

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

coordt commented 3 years ago

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

thomscode commented 3 years ago

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.

adelf commented 3 years ago

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

coordt commented 3 years ago

D'oh! 😊 Sorry about that.

nitinsavant commented 3 years ago

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!!

sakhdevel commented 2 years ago

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)

ibra86 commented 2 years ago

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