noonat / sublime-gofmt

Sublime plugin to run gofmt (or goimports, or whatever you want).
MIT License
28 stars 6 forks source link

AttributeError: 'module' object has no attribute 'subprocess_info #4

Closed HormyAJP closed 7 years ago

HormyAJP commented 7 years ago

Recently upgraded Sublime 3 to 3.0 Build 3143. Since then, every time I save a .go file I get an exception:

Traceback (most recent call last):
  File "gofmt in /Users/XXXX/Library/Application Support/Sublime Text 3/Installed Packages/Gofmt.sublime-package", line 233, in run_formatter
  File "gofmt in /Users/XXXX/Library/Application Support/Sublime Text 3/Installed Packages/Gofmt.sublime-package", line 144, in __init__
  File "gofmt in /Users/XXXX/Library/Application Support/Sublime Text 3/Installed Packages/Gofmt.sublime-package", line 144, in <listcomp>
  File "gofmt in /Users/XXXX/Library/Application Support/Sublime Text 3/Installed Packages/Gofmt.sublime-package", line 68, in __init__
AttributeError: 'module' object has no attribute 'subprocess_info'

Looks like subprocess_info is expected to be a attribute of golangconfig. Guessing either this component or golangconfig changed during the update and broke this.

Haven't looked much further yet I'm afraid (sorry, no time).

noonat commented 7 years ago

This appears to be fixed with v0.1.2. I think it may have been caused by the missing dependency.

p3lim commented 6 years ago

Getting the same error, just other line numbers. Windows 10, ST 3175, Go 1.11.0