joker

Discuss all things joker, the Clojure interpreter/linter on top of Go. https://github.com/candid82/joker
hlship 2019-11-29T19:56:33.123600Z

I'm working on a patch to add a new tools library that depends on joker.os;

11:51:31 ~/workspaces/golang/src/github.com/candid82/joker > ./run.sh 
<joker.tools.multi>:94:5: Exception: namespace 'joker.os' not found
Stacktrace:
  global <joker.tools.multi>:1:1
  core/require <joker.core>:3486:3
  core/apply <joker.core>:527:4
  core/apply__ <joker.core>:3403:9
  core/apply <joker.core>:527:4
  core/apply__ <joker.core>:3356:5
  core/with-bindings* <joker.core>:1408:7
  core/apply <joker.core>:525:4
  core/apply__ <joker.core>:3364:9
  core/throw-if <joker.core>:3260:21
panic: <file>:0:0: Eval error: <joker.tools.multi>:94:5: Exception: namespace 'joker.os' not found
Stacktrace:
  global <joker.tools.multi>:1:1
  core/require <joker.core>:3486:3
  core/apply <joker.core>:527:4
  core/apply__ <joker.core>:3403:9
  core/apply <joker.core>:527:4
  core/apply__ <joker.core>:3356:5
  core/with-bindings* <joker.core>:1408:7
  core/apply <joker.core>:525:4
  core/apply__ <joker.core>:3364:9
  core/throw-if <joker.core>:3260:21

goroutine 1 [running]:
<http://github.com/candid82/joker/core.PanicOnErr(0x1a90f78|github.com/candid82/joker/core.PanicOnErr(0x1a90f78>, 0xc000885280)
        /Users/hlship/workspaces/golang/src/github.com/candid82/joker/core/eval.go:442 +0x6a
main.main()
        /Users/hlship/workspaces/golang/src/github.com/candid82/joker/core/gen_data/gen_data.go:101 +0x61d
exit status 2
core/object.go:3: running "go": exit status 1
I don't see that ./run.sh generates an core/a_os_data.go to import. Seems like the joker.os namespace is the problem, not the joker.tools.cli dependency.

hlship 2019-11-29T19:59:43.124Z

Adding the go import _ "<http://github.com/candid82/joker/std/os|github.com/candid82/joker/std/os>" to gen_data.go seems to have fixed it.