-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught TypeError: Cannot read property 'length' of undefined #192
Comments
Have you set the path to the idris executable in the package settings correclty. E.g. "/usr/local/bin/idris" - that is including the name of the executable? |
We should probably give a proper user-visible error whenever Idris can't be found. |
@justjoheinz the path to the idris executable is correct. I should have mentioned that everything was working until some days ago. The only relevant change I can recall was starting to use the effects pakage |
Can you post your ipgk file please? |
This happens even without an The first time I try to compile I get a message like If I try to recompile I get the error reported above |
this is strange. Can you start idris from the command line? Does the output of |
I have no problem when I start Idris from the command line. I can run,
compile and interact with files correctly.
The idris executable is set correctly in Atom as
`/home/marcosh/.cabal/bin/idris` (I was using just `idris` before, but I
get the same error)
2017-10-16 11:37 GMT+02:00 Markus Klink <[email protected]>:
… this is strange. Can you start idris from the command line? Does the
output of which idris match what you have configured in your atom
settings?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#192 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AChYBH2n9FeQ7IiFuJW8f5ilzBjym7LLks5ssyPYgaJpZM4P5BfY>
.
--
Marco Perone
@marcoshuttle <https://twitter.com/marcoshuttle>
https://github.com/marcosh
http://marcosh.github.io/
|
This morning I tried to investigate this issue a bit. Now I got everything working correctly again. I guess, but I'm not sure, that the problem was generated in the following way:
Moreover, I noticed the same behaviour also on visual studio code, so this is not strictly related to Atom. Thanks a lot for your time and for the help. |
There is also the possibility that you had a file which is called like one of the Prelude files in your directory, e.g. |
As I try to compile my Idris code in Atom I get the following error:
/home/marcosh/.atom/packages/language-idris/node_modules/rx-lite/rx.lite.js:78
The stacktrace of the error is:
The text was updated successfully, but these errors were encountered: