-
Notifications
You must be signed in to change notification settings - Fork 69
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
WikiJournal : could not parse journal url #252
Comments
I think it is, actually. Journal urls are converted to wiki links. You no longer need I'll look into this when I get the time, as soon as possible. I've made major changes to the journal backend, which is why the error occurs in the first place. |
Here's a suggested update to your settings with some comments/questions: " Is there a reason you don't want to put the cache in a central place?
let g:wiki_cache_root = '.cache'
let g:wiki_filetypes = ['adoc', 'asciidoc', 'wiki', 'md', 'markdown']
let g:wiki_write_on_nav = 1
let g:wiki_root = '~\vimfiles\vimwiki'
" You don't need to specify keys unless you change them from default values
let g:wiki_journal = {'name': 'diary'}
let g:wiki_mappings_use_defaults = 'global'
let g:wiki_link_extension = '.adoc'
let g:wiki_resolver = 'WikiResolver' Basically, I removed
I think it may be relevant to see the definition of |
With the following minimal example I have no issue: test.vim set nocompatible
set runtimepath^=~/.local/plugged/wiki.vim
filetype plugin indent on
syntax enable
nnoremap q :qall!<cr>
let g:wiki_cache_root = fnamemodify('cache', ':p')
let g:wiki_filetypes = ['adoc', 'asciidoc', 'wiki', 'md', 'markdown']
let g:wiki_write_on_nav = 1
let g:wiki_root = fnamemodify('wiki', ':p')
let g:wiki_journal = { 'name': 'diary' }
let g:wiki_link_extension = '.adoc' Contents of test directory:
|
Thank you very much for taking time and providing a mnimal example. I can reproduce the issue on my end with it, so it's not related to wiki resolver that i've been using. With Vim it tries to launch something along the lines: cmd /c (rundll32 url.dll, FileProtocolHandler ^"journal:2022-10-27") With nvim it just outputs the same message as before. Could you tell where I can put some test ( Thanks again |
No problem :)
I still believe this is somehow related to your WikiResolver. But perhaps I'm wrong.
Yes. Ok, so:
At least, that's somewhere to start. |
I tested it with your minimal example as soon as I had it, so that we have the common ground - we can rule out my custom resolver at least for now. I followed your instructions and |
Ok, so it seems the problem is in this function: wiki.vim/autoload/wiki/date.vim Lines 136 to 151 in ac9166c
Could you echo the various variables there? I think perhaps it is the last line that is problematic, i.e. |
Changing These two lines
The current code returns The documentation tells that You probably use NOTE: it looks like |
Ah, that's annoying.
I was aware that Can you provide some more details:
|
|
Ok, thanks. So, I'll see if I can find an alternative. In the meantime, you may want to revert to the previous version that worked for you. Sorry about the inconvenience! |
Can we go the other way around? That is, does this work: |
I've implemented a solution that I think may work - under the assumption that |
By the way, I'm quite happy with the implementation: wiki.vim/autoload/wiki/date/strptime.vim Lines 14 to 44 in bddc450
It uses |
It does, thanks a lot! |
Glad to hear it! :) |
I got the same issue with Thanks! Edit by lervag: reference #253. |
Description
NOTE: it was introduced with e7ccd5e and is present in every commit that followed.
This issue started happening after today's update, but I didn't update
wiki.vim
for months.Neovim, Windows
WikiJournal
It's even more interesting in gVim (Windows) where it suggests looking for new app in Application Store after I do
:WikiJournal<CR>
My settings
I use a custom wiki resolver as you may see above, but I don't think it is called in this particular case.
The text was updated successfully, but these errors were encountered: