Closed jamesadney closed 12 years ago
Similar problem since the last auto-update today, console shows this:
** 2012-11-04 15:15:42.547000 **:
GsComplete: Error while running ['gocode', '-f=json', 'autocomplete', 'C:\\gd\\src\\test\\main.go', 'c209']: GoSublime: Traceback (most recent call last):
File ".\gsshell.py", line 220, in run
File ".\gscommon.py", line 138, in popen
File ".\subprocess.py", line 633, in __init__
File ".\subprocess.py", line 842, in _execute_child
WindowsError: [Error 267] The directory name is invalid
--------------------------------
Also can confirm that creating an empty directory C:\Users\roxor\AppData\Roaming\Sublime Text 2\Packages\User\GoSublime\9 temporarily resolves the issue.
thanks for the report, the last commit edfdd1fcde824e77804fcaf92ba0f1d1cae37f59 should fix it
After updating the folder is created when missing without user intervention. Thanks for the quick fix.
Autocomplete stopped working today, presumably after an update to GoSublime. Here is the traceback I got when trying to use it:
This happens after commit 5802b1569ae4205e7eae242bbacf3cdbc902002b.
When the
_gocode()
function is called inmg9.py
it passesgs.home_path()
or$HOME/.config/sublime-text-2/Packages/User/GoSublime/9
as the current working directory. This path didn't exist on my system sosubprocess.Popen
threw the exception.After creating an empty folder at
$HOME/.config/sublime-text-2/Packages/User/GoSublime/9
autocomplete started working again.