abe33 / atom-pigments

An Atom package to display colors in project and files.
MIT License
521 stars 68 forks source link

Cannot read property 'length' of undefined #313

Closed Parsoa closed 7 years ago

Parsoa commented 7 years ago

I've been getting this issue constantly the past few weeks. Seems not to be caused by another theme or plugin I have installed as I tried disabling them. Here is the stack trace:

TypeError: Cannot read property 'length' of undefined
    at Function.Module._resolveLookupPaths (module.js:305:23)
    at Module._resolveFilename (module.js:446:31)
    at Module._resolveFilename (/Applications/Atom.app/Contents/Resources/electron.asar/common/reset-search-paths.js:35:12)
    at Function.get_Module._resolveFilename (/Applications/Atom.app/Contents/Resources/app/src/module-cache.js:354:1)
    at Module.require (file:///Applications/Atom.app/Contents/Resources/app/static/index.js:40:43)
    at require (/Applications/Atom.app/Contents/Resources/app/src/native-compile-cache.js:66:1)
    at requireCore (/Users/Parsoa/.atom/packages/pigments/lib/pigments.coffee:295:7)
    at Object.patchAtom (/Users/Parsoa/.atom/packages/pigments/lib/pigments.coffee:297:26)
    at Object.activate (/Users/Parsoa/.atom/packages/pigments/lib/pigments.coffee:16:6)
    at Package.module.exports.Package.activateNow (/Applications/Atom.app/Contents/Resources/app/src/package.js:253:1)
    at /Applications/Atom.app/Contents/Resources/app/src/package.js:225:1
    at Package.module.exports.Package.measure (/Applications/Atom.app/Contents/Resources/app/src/package.js:99:1)
    at /Applications/Atom.app/Contents/Resources/app/src/package.js:218:1
    at Package.module.exports.Package.activate (/Applications/Atom.app/Contents/Resources/app/src/package.js:215:1)
    at PackageManager.module.exports.PackageManager.activatePackage (/Applications/Atom.app/Contents/Resources/app/src/package-manager.js:642:1)
    at /Applications/Atom.app/Contents/Resources/app/src/package-manager.js:374:1
    at /Applications/Atom.app/Contents/Resources/app/src/config.js:644:1
JianmingXia commented 7 years ago

i have same problem

crigger commented 7 years ago

Samesys

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.17.0 x64 Electron: 1.3.15 OS: Mac OS X 10.12.5 Thrown From: pigments package 0.39.0

Stack Trace

Failed to activate the pigments package

At Cannot read property 'length' of undefined

TypeError: Cannot read property 'length' of undefined
    at Function.Module._resolveLookupPaths (module.js:305:23)
    at Module._resolveFilename (module.js:446:31)
    at Module._resolveFilename (/Applications/Atom.app/Contents/Resources/electron.asar/common/reset-search-paths.js:35:12)
    at Function.get_Module._resolveFilename (/Applications/Atom.app/Contents/Resources/app/src/module-cache.js:354:1)
    at Module.require (Applications/Atom.app/Contents/Resources/app/static/index.js:40:43)
    at require (/Applications/Atom.app/Contents/Resources/app/src/native-compile-cache.js:66:1)
    at requireCore (/packages/pigments/lib/pigments.coffee:295:7)
    at Object.patchAtom (/packages/pigments/lib/pigments.coffee:297:26)
    at Object.activate (/packages/pigments/lib/pigments.coffee:16:6)
    at Package.module.exports.Package.activateNow (/Applications/Atom.app/Contents/Resources/app/src/package.js:253:1)
    at /Applications/Atom.app/Contents/Resources/app/src/package.js:225:1
    at Package.module.exports.Package.measure (/Applications/Atom.app/Contents/Resources/app/src/package.js:99:1)
    at /Applications/Atom.app/Contents/Resources/app/src/package.js:218:1
    at Package.module.exports.Package.activate (/Applications/Atom.app/Contents/Resources/app/src/package.js:215:1)
    at PackageManager.module.exports.PackageManager.activatePackage (/Applications/Atom.app/Contents/Resources/app/src/package-manager.js:642:1)
    at /Applications/Atom.app/Contents/Resources/app/node_modules/settings-view/lib/package-manager.js:519:1
    at exit (/Applications/Atom.app/Contents/Resources/app/node_modules/settings-view/lib/package-manager.js:128:1)
    at triggerExitCallback (/Applications/Atom.app/Contents/Resources/app/src/buffered-process.js:338:1)
    at /Applications/Atom.app/Contents/Resources/app/src/buffered-process.js:351:1
    at Socket.<anonymous> (/Applications/Atom.app/Contents/Resources/app/src/buffered-process.js:220:1)
    at emitOne (events.js:101:20)
    at Socket.emit (events.js:188:7)
    at Pipe._handle.close [as _onclose] (net.js:493:12)

Commands

     -4:33.7.0 application:open (input.hidden-input)
  7x -2:38.3.0 core:backspace (input.hidden-input)
     -2:35.7.0 core:confirm (input.hidden-input)

Non-Core Packages

atom-beautify 0.29.17 
autoclose-html 0.23.0 
color-picker 2.2.5 
debug 0.0.1 
emmet 2.4.3 
git-diff-details 1.4.0 
kirby-snippets 1.1.3 
language-postcss 1.3.0 
language-svg 0.9.2 
language-vue 0.21.2 
language-vue-component 0.5.0 
linter 1.11.23 
linter-scss-lint 3.1.0 
markdown-writer 2.6.4 
nuclide 0.230.0 
pigments 0.39.0 
release-notes 0.53.0 
seti-syntax 1.1.2 
seti-ui 1.6.1 
sort-lines 0.14.0 
Sublime-Style-Column-Selection 1.7.4 
sync-settings 0.8.1 
vue-autocomplete 0.1.1 
vue-snippets 0.6.0 
vue2-autocomplete 0.1.0-alpha.4 
clyzhao commented 7 years ago

me too. How can fix this?

disresz commented 7 years ago

Same problem here

abe33 commented 7 years ago

Hi here, are you all running beta? or stable?

Tachibana446 commented 7 years ago

same problem version 1.18.0 ia32 (windows) (automatically update) thank you,