EnvFile icon indicating copy to clipboard operation
EnvFile copied to clipboard

Plugin fails to load variables in IntelliJ

Open cjdudleybw opened this issue 3 years ago • 10 comments

I've run into a bug using EnvFile in IntelliJ Ultimate Edition (full version/specs below). The file definitely exists on my system, and I've checked with colleagues that the rest of the config is correct, however the plugin fails to load in the Environment Variables stored in my env file. Bulk pasting the contents of the file manually works fine, which is why I suspect a bug in the plugin. Is this a known issue?

IntelliJ IDEA 2020.2.3 (Ultimate Edition) Build #IU-202.7660.26, built on October 6, 2020 Runtime version: 11.0.8+10-b944.34 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Linux 5.4.0-53-generic GC: ParNew, ConcurrentMarkSweep Memory: 2988M Cores: 12 Non-Bundled Plugins: PlantUML integration, claims.bold.intellij.avro, com.andrey4623.rainbowcsv, com.markskelton.one-dark-theme, com.potterhsu.jsonviewer, com.thvardhan.gradianto, com.vincentp.gruvbox-theme, de.netnexus.camelcaseplugin, net.ashald.envfile, net.seesharpsoft.intellij.plugins.csv, com.viartemev.requestmapper, org.intellij.scala Current Desktop: X-Cinnamon

cjdudleybw avatar Nov 18 '20 10:11 cjdudleybw

@cjdudleybw not sure if I ran into the same issue but for reasons still unknown, a run configuration that I had been using for years also just started failing with the same symptoms. Config looks correct but EnvFile was not loading the variables stored in my env file.

In my case I was able to workaround by creating a new run config with the same settings. Would be interested to know if that works for you?

goosmurf avatar Nov 24 '20 07:11 goosmurf

I am facing the same issue. The plugin is not loading the Environment Variables defined in my env file.

IntelliJ IDEA 2020.2.3 (Ultimate Edition)
Build #IU-202.7660.26, built on October 6, 2020
Licensed to IntelliJ IDEA Evaluator
Expiration date: December 23, 2020
Runtime version: 11.0.8+10-b944.34 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.4.0-53-generic
GC: ParNew, ConcurrentMarkSweep
Memory: 949M
Cores: 4
Non-Bundled Plugins: net.ashald.envfile, com.intellij.kubernetes, com.intellij.bigdatatools, training
Current Desktop: ubuntu:GNOME

mfaizanse avatar Nov 24 '20 10:11 mfaizanse

@goosmurf I also ran into the same issue w/ a run config that had been working for months.

I tried recreating the run config, but that did not work.

IntelliJ IDEA 2020.2.4 (Community Edition)
Build #IC-202.8194.7, built on November 24, 2020
Runtime version: 11.0.9+11-b944.49 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 10.16
GC: ParNew, ConcurrentMarkSweep
...
Non-Bundled Plugins: net.ashald.envfile, org.jetbrains.kotlin

virtuoushub avatar Nov 25 '20 16:11 virtuoushub

Hi there, plugin maintainer here. As you can tell, I have very limited time for supporting the plugin right now. Funny enough, I use plugin in IDEA for JUnit run configurations on daily basis on macOS Catalina and that have been working for me flawlessly.

I haven't tried upgrading to Big Sure yet, nor I have Windows or Linux machines handy to try it there. I just downloaded the latest version of IDEA, created a new project and confirmed plugin working.

Given the above, I'd assume that very likely is that plugin on its own works fine, but either project configuration got screwed up (EnvFile plugin on its own, IDEA version upgrade, a 3rd party plugin etc), or something else happened. Would be curious if @goosmurf 's workaround would work for anyone else. And if no... you know, we're all developers, right? The best way to get this fixed, is to debug the plugin when the issue is reproduced. The README has instructions on building the plugin, so you should be able to get run the plugin in debug mode with another instance of IDEA and catch the root cause of the issue. This way you'd bea bel to help yourself and others! 😊

ashald avatar Nov 26 '20 01:11 ashald

Not working on IDEA 2020.2.3.

vojkny avatar Nov 28 '20 19:11 vojkny

Not that it's helping, but I updated to IDEA 2020.2.3 and it's also now not working for me - tried deleting the .idea directory, but that didn't seem to help.

justin-dd avatar Dec 01 '20 23:12 justin-dd

It seems to be something relative also to kotlin plugin 1.4.x. Rolling back to 1.3.latest the env plugin start working again.

same behaviour on 2020.2.3 and 2020.3

FedericoOldrini avatar Dec 02 '20 15:12 FedericoOldrini

I had this same issue, I've upgraded Kotlin plugin to 1.4.21 (203-1.4.21-release-IJ6682.9) and EnvFile is now working as intended.

Thource avatar Jan 07 '21 09:01 Thource

So I guess it's working now?

ashald avatar Sep 02 '21 04:09 ashald

I'm still getting this issue in Pycharm with no Kotlin plugin installed

mdassow-varde avatar Sep 22 '21 19:09 mdassow-varde

Happens to me as well with PyCharm 2022.2.2 with no Kitlin plugin installed

sasha-wing avatar Oct 06 '22 14:10 sasha-wing

This was supposed to be fixed with 3.4.1. If you still face issues, open a new issue and note down your IDE version, your plugin version and run configuration in question.

ashald avatar Oct 08 '22 19:10 ashald

Regression? I have this issue with release 2022.3 in IntelliJ IDEA Build #IU-223.8617.56, built on January 26, 2023.

I'll open another issue

HWiese1980 avatar Apr 03 '23 13:04 HWiese1980