compartia / atom-kt-advance

MIT License
0 stars 0 forks source link

Missing module #10

Closed ghost closed 8 years ago

ghost commented 8 years ago

[Enter steps to reproduce below:]

  1. Pull repo from master, commit eaafcb8 (after 8 November pull request 9 merge)
  2. Open Atom

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

At Cannot find module 'moment'

Error: Cannot find module 'moment'
    at Module._resolveFilename (module.js:339:15)
    at Function.Module._resolveFilename (/Applications/Atom.app/Contents/Resources/app.asar/src/module-cache.js:383:52)
    at Function.Module._load (module.js:290:25)
    at Module.require (module.js:367:17)
    at require (/Applications/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:50:27)
    at Object.<anonymous> (/Users/mrb/git/atom-kt-advance/lib/scanner.coffee:5:9)
    at Object.<anonymous> (/Users/mrb/git/atom-kt-advance/lib/scanner.coffee:1:1)
    at Module._compile (/Applications/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:103:30)
    at Object.defineProperty.value [as .coffee] (/Applications/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:208:21)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (/Applications/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:50:27)
    at Object.module.exports.activate (/Users/mrb/git/atom-kt-advance/lib/init.coffee:28:28)
    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/src/package-manager.js:519:29
    at Config.module.exports.Config.transactAsync (/Applications/Atom.app/Contents/Resources/app.asar/src/config.js:337:18)
    at PackageManager.module.exports.PackageManager.activatePackages (/Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:514:19)
    at PackageManager.module.exports.PackageManager.activate (/Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:497:46)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/atom-environment.js:779:28

Commands

Config

{
  "core": {
    "disabledPackages": [
      "linter-raml"
    ],
    "openEmptyEditorOnStart": false,
    "projectHome": "/Users/mrb/git",
    "telemetryConsent": "no",
    "themes": [
      "unity-ui",
      "atom-light-syntax"
    ]
  }
}

Installed Packages

# User
api-workbench, v0.8.40 (inactive)
atom-kt-advance, v0.0.0 (inactive)
diagrams, v0.19.0 (inactive)
git-time-machine, v1.5.3 (inactive)
language-haml, v0.24.0 (inactive)
linter, v1.11.18 (inactive)
linter-haml, v2.0.0 (inactive)
linter-js-yaml, v1.2.5 (inactive)
linter-raml, v1.0.1 (inactive)
raml, v0.2.0 (inactive)
unity-ui, v2.1.6 (inactive)
atom-dark-syntax, v0.27.0 (inactive)
atom-dark-ui, v0.52.0 (inactive)
atom-light-syntax, v0.28.0 (inactive)
atom-light-ui, v0.44.0 (inactive)
base16-tomorrow-dark-theme, v1.2.0 (inactive)
base16-tomorrow-light-theme, v1.2.0 (inactive)
one-dark-ui, v1.6.0 (inactive)
one-light-ui, v1.6.0 (inactive)
one-dark-syntax, v1.3.0 (inactive)
one-light-syntax, v1.3.0 (inactive)
solarized-dark-syntax, v1.0.2 (inactive)
solarized-light-syntax, v1.0.2 (inactive)
about, v1.7.0 (inactive)
archive-view, v0.61.1 (inactive)
autocomplete-atom-api, v0.10.0 (inactive)
autocomplete-css, v0.11.2 (inactive)
autocomplete-html, v0.7.2 (inactive)
autocomplete-plus, v2.31.1 (inactive)
autocomplete-snippets, v1.11.0 (inactive)
autoflow, v0.27.0 (inactive)
autosave, v0.23.1 (inactive)
background-tips, v0.26.1 (inactive)
bookmarks, v0.42.0 (inactive)
bracket-matcher, v0.82.1 (inactive)
command-palette, v0.38.0 (inactive)
deprecation-cop, v0.54.1 (inactive)
dev-live-reload, v0.47.0 (inactive)
encoding-selector, v0.22.0 (inactive)
exception-reporting, v0.40.0 (inactive)
find-and-replace, v0.201.1 (inactive)
fuzzy-finder, v1.4.0 (inactive)
git-diff, v1.1.0 (inactive)
go-to-line, v0.31.0 (inactive)
grammar-selector, v0.48.2 (inactive)
image-view, v0.59.0 (inactive)
incompatible-packages, v0.26.1 (inactive)
keybinding-resolver, v0.35.0 (inactive)
line-ending-selector, v0.5.0 (inactive)
link, v0.31.1 (inactive)
markdown-preview, v0.158.0 (inactive)
metrics, v1.0.0 (inactive)
notifications, v0.65.1 (inactive)
open-on-github, v1.2.0 (inactive)
package-generator, v1.0.0 (inactive)
settings-view, v0.242.2-hotfix1 (inactive)
snippets, v1.0.2 (inactive)
spell-check, v0.68.2 (inactive)
status-bar, v1.4.1 (inactive)
styleguide, v0.47.0 (inactive)
symbols-view, v0.113.1 (inactive)
tabs, v0.101.0 (inactive)
timecop, v0.33.2 (inactive)
tree-view, v0.209.3 (inactive)
update-package-dependencies, v0.10.0 (inactive)
welcome, v0.35.1 (inactive)
whitespace, v0.33.0 (inactive)
wrap-guide, v0.38.2 (inactive)
language-c, v0.52.1 (inactive)
language-clojure, v0.21.0 (inactive)
language-coffee-script, v0.47.2 (inactive)
language-csharp, v0.12.1 (inactive)
language-css, v0.37.1 (inactive)
language-gfm, v0.88.0 (inactive)
language-git, v0.15.0 (inactive)
language-go, v0.42.1 (inactive)
language-html, v0.45.1 (inactive)
language-hyperlink, v0.16.0 (inactive)
language-java, v0.23.0 (inactive)
language-javascript, v0.119.0 (inactive)
language-json, v0.18.2 (inactive)
language-less, v0.29.5 (inactive)
language-make, v0.22.2 (inactive)
language-mustache, v0.13.0 (inactive)
language-objective-c, v0.15.1 (inactive)
language-perl, v0.35.0 (inactive)
language-php, v0.37.2 (inactive)
language-property-list, v0.8.0 (inactive)
language-python, v0.45.0 (inactive)
language-ruby, v0.69.0 (inactive)
language-ruby-on-rails, v0.25.0 (inactive)
language-sass, v0.56.0 (inactive)
language-shellscript, v0.22.4 (inactive)
language-source, v0.9.0 (inactive)
language-sql, v0.23.0 (inactive)
language-text, v0.7.1 (inactive)
language-todo, v0.28.0 (inactive)
language-toml, v0.18.0 (inactive)
language-xml, v0.34.9 (inactive)
language-yaml, v0.26.0 (inactive)

# Dev
No dev packages
compartia commented 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.:

  1. By pressing Cmd+Shift+P, bring up the Command Palette. Run the command "Update Package Dependencies: Update"
ghost commented 8 years ago

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 &#8984;+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.
screen shot 2016-11-09 at 9 23 52 am

compartia commented 8 years ago

could you please run in terminal apm install --verbose command, to see what console output is?

ghost commented 8 years ago

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 
✓

screen shot 2016-11-09 at 11 55 09 am