I am not really sure how to reproduce it but the workaround is to close all golang source files, restart atom and disable/enable atom-ide-definitions, atom-ide-ui and ide-gopls. Note that all of these three packages are only in use to have the "go to definition" feature. I am not sure if there is a better way to do that. I could just not find one so far. Also note that this happened when I disabled the go-plus package, which I get more and more sick off as it is kind of broken and not supported anymore either.
Atom: 1.46.0 x64
Electron: 4.2.7
OS: Mac OS X 10.15.4
Thrown From: ide-gopls package 0.2.2
Stack Trace
Failed to activate the ide-gopls package
At Package not initialized
Error: Package not initialized
at /packages/atom-ide-ui/modules/nuclide-commons-atom/createPackage.js:61:15)
at Provider.provide (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:14:1119354)
at ServiceHub.provide (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:3180262)
at Package.activateServices (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:3188548)
at Package.activateNow (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:3185524)
at measure (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:3184848)
at Package.measure (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:3182458)
at activationPromise.activationPromise.Promise (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:3184708)
at new Promise (<anonymous>)
at Package.activate (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:3184651)
at PackageManager.activatePackage (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:382700)
at n.forEach.e (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:377866)
at Array.forEach (<anonymous>)
at disabledPackagesSubscription.disabledPackagesSubscription.config.onDidChange (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:377850)
at emitter.on (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:334901)
at Function.simpleDispatch (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1215907)
at Emitter.emit (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1217348)
at Config.emitChangeEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:337389)
at Config.setRawValue (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:334629)
at Config.set (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:330423)
at Config.removeAtKeyPath (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:332446)
at Package.enable (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:3182243)
at PackageManager.enablePackage (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:375564)
at HTMLButtonElement.enablementButtonClickHandler (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:14:2636518)
I am not really sure how to reproduce it but the workaround is to close all golang source files, restart atom and disable/enable
atom-ide-definitions
,atom-ide-ui
andide-gopls
. Note that all of these three packages are only in use to have the "go to definition" feature. I am not sure if there is a better way to do that. I could just not find one so far. Also note that this happened when I disabled thego-plus
package, which I get more and more sick off as it is kind of broken and not supported anymore either.Atom: 1.46.0 x64 Electron: 4.2.7 OS: Mac OS X 10.15.4 Thrown From: ide-gopls package 0.2.2
Stack Trace
Failed to activate the ide-gopls package
Commands
Non-Core Packages