jcollard / elm-mode

Elm mode for emacs
GNU General Public License v3.0
373 stars 67 forks source link

JSON parsing error when elm-oracle is not found #149

Closed lassik closed 5 years ago

lassik commented 5 years ago

Getting this with the latest version:

  signal(json-readtable-error (47))
  json-read()
  json-read-from-string("/bin/bash: elm-oracle: command not found\n")
  elm-oracle--run("" "/path/to/Main.elm")
  elm-oracle--catalogue-with-local-names(...)
  elm-oracle--get-catalogue()
  elm-oracle--item-at-point()
  elm-oracle--type-at-point()
  elm-eldoc()
  apply(elm-eldoc nil)
  #f(advice-wrapper :before-until #f(compiled-function (&rest args) #<bytecode 0x...>) elm-eldoc)()
  eldoc-print-current-symbol-info()
  #f(compiled-function () #<bytecode 0x...>)()
  apply(#f(compiled-function () #<bytecode 0x...>) nil)
  timer-event-handler([t 0 0 500000 nil #f(compiled-function () #<bytecode 0x...>) nil idle 0])

The code doesn't check for the existence of the executable.

PR #130 possibly related.