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
535 stars 126 forks source link

Unable to build locally with fresh git project #152

Closed runswithd6s closed 2 years ago

runswithd6s commented 2 years ago

When attempting to build the plugin locally, I'm unable to get a clean, test, or build action to execute cleanly. This error is shown. What steps are required to build this plugin successfully? I do not have a copy of RubyMine or the other products this plugin supports fully.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':envfile-products-goland'.
> Failed to notify project evaluation listener.
   > javax/xml/bind/JAXBContext

Version: * develop bcbce38 [origin/develop] Revert "IDEA 2020.1 note" Environment: Mac OS 11.5.2, Homebrew 3.2.2

Reproduction Steps

  1. Check out repository
  2. ./gradlew clean test build

Extended Output

~/upstream/EnvFile [736]$ ./gradlew clean test build --info
Initialized native services in: /Users/cwalstrom/.gradle/native
Found daemon DaemonInfo{pid=74990, address=[863059c5-a0e2-4cb3-87f3-1242f47c645b port:58582, addresses:[/0:0:0:0:0:0:0:1, /127.0.0.1]], state=Idle, lastBusy=1629141344682, context=DefaultDaemonContext[uid=f9e713bd-3c92-4406-86c9-c4bcdfcc455f,javaHome=/Users/cwalstrom/.sdkman/candidates/java/8.282.08.1-amzn,daemonRegistryDir=/Users/cwalstrom/.gradle/daemon,pid=74990,idleTimeout=10800000,daemonOpts=-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]} however its context does not match the desired criteria.
Java home is different.
Wanted: DefaultDaemonContext[uid=null,javaHome=/Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home,daemonRegistryDir=/Users/cwalstrom/.gradle/daemon,pid=76084,idleTimeout=null,daemonOpts=--add-opens,java.base/java.util=ALL-UNNAMED,-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]
Actual: DefaultDaemonContext[uid=f9e713bd-3c92-4406-86c9-c4bcdfcc455f,javaHome=/Users/cwalstrom/.sdkman/candidates/java/8.282.08.1-amzn,daemonRegistryDir=/Users/cwalstrom/.gradle/daemon,pid=74990,idleTimeout=10800000,daemonOpts=-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]

  Looking for a different daemon...
The client will now receive all logging from the daemon (pid: 74804). The daemon log file: /Users/cwalstrom/.gradle/daemon/4.10.2/daemon-74804.out.log
Starting 9th build in daemon [uptime: 26 mins 19.114 secs, performance: 98%]
Using 8 worker leases.
Invalidating in-memory cache of /Users/cwalstrom/upstream/EnvFile/.gradle/4.10.2/fileHashes/fileHashes.bin
Starting Build
Settings evaluated using settings file '/Users/cwalstrom/upstream/EnvFile/settings.gradle'.
Projects loaded. Root project using build file '/Users/cwalstrom/upstream/EnvFile/build.gradle'.
Included projects: [root project 'envfile', project ':envfile-core', project ':envfile-platform', project ':envfile-products-goland', project ':envfile-products-idea', project ':envfile-products-pycharm', project ':envfile-products-rubymine']

> Configure project :
Evaluating root project 'envfile' using build file '/Users/cwalstrom/upstream/EnvFile/build.gradle'.
Configuring IntelliJ IDEA gradle plugin
Configuring patch plugin.xml task
Configuring prepare IntelliJ sandbox task
Configuring prepare IntelliJ sandbox task
Configuring plugin verification task
Configuring run IntelliJ task
Configuring building IntelliJ IDEA plugin task
Configuring publishing IntelliJ IDEA plugin task
Configuring IntelliJ resources task
Configuring IntelliJ compile tasks
Configuring IntelliJ IDEA dependency
Using IDE from remote repository
IntelliJ IDEA dependency cache directory: /Users/cwalstrom/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2018.3/70e72bdc97f330ebe4f06ad307d8928ea903cf87/ideaIC-2018.3
Adding IntelliJ IDEA sources repository
Configuring IntelliJ IDEA extra dependencies []
IntelliJ IDEA IC-183.4284.148 is used for building
Configuring IntelliJ IDEA plugin dependencies
Configuring IntelliJ tests tasks

> Configure project :envfile-core
Evaluating project ':envfile-core' using build file '/Users/cwalstrom/upstream/EnvFile/modules/core/build.gradle'.

> Configure project :envfile-platform
Evaluating project ':envfile-platform' using build file '/Users/cwalstrom/upstream/EnvFile/modules/platform/build.gradle'.
Configuring IntelliJ IDEA gradle plugin
Configuring patch plugin.xml task
Configuring prepare IntelliJ sandbox task
Configuring prepare IntelliJ sandbox task
Configuring plugin verification task
Configuring run IntelliJ task
Configuring building IntelliJ IDEA plugin task
Configuring publishing IntelliJ IDEA plugin task
Configuring IntelliJ resources task
Configuring IntelliJ compile tasks
Configuring IntelliJ IDEA dependency
Using IDE from remote repository
IntelliJ IDEA dependency cache directory: /Users/cwalstrom/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2018.3/70e72bdc97f330ebe4f06ad307d8928ea903cf87/ideaIC-2018.3
Adding IntelliJ IDEA sources repository
Configuring IntelliJ IDEA extra dependencies []
IntelliJ IDEA IC-183.4284.148 is used for building
Configuring IntelliJ IDEA plugin dependencies
Configuring IntelliJ tests tasks

> Configure project :envfile-products-goland
Evaluating project ':envfile-products-goland' using build file '/Users/cwalstrom/upstream/EnvFile/modules/products/goland/build.gradle'.
Configuring IntelliJ IDEA gradle plugin
Configuring patch plugin.xml task
Configuring prepare IntelliJ sandbox task
Configuring prepare IntelliJ sandbox task
Configuring plugin verification task
Configuring run IntelliJ task
Configuring building IntelliJ IDEA plugin task
Configuring publishing IntelliJ IDEA plugin task
Configuring IntelliJ resources task
Configuring IntelliJ compile tasks
Configuring IntelliJ IDEA dependency
Using IDE from remote repository
IntelliJ IDEA dependency cache directory: /Users/cwalstrom/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2018.3/70e72bdc97f330ebe4f06ad307d8928ea903cf87/ideaIC-2018.3
Adding IntelliJ IDEA sources repository
Configuring IntelliJ IDEA extra dependencies []
IntelliJ IDEA IC-183.4284.148 is used for building
Configuring IntelliJ IDEA plugin dependencies
Configuring IntelliJ plugin org.jetbrains.plugins.go:183.4284.36.1532

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':envfile-products-goland'.
> Failed to notify project evaluation listener.
   > javax/xml/bind/JAXBContext

* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org
shinichy commented 2 years ago

I think you're using Java 11. Please make sure you're using java 8.

runswithd6s commented 2 years ago

I think you're using Java 11. Please make sure you're using java 8.

That indeed was the problem. This should probably be called out in the README.md. Thanks for your help!