Skip to content

bug: It's not possible to add environment variable to the idea plugin JBang configuration #136

@philippart-s

Description

@philippart-s

Describe the bug
If I use environment variable for my dependencies, it works with JBang in a terminal or in an IDEA run configuration by settings environnement variables in the terminal or the run configuration.
But the dependencies synchronisation is broken and the completion and compilation in IDEA are broken too.

To Reproduce
Steps to reproduce the behavior:

  1. add a dependency using environnement variable, for exemple //DEPS dev.langchain4j:langchain4j:${env.LANGCHAIN4J_VERSION}
  2. Synchronise the JBang dependencies with Syncs JBang DEPS to module
  3. Display the empty JBang in IDEA
  4. Try to compile / use the code completion

Expected behavior
If I add a dependency with an environment variable I expect that works also in my IDE and I expect to have one place to configure the used environnement variables.

JBang version
jbang version --verbose
[jbang] [0:148] jbang version 0.132.0
Cache: /Users/sphilipp/.jbang/cache
Config: /Users/sphilipp/.jbang
Repository: /Users/sphilipp/.m2/repository
Java: /Users/sphilipp/.sdkman/candidates/java/24.0.1-tem [24.0.1]
OS: mac
Arch: aarch64
Shell: bash
0.132.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions