-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Labels
Description
How to reproduce:
- Open a
.idrfile in Atom, it should contain an executable function, e.g. (from the book):module Main import System countdown : (secs : Nat) -> IO () countdown Z = putStrLn "Lift off!" countdown (S secs) = do putStrLn (show (S secs)) usleep 1000000 countdown secs - Open the REPL (through
Ctrl+Alt+Enter). - Erroneously attempt to run the function (due to misremembering
:execas having a single-letter
command:x)::x countdown 10. The Idris plugin crashes and Atom has to be restarted for it to
work again.
Atom: 1.33.1 x64
Electron: 3.0.13
OS: linux 4.19.12-arch1-1-ARCH
Thrown From: language-idris package 0.5.0
Stack Trace
Uncaught At 0 expected: ( found: b
At ~/.atom/packages/language-idris/node_modules/bennu/dist_node/parse.js:756
At undefined undefined
at /packages/language-idris/node_modules/bennu/dist_node/parse.js:141:25)
at /packages/language-idris/node_modules/bennu/dist_node/parse.js:858:3)
at Module._compile (/usr/lib/atom/src/native-compile-cache.js:87:30)
at Object.value [as .js] (/usr/lib/atom/src/compile-cache.js:235:23)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
at Function.Module._load (internal/modules/cjs/loader.js:551:3)
at Module.require (internal/modules/cjs/loader.js:658:17)
at require (/usr/lib/atom/src/native-compile-cache.js:47:27)
at /packages/language-idris/node_modules/bennu/index.js:2:14)
at /packages/language-idris/node_modules/bennu/index.js:7:3)
at Module._compile (/usr/lib/atom/src/native-compile-cache.js:87:30)
at Object.value [as .js] (/usr/lib/atom/src/compile-cache.js:235:23)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
at Function.Module._load (internal/modules/cjs/loader.js:551:3)
at Module.require (internal/modules/cjs/loader.js:658:17)
at require (/usr/lib/atom/src/native-compile-cache.js:47:27)
at /packages/language-idris/lib/utils/parse.coffee:1:25)
at /packages/language-idris/lib/utils/parse.coffee:1:1)
at /packages/language-idris/lib/utils/parse.coffee:1:1)
at Module._compile (/usr/lib/atom/src/native-compile-cache.js:87:30)
at Object.value [as .coffee] (/usr/lib/atom/src/compile-cache.js:235:23)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
at Function.Module._load (internal/modules/cjs/loader.js:551:3)
at Module.require (internal/modules/cjs/loader.js:658:17)
at require (/usr/lib/atom/src/native-compile-cache.js:47:27)
at /packages/language-idris/lib/idris-ide-mode.coffee:3:9)
at /packages/language-idris/lib/idris-ide-mode.coffee:1:1)
Commands
-0:24.2.0 language-idris:open-repl (input.hidden-input)
Non-Core Packages
language-idris 0.5.0