joker

Discuss all things joker, the Clojure interpreter/linter on top of Go. https://github.com/candid82/joker
Candid 2019-11-08T03:26:19.045100Z

joker v0.13.0: https://github.com/candid82/joker/releases/tag/v0.13.0

Candid 2019-11-08T03:28:09.046500Z

those who use it as a linter might be interested in this new feature: Joker can now lint directories and report globally unused namespaces and public vars: https://github.com/candid82/joker#linting-directories

👍 1
Candid 2019-11-08T16:57:50.046900Z

👍

jcburley 2019-11-08T04:36:41.046700Z

gostd fork updated: https://github.com/jcburley/joker/

hlship 2019-11-08T23:28:45.048200Z

I'm trying to build it locally using Go 1.13.4 on OS X, but:

15:21:26 ~/workspaces/golang/src/github.com/candid82/joker > ./run.sh --version && go install
# <http://github.com/candid82/joker/core|github.com/candid82/joker/core>
./a_cli_data.go:6:2: undefined: cliData
./a_math_data.go:6:2: undefined: mathData
./a_time_data.go:6:2: undefined: timeData
core/object.go:1: running "go": exit status 2
Don't know my way around the go ecosystem. Any pointers?

hlship 2019-11-08T23:48:13.048900Z

name := f.filename[0 : len(f.filename)-5] // assumes .joke extension
in gen_data.go should change "tools_cli.joke" into "tools_cli" but seems to be just setting it to "cli".

jcburley 2019-11-08T23:51:58.049500Z

Which fork/branch of Joker is this?

jcburley 2019-11-08T23:55:56.049700Z

Reason I ask is, when I build from master in the official Joker repo on my Mac OS X laptop, it works fine.

hlship 2019-11-08T23:55:58.049900Z

master.

hlship 2019-11-08T23:57:00.051Z

I deleted core/a_cli_data and friends at it worked. This was a workspace that had been hanging out for a while. Probably would have worked if things had been clean.

jcburley 2019-11-08T23:57:19.051100Z

Further, I don't end up with any a_cli_data.go, a_math_data.go, or a_time_data.go files in core. I think they were renamed (to a_tools_cli_data.go) or moved out of core (to std) awhile back.

jcburley 2019-11-08T23:58:19.051300Z

Ah, yes, I suspected a dirty workspace! In one of my forks/branches, I have rm -fv core/a_*.go before go generate in run.sh. I think I might have submitted a PR adding that awhile back, but maybe not....