Fork me on GitHub
#joker
<
2019-11-29
>
hlship19:11:33

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]:
, 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.

hlship19:11:43

Adding the go import _ "" to gen_data.go seems to have fixed it.