go-lang-plugin-org / go-lang-idea-plugin

Google Go language IDE built using the IntelliJ Platform
https://plugins.jetbrains.com/plugin/5047
Other
4.57k stars 573 forks source link

GOPATH warning showing up even if variable exists #1993

Closed onchainguy-btc closed 8 years ago

onchainguy-btc commented 8 years ago

As the screenshot show I still get the GOPATH warning like mentioned in issue #442. My Webstorm version is 11.0.1 and my plugin version is 0.10.607. I am working on OSX (El Capitan) and tried the following ways to set the variable:

image

dlsniper commented 8 years ago

Please click on the Configure Go Libraries link and make a screenshot of what's happening. Unfortunately I don't have a Mac but @zolotov and @ignatov have iirc and I could at least get all the information for them to figure it out. Thank you for your help investigating this :)

onchainguy-btc commented 8 years ago

Well when I click on Configure Go Libraries everything works fine and I can set my GOPATH manually (see screenshot). I mean I can definitely work with the plugin and it's awesome, but I just wanted to give you the hint that reading the GOPATH from the variable doesn't seem to work ;-) Doesn't work for all of the co workers in my team as well.

image

dlsniper commented 8 years ago

@seb0zz thanks for the quick help. It's a pity I can't be more helpful as this looks like an easy one. On Linux this works as expected so I'm expecting this to be a OS specific issue. Also setting the environment variables in .bashrc shouldn't work to begin with due to the execution model of "GUI" apps vs "terminal apps".

But it's strange that executing the app with an env variable doesn't fix the issue (if the checkbox is ticked).

@zolotov I'll leave this with you as I can't do more for now.

zolotov commented 8 years ago

@seb0zz please attach logs (Help | Show Logs)

onchainguy-btc commented 8 years ago
2015-11-12 17:17:29,892 [    254]   INFO -        #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------ 
2015-11-12 17:17:29,924 [    286]   INFO -        #com.intellij.idea.Main - IDE: WebStorm (build #WS-143.382.36, 10 Nov 2015 00:00) 
2015-11-12 17:17:29,924 [    286]   INFO -        #com.intellij.idea.Main - OS: Mac OS X (10.11.1, x86_64) 
2015-11-12 17:17:29,924 [    286]   INFO -        #com.intellij.idea.Main - JRE: 1.8.0_40-release-b92 (JetBrains s.r.o) 
2015-11-12 17:17:29,924 [    286]   INFO -        #com.intellij.idea.Main - JVM: 25.40-b25 (OpenJDK 64-Bit Server VM) 
2015-11-12 17:17:29,932 [    294]   INFO -        #com.intellij.idea.Main - JVM Args: -Dfile.encoding=UTF-8 -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Xverify:none -Xbootclasspath/a:../lib/boot.jar -Xms128m -Xmx750m -XX:MaxPermSize=350m -XX:ReservedCodeCacheSize=240m -XX:+UseCompressedOops -Djb.vmOptionsFile=/Applications/WebStorm.app/Contents/bin/webstorm.vmoptions -Didea.java.redist=custom-jdk-bundled -Didea.home.path=/Applications/WebStorm.app/Contents -Didea.executable=webstorm -Didea.platform.prefix=WebStorm -Didea.paths.selector=WebStorm11 
2015-11-12 17:17:29,953 [    315]   INFO -        #com.intellij.idea.Main - JNA library loaded (64-bit) in 21 ms 
2015-11-12 17:17:29,956 [    318]   INFO -        #com.intellij.idea.Main - initializing environment 
2015-11-12 17:17:29,957 [    319]   INFO - .intellij.util.EnvironmentUtil - loading shell env: /bin/zsh -l -i -c '/Applications/WebStorm.app/Contents/bin/printenv.py' '/private/var/folders/4v/9r1bp48x6jz22kwptryxzsbh0000gp/T/intellij-shell-env.0.tmp' 
2015-11-12 17:17:30,387 [    749]   INFO - .intellij.util.EnvironmentUtil - shell environment loaded (30 vars) 
2015-11-12 17:17:31,665 [   2027]   INFO - llij.ide.plugins.PluginManager - Cannot find optional descriptor js-nashorn-support.xml 
2015-11-12 17:17:32,140 [   2502]   INFO - llij.ide.plugins.PluginManager - 50 plugins initialized in 752 ms 
2015-11-12 17:17:32,142 [   2504]   INFO - llij.ide.plugins.PluginManager - Loaded bundled plugins: ASP (0.1), AngularJS (143.382.36), CSS Support (143.SNAPSHOT), CVS Integration (11), CoffeeScript (2.0), Cucumber.js (143.382.36), Dart (143.382.36), EJS (143.382.36), EditorConfig (143.382.36), File Watchers (143.382.36), Gherkin (999.999), Git Integration (8.1), GitHub (143.382.36), HAML (143.SNAPSHOT), HTML Tools (2.0), Handlebars/Mustache (143.382.36), IDEA CORE (143.SNAPSHOT), IntelliLang (8.0), Jade (143.382.36), Java Server Pages Integration (1.0), JavaScript Debugger (1.0), JavaScript Intention Power Pack (0.9.4), JavaScript Support (1.0), Karma (143.382.36), LESS support (143.SNAPSHOT), LiveEdit (999.0), Meteor (143.382.36), NodeJS (143.382.36), Perforce Integration (2.0), PhoneGap/Cordova Plugin (143.382.36), Polymer & Web Components (143.382.36), QuirksMode (143.SNAPSHOT), REST Client (143.SNAPSHOT), Refactor-X (2.01), Remote Hosts Access (0.1), SASS support (143.SNAPSHOT), Settings Repository (143.382.36), Spy-js (143.382.36), Stylus support (143.382.36), Subversion Integration (1.1), Task Management (1.0), Terminal (0.1), TextMate bundles support (VERSION), W3C Validators (2.0), XPathView + XSLT Support (4), XSLT-Debugger (1.4), YAML (143.SNAPSHOT), Yeoman (143.382.36), hg4idea (10.0) 
2015-11-12 17:17:32,142 [   2504]   INFO - llij.ide.plugins.PluginManager - Loaded custom plugins: Go (0.10.607) 
2015-11-12 17:17:32,638 [   3000]   INFO - ellij.util.io.PagedFileStorage - lower=100; upper=200; buffer=10; max=739246080 
2015-11-12 17:17:32,672 [   3034]   INFO - pl.local.NativeFileWatcherImpl - Starting file watcher: /Applications/WebStorm.app/Contents/bin/fsnotifier 
2015-11-12 17:17:32,685 [   3047]   INFO - pl.local.NativeFileWatcherImpl - Native file watcher is operational. 
2015-11-12 17:17:33,594 [   3956]   INFO - lij.diagnostic.DebugLogManager - Set DEBUG for the following categories: [] 
2015-11-12 17:17:33,867 [   4229]   INFO - rains.ide.BuiltInServerManager - built-in server started, port 63342 
2015-11-12 17:17:34,548 [   4910]   INFO - plication.impl.ApplicationImpl - 78 application components initialized in 3161 ms 
2015-11-12 17:17:34,588 [   4950]   INFO - .intellij.idea.IdeaApplication - App initialization took 5432 ms 
2015-11-12 17:17:36,314 [   6676]   INFO - ellij.project.impl.ProjectImpl - 108 project components initialized in 892 ms 
2015-11-12 17:17:36,428 [   6790]   INFO - le.impl.ModuleManagerComponent - 1 module(s) loaded in 113 ms 
2015-11-12 17:17:37,674 [   8036]   INFO - tartup.impl.StartupManagerImpl - /Users/sebastian.gronewold/go-playground/.idea/misc.xml case-sensitivity: false 
2015-11-12 17:17:38,393 [   8755]   INFO - .diagnostic.PerformanceWatcher - Pushing properties took 15ms; general responsiveness: ok; EDT responsiveness: ok 
2015-11-12 17:17:38,807 [   9169]   INFO - tor.impl.FileEditorManagerImpl - Project opening took 3434 ms 
2015-11-12 17:17:39,284 [   9646]   INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 890ms; general responsiveness: ok; EDT responsiveness: ok 
2015-11-12 17:17:39,629 [   9991]   INFO - lij.tasks.impl.TaskManagerImpl - Updating issues cache (every 20 min) 
zolotov commented 8 years ago

.intellij.util.EnvironmentUtil - loading shell env: /bin/zsh -l -i -c

Looks like bash is not your default shell, hence .bash_profile and .bashrc won't be loaded. Try to define your env in .zsh_profile instead.

onchainguy-btc commented 8 years ago

Damn I'm sorry. Worked when I put the GOPATH variable in my .zshrc file. Thank you for your help!

abonec commented 8 years ago

I have the same issue. My default shell - zsh, OS - ubuntu. I put GOPATH in .zshrc, .zsh-profile, .profile, .bashrc but still got this error