slack-dump
slack-dump copied to clipboard
Unable to run
CLI is spitting out the following error when I go get
your repo or go run
the main file.
It's been awhile since I fiddled with go, so this might be a problem on my end. But! In that case, updating the readme to be a little more user friendly would be nice. I'd be glad to make a PR if you have insight to what I'm doing wrong!
# command-line-arguments
./main.go:99: undefined: slack.Slack
./main.go:109: undefined: slack.Slack
./main.go:119: channel.Id undefined (type slack.Channel has no field or method Id)
./main.go:119: group.Id undefined (type slack.Group has no field or method Id)
./main.go:145: undefined: slack.Slack
./main.go:172: undefined: slack.Slack
./main.go:198: undefined: slack.Slack
./main.go:210: undefined: byTimestamp
./main.go:242: undefined: slack.Slack
./main.go:270: undefined: slack.Slack
./main.go:210: too many errors
Also have this issue.
Acknowledged. Significant changes have been made to nlopes/slack and I have made updates locally that haven't been pushed. I will do so as soon as possible.
No worries. Happy to test your new changes when you're ready.
Thanks @joefitzgerald! You're a gentleman and a scholar
@brettimus @acg You guys can clone the nlopes/slack repo and check out the April version of the code. Ended up working for me.
I ended up just using the node client (my interest was for an ad hoc project. Wanted to export a private channel of notes to myself before leaving my job 😁)
Happy thanksgiving if you all are into that! On Wed, Nov 25, 2015 at 22:13 mbuciuman [email protected] wrote:
@brettimus https://github.com/brettimus @acg https://github.com/acg You guys can clone the nlopes/slack repo and check out the April version of the code. Ended up working for me.
— Reply to this email directly or view it on GitHub https://github.com/joefitzgerald/slack-dump/issues/4#issuecomment-159815787 .
Hah, Happy Thanksgiving to you too man.
Wish there was a new solution or up to date repo, still failing for me
@metaldart, what's your setup and what error's are you hitting?
Using Takayoshi-Aoyagi fork and nlopes certain commit hash according to the open issue/tutorial for getting it to work
/usr/local/opt/go/bin/src/github.com/Takayoshi-Aoyagi/slack-dump: go run main.go
# command-line-arguments
./main.go:211: undefined: byTimestamp
Here is also my go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/usr/local/opt/go/bin"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.6.1/libexec"
GOTOOLDIR="/usr/local/Cellar/go/1.6.1/libexec/pkg/tool/darwin_amd64"
GO15VENDOREXPERIMENT="1"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common"
CXX="clang++"
CGO_ENABLED="1"
@metaldart it sounds like you're missing a library since the code is attempting to call a nonexisting function (byTimestamp), but I don't have much time right now to look more into your issue. Hope that helps and if not or you've figured it out, I'll get back to you either later today or tomorrow.
@mbuciuman Thanks dude. For now Im trying to use some npm module to do the job. But yeah any help is appreciated :+1:
@metaldart, so byTimestamp is actually a type defined in sort.go, which should be in the Takayoshi-Aoyagi/slack-dump repo. Are you building that along with main.go?
How do you build both of them? I get an error with go build ./sort.go