This has happened for the last few updates.
Not a big issue, as a reload of atom has pigments working again.
Seems like the package is not testing for the pigments gutter before creating it, or not removing the gutter on deactivation, therefore throwing an error upon activation of the new gutter.
Steps to reproduce
Configure pigments to show colours in the editors gutter
Update pigments package
Error occurs upon activation of the new version of pigments
Atom Version: 1.10.2
Electron Version: 0.37.8
System: Mac OS X 10.12
Thrown From: pigments package, v0.37.0
Stack Trace
Failed to activate the pigments package
At Tried to create a gutter with a name that is already in use.
Error: Tried to create a gutter with a name that is already in use.
at GutterContainer.module.exports.GutterContainer.addGutter (/Applications/Atom.app/Contents/Resources/app.asar/src/gutter-container.js:36:15)
at TextEditor.module.exports.TextEditor.addGutter (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:2994:35)
at pigments-markers.ColorBufferElement.initializeGutter (/Users/vito/.atom/packages/pigments/lib/color-buffer-element.coffee:276:23)
at pigments-markers.ColorBufferElement.initializeNativeDecorations (/Users/vito/.atom/packages/pigments/lib/color-buffer-element.coffee:179:10)
at /Users/vito/.atom/packages/pigments/lib/color-buffer-element.coffee:95:10
at Config.module.exports.Config.observeKeyPath (/Applications/Atom.app/Contents/Resources/app.asar/src/config.js:616:7)
at Config.module.exports.Config.observe (/Applications/Atom.app/Contents/Resources/app.asar/src/config.js:141:21)
at pigments-markers.ColorBufferElement.setModel (/Users/vito/.atom/packages/pigments/lib/color-buffer-element.coffee:88:36)
at Object.module.exports.pigmentsViewProvider (/Users/vito/.atom/packages/pigments/lib/pigments.coffee:214:13)
at Object.createView (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:468:50)
at ViewRegistry.module.exports.ViewRegistry.createView (/Applications/Atom.app/Contents/Resources/app.asar/src/view-registry.js:113:34)
at ViewRegistry.module.exports.ViewRegistry.getView (/Applications/Atom.app/Contents/Resources/app.asar/src/view-registry.js:86:21)
at /Users/vito/.atom/packages/pigments/lib/color-project.coffee:370:40
at Workspace.module.exports.Workspace.observeTextEditors (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:332:9)
at ColorProject.module.exports.ColorProject.initializeBuffers (/Users/vito/.atom/packages/pigments/lib/color-project.coffee:361:52)
at new ColorProject (/Users/vito/.atom/packages/pigments/lib/color-project.coffee:170:12)
at Function.module.exports.ColorProject.deserialize (/Users/vito/.atom/packages/pigments/lib/color-project.coffee:48:14)
at Object.module.exports.activate (/Users/vito/.atom/packages/pigments/lib/pigments.coffee:19:20)
at Package.module.exports.Package.activateNow (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:183:20)
at /Applications/Atom.app/Contents/Resources/app.asar/src/package.js:156:32
at Package.module.exports.Package.measure (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:92:15)
at /Applications/Atom.app/Contents/Resources/app.asar/src/package.js:149:26
at Package.module.exports.Package.activate (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:146:34)
at PackageManager.module.exports.PackageManager.activatePackage (/Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:538:21)
at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/package-manager.js:397:31
This is a recurring issue, not only with Pigments, but in Atom itself. Atom prevents some packages from destroying/reloading on update. Restarting Atom usually fixes it.
This has happened for the last few updates. Not a big issue, as a reload of atom has pigments working again. Seems like the package is not testing for the pigments gutter before creating it, or not removing the gutter on deactivation, therefore throwing an error upon activation of the new gutter.
Steps to reproduce
Atom Version: 1.10.2 Electron Version: 0.37.8 System: Mac OS X 10.12 Thrown From: pigments package, v0.37.0
Stack Trace
Failed to activate the pigments package
Commands
Config
Installed Packages