ashald / EnvFile

EnvFile 3.x is a plugin for JetBrains IDEs that allows you to set environment variables for your run configurations from one or multiple files.
MIT License
539 stars 129 forks source link

Empty environment variables on IntelliJ IDEA 2022.2 (Community Edition) #185

Closed luiscoms closed 1 year ago

luiscoms commented 2 years ago

I am getting empty environment variables on Python projects even I set a value after IntelliJ Update

IntelliJ IDEA 2022.2 (Community Edition)
Build #IC-222.3345.118, built on July 26, 2022
Runtime version: 17.0.3+7-b469.32 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.15.0-41-generic
GC: G1 Young Generation, G1 Old Generation
Memory: 1960M
Cores: 8
Non-Bundled Plugins:
    Key Promoter X (2022.2)
    org.sonarlint.idea (6.8.0.50884)
    PythonCore (222.3345.118)
    ru.meanmail.plugin.requirements (2022.3-222-EAP-SNAPSHOT)
    net.ashald.envfile (3.2.2)
    ru.adelf.idea.dotenv (2022.2)
    izhangzhihao.rainbow.brackets (6.25)

Kotlin: 222-1.7.10-release-334-IJ3345.118
Current Desktop: ubuntu:GNOME
RockyMM commented 1 year ago

@ashald Borys, that's not fair. I have a fair share of contributions to OSS - Liquibase, openapi-generator. I am in a position where my free time is extremely limited. I think that given my free time I gave back to the community.

I only took a quick look at this repo and saw open PRs from 2020. It really felt neglected. I know this plugin is fully OSS, but I did not feel it would be right that anyone ports Hassan's solution back upstream, even more so as the probability of you approving the PR seemed so small.

modernNeo commented 1 year ago

@RockyMM

I am in a position where my free time is extremely limited.

For all we know @ashald's time is even more limited than yours and they have already expressed the fact that they are not being supported as much as they need to be financially by the users of this plugin [myself included], couple that with the fact that this is OSS, it's par for the course imo for an OSS repo to sometimes feel abandoned.

ashald commented 1 year ago

To be clear, I didn't mean to pick on anyone personally - apologies if that was an impression.

What I'm saying is that when I see a person with exclusive background in e.g. Python commenting on the issue like this, I have no questions whatsoever as they simply may lack expertise in Java to contribute a fix. When I see a person with lots of repos in Java, I'd imagine nothing really stops them from trying to debug an issue on their own. Well, except the lack of time or real interest in that thing working.

And I must be fair: I did have few contributions when people saw things broken and submitted a PR to fix them, but I'm wondering about that fuzzy state in which "it's annoying enough to comment on a ticket, but not annoying enough to contribute a fix despite having relevant expertise."

ashald commented 1 year ago

FWIW, I pushed fixes into the develop branch. I plan to include few extra small fixes and release a new version coming week. Stay tuned.

HassanAbouelela commented 1 year ago

Glad to see things are still picking up steam here! I've gone ahead and added notices to my fork telling people to head back here. If you had installed one of my releases, and would like to go back, just uninstall, and reinstall directly from the plugin marketplace once it's available there.

mrworkman commented 1 year ago

Lol, was just about to open a pull request with fixes for Idea and PyCharm... oh well, learned a lot about JetBrains plugins 😆

ashald commented 1 year ago

@mrworkman what did you plan to fix for IDEA? I was under impressions it works fine.

ashald commented 1 year ago

OK, whatever, cut a new release https://github.com/ashald/EnvFile/releases/tag/v3.3.0

Going to submit it to JetBrains later tonight.

Going to resolve this issue, but if you find any bugs etc - feel free to reopen or create a new issue.

mrworkman commented 1 year ago

@mrworkman what did you plan to fix for IDEA? I was under impressions it works fine.

EnvFile didn't work for me in IntelliJ 2022.2.2 until I updated to a more recent SDK and updated the method signature.

szaffarano commented 1 year ago

@mrworkman it doesn't work in my environment, Build #IU-222.4345.14, built on October 5, 2022 What do you mean by updated the method signature? Thanks

it-ony commented 1 year ago

same here: Intellij Idea Build #IU-222.4345.14, built on October 5, 2022, doesn't load the .env file with plugin version 3.4.1. /cc @ashald

trondhindenes commented 1 year ago

same here. Is there any version/fork of envfile that is known to work in Pycharm 2022.2.3?

it-ony commented 1 year ago

@trondhindenes I guess we need to create a new issue with reference to this one to move people to reopen this isse.

ashald commented 1 year ago

Just checked and works like a charm in PyCharm 2022.2.4

trondhindenes commented 1 year ago

I got it working. The error was that I tried to use envfile with Pycharm's test runner, and that doesn't work. However regular run configurations do. :shrug:

dm-test commented 1 year ago

IntelliJ IDEA 2022.2.3 (Ultimate Edition) Build #IU-222.4345.14, built on October 5, 2022 Runtime version: 17.0.4.1+7-b469.62 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Windows 10 10.0

I have the same problem with Cucumber Java Run/Debug configuration. But running tests with Maven works good.