tcm1911 / clinote Goto Github PK
View Code? Open in Web Editor NEWCLI client for Evernote written in Go
License: GNU General Public License v3.0
CLI client for Evernote written in Go
License: GNU General Public License v3.0
Some type of header. For example:
title: Note title
notebook: Name of notebook
tag: tag1, tag2, tag3
note content
Result of go get
:
$ go get -v github.com/TcM1911/clinote
github.com/tcm1911/evernote-sdk-golang/userstore
# github.com/tcm1911/evernote-sdk-golang/userstore
src/go/src/github.com/tcm1911/evernote-sdk-golang/userstore/userstore.go:1771: cannot use userStoreProcessorCheckVersion literal (type *userStoreProcessorCheckVersion) as type thrift.TProcessorFunction in assignment:
*userStoreProcessorCheckVersion does not implement thrift.TProcessorFunction (wrong type for Process method)
have Process(int32, thrift.TProtocol, thrift.TProtocol) (bool, thrift.TException)
want Process(context.Context, int32, thrift.TProtocol, thrift.TProtocol) (bool, thrift.TException)
Total of 10 errors like this. Looks like context was added in the SDK, which might not be a problem in clinote.
Environment:
$ go version
go version go1.8.3 linux/amd64
➜ ~ clinote note new --title "note title"
➜ ~ clinote note "note title"
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x11f6f2b]
goroutine 1 [running]:
github.com/TcM1911/clinote.GetNoteWithContent(0x1750820, 0xc00001faa0, 0x17507c0, 0xc0002c80a0, 0x7ffeefbff945, 0xa, 0xc00011fca8, 0xc0001660a0, 0xa)
/Users/travis/gopath/src/github.com/TcM1911/clinote/note.go:173 +0x8b
main.getNote(0x1bf0d80, 0xc000075450, 0x1, 0x1)
/Users/travis/gopath/src/github.com/TcM1911/clinote/cmd/note.go:63 +0x1e1
main.glob..func10(0x1bf0d80, 0xc000075450, 0x1, 0x1)
/Users/travis/gopath/src/github.com/TcM1911/clinote/cmd/note.go:37 +0x67
github.com/TcM1911/clinote/vendor/github.com/spf13/cobra.(*Command).execute(0x1bf0d80, 0xc000075410, 0x1, 0x1, 0x1bf0d80, 0xc000075410)
/Users/travis/gopath/src/github.com/TcM1911/clinote/vendor/github.com/spf13/cobra/command.go:636 +0x241
github.com/TcM1911/clinote/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x1bf11c0, 0xb, 0x16b1b00, 0x16ceebe)
/Users/travis/gopath/src/github.com/TcM1911/clinote/vendor/github.com/spf13/cobra/command.go:722 +0x2cc
github.com/TcM1911/clinote/vendor/github.com/spf13/cobra.(*Command).Execute(0x1bf11c0, 0x1007510, 0xc0000a2058)
/Users/travis/gopath/src/github.com/TcM1911/clinote/vendor/github.com/spf13/cobra/command.go:681 +0x2b
main.Execute()
/Users/travis/gopath/src/github.com/TcM1911/clinote/cmd/root.go:49 +0x2d
main.main()
/Users/travis/gopath/src/github.com/TcM1911/clinote/cmd/main.go:21 +0x20
➜ ~
I have a fresh Go installation on Ubuntu 20.04, and the go get
command to install this does not work.
$ go version
go version go1.14.2 linux/amd64
$ go get -v github.com/TcM1911/clinote/cmd
github.com/TcM1911/clinote (download)
created GOPATH=[redacted]; see 'go help gopath'
github.com/mattn/godown (download)
github.com/mattn/go-runewidth (download)
get "golang.org/x/net/html": found meta tag get.metaImport{Prefix:"golang.org/x/net", VCS:"git", RepoRoot:"https://go.googlesource.com/net"} at //golang.org/x/net/html?go-get=1
get "golang.org/x/net/html": verifying non-authoritative meta tag
golang.org/x/net (download)
github.com/russross/blackfriday (download)
github.com/olekukonko/tablewriter (download)
github.com/satori/go.uuid (download)
github.com/TcM1911/evernote-sdk-golang (download)
github.com/apache/thrift (download)
github.com/mrjones/oauth (download)
github.com/boltdb/bolt (download)
github.com/spf13/cobra (download)
github.com/spf13/pflag (download)
golang.org/x/net/html/atom
github.com/mattn/go-runewidth
github.com/russross/blackfriday
github.com/boltdb/bolt
golang.org/x/net/html
github.com/satori/go.uuid
github.com/spf13/pflag
github.com/apache/thrift/lib/go/thrift
github.com/mrjones/oauth
github.com/olekukonko/tablewriter
github.com/mattn/godown
github.com/spf13/cobra
github.com/TcM1911/clinote/markdown
github.com/TcM1911/clinote
github.com/TcM1911/clinote/storage
github.com/TcM1911/evernote-sdk-golang/errors
github.com/TcM1911/evernote-sdk-golang/limits
github.com/TcM1911/evernote-sdk-golang/types
github.com/TcM1911/evernote-sdk-golang/userstore
# github.com/TcM1911/evernote-sdk-golang/userstore
go/src/github.com/TcM1911/evernote-sdk-golang/userstore/userstore.go:486:20: not enough arguments in call to oprot.Flush
have ()
want (context.Context)
go/src/github.com/TcM1911/evernote-sdk-golang/userstore/userstore.go:510:15: assignment mismatch: 2 variables but error1.Read returns 1 values
go/src/github.com/TcM1911/evernote-sdk-golang/userstore/userstore.go:574:20: not enough arguments in call to oprot.Flush
have ()
want (context.Context)
go/src/github.com/TcM1911/evernote-sdk-golang/userstore/userstore.go:598:15: assignment mismatch: 2 variables but error3.Read returns 1 values
go/src/github.com/TcM1911/evernote-sdk-golang/userstore/userstore.go:714:20: not enough arguments in call to oprot.Flush
have ()
want (context.Context)
go/src/github.com/TcM1911/evernote-sdk-golang/userstore/userstore.go:738:15: assignment mismatch: 2 variables but error5.Read returns 1 values
go/src/github.com/TcM1911/evernote-sdk-golang/userstore/userstore.go:893:20: not enough arguments in call to oprot.Flush
have ()
want (context.Context)
go/src/github.com/TcM1911/evernote-sdk-golang/userstore/userstore.go:917:15: assignment mismatch: 2 variables but error7.Read returns 1 values
go/src/github.com/TcM1911/evernote-sdk-golang/userstore/userstore.go:1019:20: not enough arguments in call to oprot.Flush
have ()
want (context.Context)
go/src/github.com/TcM1911/evernote-sdk-golang/userstore/userstore.go:1043:16: assignment mismatch: 2 variables but error9.Read returns 1 values
go/src/github.com/TcM1911/evernote-sdk-golang/userstore/userstore.go:1043:16: too many errors
ubuntu 0.50 or 0.60 binary
running :
clinote user login
produces :
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x957911]
goroutine 1 [running]:
github.com/TcM1911/clinote/evernote.NewClient(0xb07ac0, 0xc420172760, 0xc420091a40)
/home/travis/gopath/src/github.com/TcM1911/clinote/evernote/client_sdk.go:99 +0x2f1
main.defaultClient(0x5ee326)
/home/travis/gopath/src/github.com/TcM1911/clinote/cmd/helper.go:17 +0xc3
main.glob..func6(0xe515c0, 0xe77500, 0x0, 0x0)
/home/travis/gopath/src/github.com/TcM1911/clinote/cmd/login.go:33 +0x29
github.com/TcM1911/clinote/vendor/github.com/spf13/cobra.(*Command).execute(0xe515c0, 0xe77500, 0x0, 0x0, 0xe515c0, 0xe77500)
/home/travis/gopath/src/github.com/TcM1911/clinote/vendor/github.com/spf13/cobra/command.go:636 +0x234
github.com/TcM1911/clinote/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xe52280, 0xb, 0xa90100, 0xaad4ef)
/home/travis/gopath/src/github.com/TcM1911/clinote/vendor/github.com/spf13/cobra/command.go:722 +0x2d4
github.com/TcM1911/clinote/vendor/github.com/spf13/cobra.(*Command).Execute(0xe52280, 0xc42007c058, 0x0)
/home/travis/gopath/src/github.com/TcM1911/clinote/vendor/github.com/spf13/cobra/command.go:681 +0x2b
main.Execute()
/home/travis/gopath/src/github.com/TcM1911/clinote/cmd/root.go:49 +0x2d
main.main()
/home/travis/gopath/src/github.com/TcM1911/clinote/cmd/main.go:21 +0x20
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.