Closed ghost closed 8 years ago
I believe these problems with dependencies are only relevant when the package installed in development mode. After it is published on a atom.io and installed from there, dependent packages will be installed automatically. By now, I have a note in Readme.md.:
The package dependency update fails as well, at least for my installation. Beyond the single message Failed to update package dependencies
I cannot find any more details from the editor or developer tools to explain why it fails. Perhaps I have too many plugins installed.
The first few error messages in the attached console traces are the messages you previously identified regarding atom.io
. The ⌘+SHIFT+P
does not generate error messages in the console.
Afterward, the Settings pane shows the plugin is installed, but it does not activate. Opening a C project does not trigger the ch_analysis
scan and the JSON artifact is not created.
could you please run in terminal apm install --verbose
command, to see what console output is?
That's interesting. I learned a bit there about Atom internals. Yes, this install
worked and now I see the plugin installed and activated properly. Thanks. Closing the issue.
Neutron:atom-kt-advance mrb$ apm install --verbose
gyp info it worked if it ends with ok
gyp verb cli [ '/Applications/Atom.app/Contents/Resources/app/apm/bin/node',
gyp verb cli '/Applications/Atom.app/Contents/Resources/app/apm/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli 'install',
gyp verb cli '--runtime=electron',
gyp verb cli '--target=0.37.8',
gyp verb cli '--dist-url=https://atom.io/download/atom-shell',
gyp verb cli '--arch=x64',
gyp verb cli '--ensure',
gyp verb cli '--verbose' ]
gyp info using node-gyp@3.4.0
gyp info using node@4.4.5 | darwin | x64
gyp verb command install []
gyp verb install input version string "0.37.8"
gyp verb install installing version: 0.37.8
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
0.37.8
gyp info ok
Installing modules REQUEST { url:
Url {
protocol: 'https:',
slashes: true,
auth: null,
host: 'registry.npmjs.org',
port: null,
hostname: 'registry.npmjs.org',
hash: null,
search: null,
query: null,
pathname: '/atom-package-deps',
path: '/atom-package-deps',
href: 'https://registry.npmjs.org/atom-package-deps' },
method: 'GET',
headers:
{ 'accept-encoding': 'gzip',
version: '3.10.5',
accept: 'application/json',
referer: 'install',
'npm-session': '18fe16e71d5fcccc',
'user-agent': 'npm/3.10.5 node/v4.4.5 darwin x64',
'if-none-match': '"CG423SNYV0OKMUQ8BDI6YBBI9"' },
strictSSL: true,
cert: null,
key: null,
ca: null,
agent:
Agent {
domain: null,
_events: { free: [Function] },
_eventsCount: 1,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options:
{ key: null,
cert: null,
ca: null,
rejectUnauthorized: true,
localAddress: undefined,
maxSockets: 50,
keepAlive: true,
path: null },
requests: {},
sockets: {},
freeSockets: {},
keepAliveMsecs: 1000,
keepAlive: true,
maxSockets: 50,
maxFreeSockets: 256,
maxCachedSessions: 100,
_sessionCache: { map: {}, list: [] } },
followRedirect: true,
encoding: null,
callback: [Function] }
REQUEST make request https://registry.npmjs.org/atom-package-deps
REQUEST { url:
Url {
protocol: 'https:',
slashes: true,
auth: null,
host: 'registry.npmjs.org',
port: null,
hostname: 'registry.npmjs.org',
hash: null,
search: null,
query: null,
pathname: '/moment',
path: '/moment',
href: 'https://registry.npmjs.org/moment' },
method: 'GET',
headers:
{ 'accept-encoding': 'gzip',
version: '3.10.5',
accept: 'application/json',
referer: 'install',
'npm-session': '18fe16e71d5fcccc',
'user-agent': 'npm/3.10.5 node/v4.4.5 darwin x64',
'if-none-match': '"5A8WSA8LZUBLZP7HJQ6XA3DEX"' },
strictSSL: true,
cert: null,
key: null,
ca: null,
agent:
Agent {
domain: null,
_events: { free: [Function] },
_eventsCount: 1,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options:
{ key: null,
cert: null,
ca: null,
rejectUnauthorized: true,
localAddress: undefined,
maxSockets: 50,
keepAlive: true,
path: null },
requests: {},
sockets: { 'registry.npmjs.org:443:::::::true:': [Object] },
freeSockets: {},
keepAliveMsecs: 1000,
keepAlive: true,
maxSockets: 50,
maxFreeSockets: 256,
maxCachedSessions: 100,
_sessionCache: { map: {}, list: [] } },
followRedirect: true,
encoding: null,
callback: [Function] }
REQUEST make request https://registry.npmjs.org/moment
REQUEST onRequestResponse https://registry.npmjs.org/atom-package-deps 304 { date: 'Wed, 09 Nov 2016 17:48:45 GMT',
via: '1.1 varnish',
'cache-control': 'max-age=300',
etag: '"CG423SNYV0OKMUQ8BDI6YBBI9"',
age: '244',
connection: 'keep-alive',
'x-served-by': 'cache-dfw1833-DFW',
'x-cache': 'HIT',
'x-cache-hits': '1',
'x-timer': 'S1478713725.953601,VS0,VE0',
vary: 'Accept-Encoding' }
REQUEST reading response's body
REQUEST finish init function https://registry.npmjs.org/atom-package-deps
REQUEST response end https://registry.npmjs.org/atom-package-deps 304 { date: 'Wed, 09 Nov 2016 17:48:45 GMT',
via: '1.1 varnish',
'cache-control': 'max-age=300',
etag: '"CG423SNYV0OKMUQ8BDI6YBBI9"',
age: '244',
connection: 'keep-alive',
'x-served-by': 'cache-dfw1833-DFW',
'x-cache': 'HIT',
'x-cache-hits': '1',
'x-timer': 'S1478713725.953601,VS0,VE0',
vary: 'Accept-Encoding' }
REQUEST end event https://registry.npmjs.org/atom-package-deps
REQUEST emitting complete https://registry.npmjs.org/atom-package-deps
REQUEST onRequestResponse https://registry.npmjs.org/moment 200 { server: 'CouchDB/1.5.0 (Erlang OTP/R16B03)',
etag: '"AO1N95QBLBZUW1X6V9QQXKGWL"',
'content-type': 'application/json',
'content-encoding': 'gzip',
'cache-control': 'max-age=300',
'content-length': '13605',
'accept-ranges': 'bytes',
date: 'Wed, 09 Nov 2016 17:48:45 GMT',
via: '1.1 varnish',
age: '181',
connection: 'keep-alive',
'x-served-by': 'cache-dfw1841-DFW',
'x-cache': 'HIT',
'x-cache-hits': '1',
'x-timer': 'S1478713725.954951,VS0,VE0',
vary: 'Accept-Encoding' }
REQUEST reading response's body
REQUEST finish init function https://registry.npmjs.org/moment
REQUEST response end https://registry.npmjs.org/moment 200 { server: 'CouchDB/1.5.0 (Erlang OTP/R16B03)',
etag: '"AO1N95QBLBZUW1X6V9QQXKGWL"',
'content-type': 'application/json',
'content-encoding': 'gzip',
'cache-control': 'max-age=300',
'content-length': '13605',
'accept-ranges': 'bytes',
date: 'Wed, 09 Nov 2016 17:48:45 GMT',
via: '1.1 varnish',
age: '181',
connection: 'keep-alive',
'x-served-by': 'cache-dfw1841-DFW',
'x-cache': 'HIT',
'x-cache-hits': '1',
'x-timer': 'S1478713725.954951,VS0,VE0',
vary: 'Accept-Encoding' }
REQUEST end event https://registry.npmjs.org/moment
REQUEST has body https://registry.npmjs.org/moment 13605
REQUEST emitting complete https://registry.npmjs.org/moment
atom-kt-advance@0.0.0 /Users/mrb/git/atom-kt-advance
├── atom-package-deps@2.1.3
└── moment@2.15.2
✓
[Enter steps to reproduce below:]
eaafcb8
(after 8 November pull request 9 merge)Atom Version: 1.11.2 Electron Version: 0.37.8 System: Mac OS X 10.12.1 Thrown From: atom-kt-advance package, v0.0.0
Stack Trace
Failed to activate the atom-kt-advance package
Commands
Config
Installed Packages