Closed kaskelotti closed 6 years ago
I'm also getting this error. Just started happening today. I've used elmjutsu in this project for a week and I haven't run into this. Possible related to the recent update to atom-ide-ui? That's the only change in my dev environment I can think of. Tried downgrading to atom-ide-ui 0.9.2 (which is two versions old), still have the same error
Also, making any kind of syntax error on the source file seems to trigger this error.
That seems to be part of the cause. The multiline / single comment at top of the file... that would be a syntax error, right? Because the compiler is looking for a module definition? Maybe this error is not really related to comments, rather just any syntax errors?
EDIT Doesn't seem to happen on just any syntax errors. It seems to be somehow related to some of the union types in one of my Elm modules? I haven't pinned down exactly what causes it though.
EDIT 2 Hopefully, this issue is easy for the developers to solve. For now, since it was really anoying getting this error after every letter, I manually modified the package's file, /packages/elmjutsu/lib/helper.js
, line 249. I simply added a check to that if
statement to make sure match
was truthy before accessing match
like it was an array. This line, for anyone that's keeping track.
@kaskelotti, @SidneyNemzer, I could not replicate it :cry: Can you give me example code? Thanks!
Neither could I. I made a brand new elm file for this, but could not reproduce. My project file had this issue, but I cannot share that openly. After the latest elmjutsu update to version 7.2.6 the issues seems to be fixed.
I'll close this issue.
[Enter steps to reproduce:]
{- -}
Using single line comments
--
works fine. Also, making any kind of syntax error on the source file seems to trigger this error.Atom: 1.25.0 ia32 Electron: 1.7.11 OS: Microsoft Windows 10 Enterprise Thrown From: elmjutsu package 7.2.2
Stack Trace
Uncaught TypeError: Cannot read property '1' of null
Commands
Non-Core Packages