kakkyz81 / evervim Goto Github PK
View Code? Open in Web Editor NEWedit evernote on vim.
edit evernote on vim.
Error detected while processing function evervim#getNote:
line 9:
Traceback (most recent call last):
File "", line 1, in
File ".../evervim/autoload/../plugin/py/evervimmer.py", line 249, in getNote
lines = [self.__changeEncodeToBuffer(line) for line in self.editor.note2buffer(note)]
File ".../evervim/autoload/../plugin/py/evervim_editor.py", line 77, in note2buffer
content = markdownAndENML.parseENML(ennote).encode('utf-8')
File ".../evervim/autoload/../plugin/py/markdownAndENML.py", line 108, in parseENML
result += "".join([parseENML(child, level + 1, result, option) for child in node.childNodes])
File ".../evervim/autoload/../plugin/py/markdownAndENML.py", line 55, in parseENML
result += '{0}'.format(htmltext, htmlhref)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3: ordinal not in range(128)
Steps:
let g:evervim_usemarkdown=1
...
**ACID**
...
:w
. It is saved. ...
ACID
...
When I try to login, I get the following error:
login check...
Error detected while processing function 19_setup..evervim#setup:
line 1:
Traceback (most recent call last):
File "", line 1, in
NameError: name 'Evervimmer' is not defined
line 2:
Traceback (most recent call last):
File "", line 1, in
NameError: name 'Evervimmer' is not defined
name 'Evervimmer' is not defined
This was after converting all of the files from DOS to unix line breaks, since vim doesn't support DOS line breaks in scripts (at least on my machine).
Any suggestions on how to fix this?
I installed Evervim, created a token etc, ran :EvervimSetup and this I what I get:
login check...
Error detected while processing function <SNR>25_setup..evervim#setup:
line 1:
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'Evervimmer' is not defined
line 2:
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'Evervimmer' is not defined
login error! g:evervim_devtoken is correct???
Press ENTER or type command to continue
evervim.vim will have an error
line 8:
E15: Invalid expression: !has('python')^M
line 206:
E171: Missing :endif
Press ENTER or type command to continue
please run dos2unix to fix this issue , thanks.
Hi,
whenever I try to save an already existing note, Vim crashes:
xcb_io.c:221: poll_for_event: Assertion
(((long) (event_sequence)
- (long) (dpy->request)) <= 0)' failed.`
Any idea?
Uniteへの対応はする予定でしょうか?
VimLは書けるのですが、pythonが苦手で僕が書こうにも難しいです。
もし対応されるならば、VimLの部分はお手伝い出来ると思います。如何でしょうか。
It would be fantastic to be able to open multiple evernote notes simultaneously. I'd be willing to help code this, but I haven't done much vim programming before.
Hi, I really want to try this and use on my ubuntu env, but after I install and start up, there have setup problem when I try EvervimSetup:
I already installed python and vim python support, did I miss something?
thanks.
Error detected while processing function 30_setup..evervim#setup: line 1: Traceback (most recent call last): File "", line 1, in File "/home/ferrarilee/.ferrari/.vim/bundle/evervim/autoload/../plugin/py/evervimmer.py", line 29, in getInstance Evervimmer._instance.setAPI() File "/home/ferrarilee/.ferrari/.vim/bundle/evervim/autoload/../plugin/py/evervimmer.py", line 62, in setAPI Evervimmer.editor.setAPI() File "/home/ferrarilee/.ferrari/.vim/bundle/evervim/autoload/../plugin/py/evervim_editor.py", line 61, in setAPI self.api = EvernoteAPI(pref.username, pref.password) File "/home/ferrarilee/.ferrari/.vim/bundle/evervim/autoload/../plugin/py/evernoteapi.py", line 40, in __init__ self.__versioncheck() File "/home/ferrarilee/.ferrari/.vim/bundle/evervim/autoload/../plugin/py/evernoteapi.py", line 198, in __versioncheck UserStoreConstants.EDAM_VERSION_MINOR) File "/home/ferrarilee/.ferrari/.vim/bundle/evervim/autoload/../plugin/py/lib/evernote/edam/userstore/UserStore.py", line 223, in checkVersion self.send_checkVersion(clientName, edamVersionMajor, edamVersionMinor) File "/home/ferrarilee/.ferrari/.vim/bundle/evervim/autoload/../plugin/py/lib/evernote/edam/userstore/UserStore.py", line 234, in send_checkVersion self._oprot.trans.flush() File "/home/ferrarilee/.ferrari/.vim/bundle/evervim/autoload/../plugin/py/lib/thrift/transport/THttpClient.py", line 93, in _f result = f(*args, **kwargs) File "/home/ferrarilee/.ferrari/.vim/bundle/evervim/autoload/../plugin/py/lib/thrift/transport/THttpClient.py", line 114, in flush self.__http.endheaders() File "/usr/lib/python2.7/httplib.py", line 954, in endheaders self._send_output(message_body) File "/usr/lib/python2.7/httplib.py", line 814, in _send_output self.send(msg) File "/usr/lib/python2.7/httplib.py", line 776, in send self.connect() File "/usr/lib/python2.7/httplib.py", line 1161, in connect self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file) File "/usr/lib/python2.7/ssl.py", line 381, in wrap_socket ciphers=ciphers) File "/usr/lib/python2.7/ssl.py", line 143, in __init__ self.do_handshake() File "/usr/lib/python2.7/ssl.py", line 305, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [Errno 8] _ssl.c:504: EOF occurred in violation of protocol 'NoneType' object has no attribute 'auth'
When starting vim with evervim I get the following:
Error detected while processing function pathogen#helptags:
line 4:
E154: Duplicate tag "g:evervim_usemarkdown" in file /home/harleypig/.vim/bundle/evervim/doc/evervim.txt
'g:evervim_usemarkdown' appears on lines 25 and 118 of doc/evervim.txt.
If I remove the help stars from line 25, everything seems to be fine.
If I create a markdown note in evervim and upload to evernote, it displays correctly.
But if E edit the same note in evervim again, the markdown format goes to a mess.
Example:
* list1
* list-list1 *it* **bd**
* list-list2 _it_ __bd__
changes to
* list1
* list-list1
it
bd
* list-list2
it
bd
Fehler beim Ausführen von "function 30_setup..evervim#setup":
Zeile 1:
Traceback (most recent call last):
File "", line 1, in
File "/home/seebi/.vim/bundle/evervim/autoload/../plugin/py/evervimmer.py", line 62, in setAPI
Evervimmer.editor.setAPI()
File "/home/seebi/.vim/bundle/evervim/autoload/../plugin/py/evervim_editor.py", line 61, in setAPI
self.api = EvernoteAPI(pref.username, pref.password)
File "/home/seebi/.vim/bundle/evervim/autoload/../plugin/py/evernoteapi.py", line 40, in init
self.*versioncheck()
File "/home/seebi/.vim/bundle/evervim/autoload/../plugin/py/evernoteapi.py", line 198, in __versioncheck
UserStoreConstants.EDAM_VERSION_MINOR)
File "/home/seebi/.vim/bundle/evervim/autoload/../plugin/py/lib/evernote/edam/userstore/UserStore.py", line 223,
in checkVersion
self.send_checkVersion(clientName, edamVersionMajor, edamVersionMinor)
File "/home/seebi/.vim/bundle/evervim/autoload/../plugin/py/lib/evernote/edam/userstore/UserStore.py", line 234,
in send_checkVersion
self._oprot.trans.flush()
File "/home/seebi/.vim/bundle/evervim/autoload/../plugin/py/lib/thrift/transport/THttpClient.py", line 93, in _f
result = f(_args, _kwargs)
File "/home/seebi/.vim/bundle/evervim/autoload/../plugin/py/lib/thrift/transport/THttpClient.py", line 114, in fl
ush
self.__http.endheaders()
File "/usr/lib/python2.7/httplib.py", line 954, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 814, in _send_output
self.send(msg)
File "/usr/lib/python2.7/httplib.py", line 776, in send
self.connect()
File "/usr/lib/python2.7/httplib.py", line 1161, in connect
self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file)
File "/usr/lib/python2.7/ssl.py", line 381, in wrap_socket
ciphers=ciphers)
File "/usr/lib/python2.7/ssl.py", line 143, in __init
self.do_handshake()
File "/usr/lib/python2.7/ssl.py", line 305, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [Errno 8] _ssl.c:504: EOF occurred in violation of protocol
'NoneType' object has no attribute 'auth'
When I edit a file in vi, it replaces dos line breaks with unix line breaks. Even if I explicitly do "set ff=dos|w", it still does not fix it. This is on a Linux (Ubuntu) machine.
Any ideas?
Hi,
When I try to put literal * or _ characters into my markdown for a note, then save, quit and reopen the note, my "*" and "_" entries (in the source) are converted to "*" and "_".
Thanks,
Andrew
Hey, I have python 2.7 and vim both x86, installed markdown in python and evervim in vim. I set my dev token in a vimrc I've verified gets loaded. Every time I try to enter my credentials I get a "Unknown error". I'm guessing the api's have changed and the plugin is busted, but I'm not sure. If you have any ideas, I'd be much appreciated.
Is there any chance that ever vim is responsible for problems I have posting with back ticks. In the process of posting and retrieving the note back ticks are converted to a space and a line break
TIA
Andrew
This happens on a (rather up-to-date) Arch Linux installation with gvim 7.3.515 when I try to authenticate with Evernote (I only paste the relevant last part of the Python traceback, to give the idea):
File "/usr/lib/python2.7/ssl.py", line 143, in __init__
self.do_handshake()
File "/usr/lib/python2.7/ssl.py", line 305, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [Errno 8] _ssl.c:504: EOF occurred in violation of protocol
Seems to be a SSL error, already reported elsewhere, for example here: http://devcup.evernote.com/forum_topics/1042 and http://askubuntu.com/questions/116020/python-https-requests-urllib2-to-some-sites-fail-on-ubuntu-12-04-without-proxy
there is a python module named eversimple which convert evernote to jason ( essentially markdown) format to import to simplenote. It would be nice for this vim plugin to combine that to make the workflow like this:
Evernote --> Markdown --> Editing in Vim -> Write ( auto convert to evernote format and update to evernote )
It will be great to have the possibility to remove a note.
proxy に対応して頂けないでしょうか。
以下のように proxy を指定して接続することができましたが、知識不足で正しいのか分かりません。
$ git diff plugin/py/lib/thrift/transport/THttpClient.py
diff --git a/plugin/py/lib/thrift/transport/THttpClient.py b/plugin/py/lib/thrift/transport/THttpClient.py
index 5026978..50bbe13 100644
--- a/plugin/py/lib/thrift/transport/THttpClient.py
+++ b/plugin/py/lib/thrift/transport/THttpClient.py
@@ -62,9 +62,9 @@ class THttpClient(TTransportBase):
def open(self):
if self.scheme == 'http':
- self.__http = httplib.HTTP(self.host, self.port)
+ self.__http = httplib.HTTP("proxy.xx.xx", 8080)
else:
- self.__http = httplib.HTTPS(self.host, self.port)
+ self.__http = httplib.HTTP("proxy.xx.xx", 8080)
def close(self):
self.__http.close()
Cant figure out how to move or add a note to a specific notebook. New notes always are saved to the default Notebook.
As tittle, is there anyway to bookmark a note and open it later? Thanks.
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.