Fork me on GitHub
#joker
<
2019-11-08
>
Candid03:11:09

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

👍 4
hlship23:11:45

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
# 
./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?

hlship23:11:13

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".

jcburley23:11:58

Which fork/branch of Joker is this?

jcburley23:11:56

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

jcburley23:11:19

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.

jcburley23:11:19

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....

hlship23:11:00

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.