Closed Julian closed 4 years ago
When trying to open an org file, it looks like there are lots of invalid escape sequences in the org mode source code, leading to:
NORMAL /Users/Julian/Desktop/today.org org [unix] 100% ☰ 0/1 ㏑ : 1 Error detected while processing /Users/Julian/.dotfiles/.vim/bundle/vim-orgmode/ftplugin/org.vim: line 123: /Users/Julian/.vim/bundle/vim-orgmode/ftplugin/orgmode/liborgmode/orgdate.py:46: DeprecationWarning: invalid escape sequence \d "<(\d\d\d\d)-(\d\d)-(\d\d) [A-Z]\w\w>", re.UNICODE) /Users/Julian/.vim/bundle/vim-orgmode/ftplugin/orgmode/liborgmode/orgdate.py:52: DeprecationWarning: invalid escape sequence \d "<(\d\d\d\d)-(\d\d)-(\d\d) [A-Z]\w\w (\d\d):(\d\d)>", re.UNICODE) /Users/Julian/.vim/bundle/vim-orgmode/ftplugin/orgmode/plugins/EditStructure.py:143: DeprecationWarning: invalid escape sequence \< vim.eval(u_encode(u'feedkeys("\<C-t>", "n")')) /Users/Julian/.vim/bundle/vim-orgmode/ftplugin/orgmode/plugins/EditStructure.py:152: DeprecationWarning: invalid escape sequence \< vim.eval(u_encode(u'feedkeys("\<C-d>", "n")')) /Users/Julian/.vim/bundle/vim-orgmode/ftplugin/orgmode/plugins/Hyperlinks.py:133: DeprecationWarning: invalid escape sequence \ uri = uri.replace(u' ', u'\ ') /Users/Julian/.vim/bundle/vim-orgmode/ftplugin/orgmode/plugins/Hyperlinks.py:194: DeprecationWarning: invalid escape sequence \[ u":if search('\[\{2}\zs[^][]*\(\]\[[^][]*\)\?\ze\]\{2}', 's') == 0 | echo 'No further link found.' | endif") /Users/Julian/.vim/bundle/vim-orgmode/ftplugin/orgmode/plugins/Hyperlinks.py:203: DeprecationWarning: invalid escape sequence \[ u":if search('\[\{2}\zs[^][]*\(\]\[[^][]*\)\?\ze\]\{2}', 'bs') == 0 | echo 'No further link found.' | endif") /Users/Julian/.vim/bundle/vim-orgmode/ftplugin/orgmode/plugins/TagsProperties.py:125: DeprecationWarning: invalid escape sequence \? searchstring += u'\\(:[a-zA-Z:]*\\)\?:%s' % t2 /Users/Julian/.vim/bundle/vim-orgmode/ftplugin/orgmode/plugins/Date.py:81: DeprecationWarning: invalid escape sequence \d date_regex = u"(\d{1,2})-(\d+)-(\d+)" /Users/Julian/.vim/bundle/vim-orgmode/ftplugin/orgmode/plugins/Date.py:89: DeprecationWarning: invalid escape sequence \d date_regex = u"(\d{1,2})/(\d{1,2})" /Users/Julian/.vim/bundle/vim-orgmode/ftplugin/orgmode/plugins/Date.py:101: DeprecationWarning: invalid escape sequence \w date_regex = u"(\w\w\w) (\d{1,2}) (\d{1,2})" /Users/Julian/.vim/bundle/vim-orgmode/ftplugin/orgmode/plugins/Date.py:111: DeprecationWarning: invalid escape sequence \d date_regex = u"^(\d{1,2})$" /Users/Julian/.vim/bundle/vim-orgmode/ftplugin/orgmode/plugins/Date.py:138: DeprecationWarning: invalid escape sequence \+ match = re.search(u'^(\+|-)(\d*)d', modifier) /Users/Julian/.vim/bundle/vim-orgmode/ftplugin/orgmode/plugins/Date.py:144: DeprecationWarning: invalid escape sequence \+ match = re.search(u'^(\+|-)(\d*) |^(\+|-)(\d*)$', modifier) /Users/Julian/.vim/bundle/vim-orgmode/ftplugin/orgmode/plugins/Date.py:156: DeprecationWarning: invalid escape sequence \+ match = re.search(u'^(\+|-)(\d+)w', modifier) /Users/Julian/.vim/bundle/vim-orgmode/ftplugin/orgmode/plugins/Date.py:162: DeprecationWarning: invalid escape sequence \+ match = re.search(u'^(\+|-)(\d+)m', modifier) /Users/Julian/.vim/bundle/vim-orgmode/ftplugin/orgmode/plugins/Date.py:169: DeprecationWarning: invalid escape sequence \+ match = re.search(u'^(\+|-)(\d*)y', modifier) /Users/Julian/.vim/bundle/vim-orgmode/ftplugin/orgmode/plugins/Date.py:177: DeprecationWarning: invalid escape sequence \d u'(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec) (\d{1,2})', /Users/Julian/.vim/bundle/vim-orgmode/ftplugin/orgmode/plugins/Date.py:189: DeprecationWarning: invalid escape sequence \d date_regex = u"(\d{1,2})/(\d+)/(\d+)" /Users/Julian/.vim/bundle/vim-orgmode/ftplugin/orgmode/plugins/Date.py:198: DeprecationWarning: invalid escape sequence \d u'(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec) (\d{1,2}) (\d{1,4})', /Users/Julian/.vim/bundle/vim-orgmode/ftplugin/orgmode/plugins/Date.py:211: DeprecationWarning: invalid escape sequence \d match = re.search(u'(\d{1,2}):(\d\d)$', modifier) /Users/Julian/.vim/bundle/vim-orgmode/ftplugin/orgmode/plugins/Agenda.py:99: DeprecationWarning: invalid escape sequence \ vim.command(u_encode(u'badd %s' % agenda_file.replace(" ", "\ ")))
(I happen to have PYTHONWARNINGS set to warn, as I recommend everyone should :), but might explain why no one has filed this before)
All the \s there should be \\
\
\\
When trying to open an org file, it looks like there are lots of invalid escape sequences in the org mode source code, leading to:
(I happen to have PYTHONWARNINGS set to warn, as I recommend everyone should :), but might explain why no one has filed this before)
All the
\
s there should be\\