Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameError: undefined local variable or method `note_store' for #<Evernote::EDAM::NoteStore::NoteList:0x007fb000e60f48> #11

Closed
dragonfax opened this issue Mar 31, 2013 · 13 comments

Comments

@dragonfax
Copy link

NameError: undefined local variable or method note_store' for #Evernote::EDAM::NoteStore::NoteList:0x007fb000e60f48`

This is in gem 0.2.0. I had to revert to 0.1.8 which works fine.

I get this error when I call notes or notes? on a NoteList. something like this.

1  note_list = client.note_store.findNotes(filter,0,99)
2  notes = note_list.notes

line 2 raises the exception, but with no stack trace of its own. This isn't happening in my code. line 1 works fine. Threw me for a loop.

@rekotan
Copy link
Contributor

rekotan commented Apr 1, 2013

This should be fixed in 0.2.1. Sorry about that.

@rekotan rekotan closed this as completed Apr 4, 2013
@pymander
Copy link

Is this actually fixed? Because I'm using 0.2.1 and still seeing the same issue.

@dragonfax
Copy link
Author

I never updated. my gem is still depending on 0.1.8

https://github.com/dragonfax/rnote/blob/master/rnote.gemspec#L31

@pymander
Copy link

That doesn't help me. Version 0.1.8 doesn't have the reminder stuff in NoteAttributes.

@rekotan
Copy link
Contributor

rekotan commented Oct 15, 2013

I don't see this error using 0.2.1.

@algking
Copy link

algking commented Oct 30, 2013

i still find this errro using 0.2.1
pymander/evernote-mode#3

@ayman
Copy link

ayman commented Dec 28, 2013

I'm seeing it using 0.2.2:

Waiting for the result... [4 times]
notebook xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Waiting for the result...
undefined local variable or method `note_store' for #<Evernote::EDAM::NoteStore::NoteList:0x007fe44409cba0>
Updating buffer list...

Gems:

evernote-thrift (1.25.1)
evernote_oauth (0.2.2)
oauth (0.4.7)

@williamsonday
Copy link

I am seeing it in 2.2 also

Waiting for the result... [3 times]
notebook nil
Waiting for the result...
undefined local variable or method note_store' for #<Evernote::EDAM::NoteStore::NoteList:0x803d6500> notebook nil Waiting for the result... undefined local variable or methodnote_store' for #Evernote::EDAM::NoteStore::NoteList:0x8053c764

Gems
evernote-thrift 1.25.1
evernote_oauth 0.2.2
oauth 0.4.7

@sbhal
Copy link

sbhal commented Jan 3, 2014

With oauth-0.4.7, evernote-thrift-1.25.1, evernote_oauth-0.2.2
I am also getting undefined local variable or method note_store' for Evernote::EDAM::NoteStore::NoteList:0x007fb6500

@jeroentbt
Copy link

Same here (oauth-0.4.7, evernote-thrift-1.25.1, evernote_oauth-0.2.2, used from within pymander/evernote-mode)

undefined local variable or method `note_store' for #Evernote::EDAM::NoteStore::NoteList:0x007fc9f1e3e3e8

@rekotan
Copy link
Contributor

rekotan commented Jan 7, 2014

Could you provide code snippet that reproduces the error?

@rekotan
Copy link
Contributor

rekotan commented Jan 9, 2014

OK, I've tested with evernote-mode. The problem is that it loads evernote_oauth gem but doesn't use EvernoteOAuth::Client class to create UserStore and NoteStore clients. The change below will work with this case but I recommend it to use that client class within the plugin instead of using raw thrift modules.

#17

This will be merged soon. Thanks.

@jeroentbt
Copy link

Thank you @rekotan!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants