-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Prerequisites
- Put an X between the brackets on this line if you have done all of the following:
- Reproduced the problem in Safe Mode: https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
- Followed all applicable steps in the debugging guide: https://flight-manual.atom.io/hacking-atom/sections/debugging/
- Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
- Checked that your issue isn't already filed: https://github.com/issues?q=is%3Aissue+user%3Aatom
- Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
When both gitlab-manager and gitlab-integration are installed, there is an error activating gitlab-manager, as it tries to create elements which already exist (because gitlab-integration created them).
Steps to Reproduce
- install gitlab-manager:
ppm install gitlab-manager - install gitlab-integration:
ppm install gitlab-integration - open pulsar
Expected behavior:
Both packages should load without error
Actual behavior:
gitlab integration loads, creates elements on the status bar, etc - gitlab-manager tries to load and create the same elements, which fails and causes the error I'm reporting
Versions
Atom: 1.103.0 arm64
Electron: 12.2.3
OS: macOS 13.2.1
Thrown From: gitlab-manager package 0.2.2
Stack Trace
Failed to activate the gitlab-manager package
At A status-bar-gitlab type is already registered
Error: A status-bar-gitlab type is already registered
at throwTypeError (/app.asar/node_modules/document-register-element/build/document-register-element.node.js:1264:11)
at registerElement (/app.asar/node_modules/document-register-element/build/document-register-element.node.js:1022:9)
at HTMLDocument.document.registerElement (/app.asar/static/index.js:103:14)
at /packages/gitlab-manager/lib/status-bar-view.coffee:201:27)
at /packages/gitlab-manager/lib/status-bar-view.coffee:1:1)
at /packages/gitlab-manager/lib/status-bar-view.coffee:1:1)
at Module._compile (/app.asar/src/native-compile-cache.js:120:30)
at /app.asar/src/compile-cache.js:252:23)
at Module.load (internal/modules/cjs/loader.js:935:32)
at Module._load (internal/modules/cjs/loader.js:776:14)
at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
at Function.o._load (electron/js2c/renderer_init.js:33:379)
at Module.require (internal/modules/cjs/loader.js:959:19)
at require (/app.asar/src/native-compile-cache.js:67:27)
at /packages/gitlab-manager/lib/gitlab-manager.coffee:4:17)
at /packages/gitlab-manager/lib/gitlab-manager.coffee:1:1)
at /packages/gitlab-manager/lib/gitlab-manager.coffee:1:1)
at Module._compile (/app.asar/src/native-compile-cache.js:120:30)
at /app.asar/src/compile-cache.js:252:23)
at Module.load (internal/modules/cjs/loader.js:935:32)
at Module._load (internal/modules/cjs/loader.js:776:14)
at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
at Function.o._load (electron/js2c/renderer_init.js:33:379)
at Module.require (internal/modules/cjs/loader.js:959:19)
at require (/app.asar/src/native-compile-cache.js:67:27)
at requireModule (/app.asar/src/module-utils.js:3:17)
at Package.requireMainModule (/app.asar/src/package.js:909:27)
at Package.activateNow (/app.asar/src/package.js:232:34)
at /app.asar/src/package.js:211:27
at Package.measure (/app.asar/src/package.js:82:19)
Commands
-9:38.9.0 core:paste (input.hidden-input)
-9:37.3.0 core:save (input.hidden-input)
-1:36.1.0 application:add-project-folder (div.tool-panel.tree-view)
-1:19.4.0 core:copy (atom-notification.fatal.icon.icon-bug.native-key-bindings.has-detail.has-close.has-stack)
-1:14.5.0 project-find:show-in-current-directory (span.name.icon.icon-repo)
-1:13.1.0 core:paste (input.hidden-input)
-1:12.6.0 core:confirm (input.hidden-input)
-1:11 core:backspace (input.hidden-input)
-1:10.4.0 core:confirm (input.hidden-input)
-1:04.3.0 core:move-right (input.hidden-input)
-1:04.0 core:move-left (input.hidden-input)
2x -0:58 core:confirm (input.hidden-input)
-0:19.7.0 intentions:highlight (input.hidden-input)
-0:19.6.0 core:save (input.hidden-input)
-0:17.7.0 intentions:highlight (input.hidden-input)
-0:17.6.0 core:save (input.hidden-input)
Non-Core Packages
activate-power-mode 2.7.0
atom-cfn-lint 0.7.0
atom-typescript 14.4.0
busy-signal 2.0.1
compare-files 0.8.1
gitlab-integration 0.4.8
gitlab-manager 0.2.2
iam-syntax 0.1.5
intentions 2.1.1
json-converter 0.2.4
language-antlr4 0.1.0
language-yaml-cloudformation 0.3.1
linter 3.4.0
linter-markdown 5.2.11
linter-swagger 0.6.1
linter-ui-default 3.4.1
linter-yaml 1.1.3
markdown-deluxe 1.0.0
markdown-preview-enhanced-with-litvis 0.34.0
neon-cursor 1.6.0
neon-selection 0.3.2
power-effects 0.5.0
prettier-atom 0.60.1
syntax-neonize 3.3.0
toggle-gitignore 1.0.0
Additional Information
I think it would be sufficient to simply use the name status-bar-gitlab-manager, rather than status-bar-gitlab.
Metadata
Metadata
Assignees
Labels
No labels