atom-haskell / ide-haskell

Haskell IDE plugin for Atom editor
https://atom.io/packages/ide-haskell
Other
233 stars 30 forks source link

Plugin immediately crashes #222

Closed ampron closed 6 years ago

ampron commented 6 years ago

[Enter steps to reproduce:]

  1. Open a Haskell project with Atom

Atom: 1.23.1 x64 Electron: 1.6.15 OS: Mac OS X 10.11.6 Thrown From: ide-haskell package 2.2.1

Stack Trace

Failed to activate the ide-haskell package

At Cannot find module 'lodash/isFunction'

Error: Cannot find module 'lodash/isFunction'
    at Module._resolveFilename (module.js:470:15)
    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:58)
    at Module.require (/app.asar/static/index.js:40:43)
    at require (/Applications/Atom.app/Contents/Resources/app/src/native-compile-cache.js:66:33)
    at /packages/ide-haskell/node_modules/lodash-decorators/factory/DecoratorFactory.js:3:18)
    at /packages/ide-haskell/node_modules/lodash-decorators/factory/DecoratorFactory.js:148:3)
    at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/src/native-compile-cache.js:106:36)
    at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/src/compile-cache.js:239:29)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (/app.asar/static/index.js:47:45)
    at require (/Applications/Atom.app/Contents/Resources/app/src/native-compile-cache.js:66:33)
    at /packages/ide-haskell/node_modules/lodash-decorators/factory.js:7:10)
    at /packages/ide-haskell/node_modules/lodash-decorators/factory.js:10:3)
    at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/src/native-compile-cache.js:106:36)
    at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/src/compile-cache.js:239:29)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (/app.asar/static/index.js:47:45)
    at require (/Applications/Atom.app/Contents/Resources/app/src/native-compile-cache.js:66:33)
    at /packages/ide-haskell/node_modules/lodash-decorators/index.js:6:10)
    at /packages/ide-haskell/node_modules/lodash-decorators/index.js:43:3)
    at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/src/native-compile-cache.js:106:36)
    at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/src/compile-cache.js:239:29)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (/app.asar/static/index.js:47:45)
    at require (/Applications/Atom.app/Contents/Resources/app/src/native-compile-cache.js:66:33)
    at /packages/ide-haskell/lib/utils/message-object.js:6:29)
    at /packages/ide-haskell/lib/utils/message-object.js:91:3)
    at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/src/native-compile-cache.js:106:36)
    at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/src/compile-cache.js:239:29)

Commands

Non-Core Packages

advanced-open-file 0.16.7 
atom-beautify 0.30.9 
autocomplete-haskell 1.0.1 
busy-signal 1.4.3 
color-picker 2.2.5 
haskell-ghc-mod 2.2.2 
highlight-selected 0.13.1 
ide-haskell 2.2.1 
ide-haskell-cabal 2.1.0 
intentions 1.1.5 
language-haskell 1.17.2 
language-latex 1.1.1 
language-rust 0.4.12 
latex-completions 0.3.3 
linter 2.2.0 
linter-chktex 1.3.1 
linter-clang 4.1.2 
linter-flake8 2.3.0 
linter-javac 1.9.4 
linter-rust 0.8.4 
linter-ui-default 1.6.10 
open-recent 5.0.0 
racer 0.20.0 
rust-api-docs-helper 0.5.1 
rustfmt 0.1.3 
Sublime-Style-Column-Selection 1.7.4 
vim-mode 0.66.0 
ClayTheBot commented 6 years ago

I can confirm that this occurs for me too. Began right after my update to ide-haskell 2.2.1. Deleting user .atom folder and starting fresh removed crash on startup, but upon installing ide-haskell package again it crashed.

ClayTheBot commented 6 years ago

discovered that apm install allows you to install specific versions easily. Hope this helps any other novices like myself.

[xxx@yyy ~]$ apm install ide-haskell@2.2.0 (node:29118) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead. Installing ide-haskell@2.2.0 to /home/xxx/.atom/packages ���

lierdakil commented 6 years ago

Terribly sorry about that, v2.2.2 should be good. Making automated tests to check for at least the most basic functionality is something that's long overdue.

ampron commented 6 years ago

Thanks for the work developing this, it’s a must have plugin.