Comments (10)
Actually, I was able to figure out a hack to make it work. See https://github.com/ashald/EnvFile#experimental-integrations for details.
I just released v3.2.0
and it may take up to 2 days for JetBrains to process the release, in meantime you can download release directly and install it manually from https://github.com/ashald/EnvFile/releases/tag/v3.2.0
Kudos to @mertvetsky for reproduction steps!
from envfile.
Cannot say for sure yet but it seems that it might be possible - take some time to figure out available integration points...
from envfile.
I use Idea 2017.3.3 and env version 2.1.0.
The env-file tab is available but does not have any effect.
The variables used are asfollows:
EXT_DATABASE_PASSWORD=cde
EXT_DATABASE_PORT=5432
EXT_DATABASE_SCHEMA=cde
EXT_DATABASE_USER=cde
...
Whats up with my doing?
from envfile.
I just tried it with 2017.3.4
and it worked fine. Did you verify that both the plugin and the file are enabled?
Also, I wonder if it might be related to the content of your file and parser used. My test file looked exactly this way:
EXT_DATABASE_PASSWORD=cde
EXT_DATABASE_PORT=5432
EXT_DATABASE_SCHEMA=cde
EXT_DATABASE_USER=cde
from envfile.
Ah, wait, I used an Application
run configuration.
Can you please provide me with a minimal Gradle
project I can use to run some simple app that prints its environment?
from envfile.
I will try it to morrow in the morning.
from envfile.
I met same problem: running by gradle tasks do not uses file for env import on IDEA community 2018.2
How check it:
- Create new gradle project with java
- Edit
build.gradle
like this (just add application plugin and mainClassName):
plugins {
id 'java'
id 'application'
}
group 'mert'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
}
mainClassName="App"
- Create file ./src/main/java/App.java:
public class App {
public static void main(String[] args) {
System.out.print(System.getenv().getOrDefault("FOO", "EMPTY"));
}
}
- Run application/run task from gradle sidebar
- Then edit created Run/Debug config for import file with parameter
FOO=BAR
PS
When this project runs by "play button" opposite main method it works fine.
from envfile.
Same issue here, any ETA on this please?
from envfile.
@yelhouti contributions are welcome!
from envfile.
great thank you very much :)
from envfile.
Related Issues (20)
- EnvFile 3.4.1 crash HOT 4
- Error response from daemon: invalid environment variable: =::=::\ HOT 2
- Issues when using with IntelliJ 2023.1 HOT 19
- Allow Kubernetes yaml style
- Read access is allowed from inside read-action (or EDT) only HOT 3
- Does not work with custom defined files.
- New Release 3.4.2
- Causes ModuleNotFoundError error in PyCharm HOT 1
- Missing EnvFile tab in 2023.2.2 HOT 6
- $PROJECT_DIR$ is not working HOT 1
- Crash when starting a springboot application with a YAML env file
- Security vulnerability in apache commons-text v1.9 HOT 2
- When executable is ticked, please add an option to run it from the working dir configured in the run config
- command line to set envfile extension
- env file not loaded for Gradle run/debug configurations HOT 3
- Support for all Macros
- Support for react native configurations HOT 1
- EnvFile not working in Kotlin Configurations
- With "Ignore missing files" option off no visible error is shown if the file is missing, all gradle commands fail silently HOT 1
- EnvFile configuration resets on restart for ScalaTest setups HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from envfile.