Git Product home page Git Product logo

clinote's People

Contributors

tcm1911 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

clinote's Issues

Go get errors in SDK

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

Show note content Error

➜  ~ 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
➜  ~

go get fails

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

Invalid memory address (clinote user login)

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.