wy-z / Golite

Add essential language support for the Go language to Sublime Text 3.
MIT License
14 stars 1 forks source link

unable to install dependencies #23

Open dashingspidy opened 6 years ago

dashingspidy commented 6 years ago

While installing dependencies, it stops in [golite] running 'gometalinter --install' then this error appears in console: [golite] running 'gometalinter --install' Traceback (most recent call last): File "golite.installer in /Users/arifhossain/Library/Application Support/Sublime Text 3/Installed Packages/Golite.sublime-package", line 59, in install_go_tools File "golite.installer in /Users/arifhossain/Library/Application Support/Sublime Text 3/Installed Packages/Golite.sublime-package", line 53, in install_go_tools File "golite.installer in /Users/arifhossain/Library/Application Support/Sublime Text 3/Installed Packages/Golite.sublime-package", line 64, in run_cmd File "./python3.3/subprocess.py", line 542, in check_call File "./python3.3/subprocess.py", line 523, in call File "./python3.3/subprocess.py", line 819, in __init__ File "./python3.3/subprocess.py", line 1448, in _execute_child FileNotFoundError: [Errno 2] No such file or directory: 'gometalinter'

But gometalinter --install works from terminal.

OS: Mac OS 10.12.6 Go version: 1.9.2

mschurenko commented 6 years ago

I had the same problem. I think it’s a path issue with sublime. I found that if I launched sublime via the cli with the “subl” command that my path was correct but if I launched it via the dock it was incorrect.

dashingspidy commented 6 years ago

it works!

wy-z commented 6 years ago

Launch sublime via the cli should works~ On OS X, Sublime Text is launched via the dock, which never share's the user's shell environment. shellenv

wy-z commented 6 years ago

@mschurenko Thanks~