-
Notifications
You must be signed in to change notification settings - Fork 628
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
Vimwiki Error: Unable to resolve link! #440
Comments
Whoops, that's unfortunate. Can you post the output of |
Sure, here you go:
|
I presented the same issue a short while ago. Here's my output of I'm also using the TaskWiki plug-in (although I'm just getting started with the vim, vimwiki and taskwiki echosystem). And I'm using the Ubuntu 16.04 distro on the Linux Subsystem on Windows 10.
|
Weird. I would have expected at least two dictionaries in the list instead of one. Am I right that the error appears since monday? (Because that was when I merged a branch containing huge refactorings). Are you both using Vundle? Are there known issues with Vundle when updating plugins? Can one of you post their .vimrc? (At least all the Vimwiki related settings.) |
I can't tell for sure, I didn't use vimwiki for a week or so (I was on vacation) and recetnly updated it (I'd say a couple of days ago). I know that's probably not helpful, sorry.
I am.
Not that I know of.
There's almost nothing related to vimwiki, here are the relevant parts: call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'myusuf3/numbers.vim'
Plugin 'tpope/vim-surround'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'vimwiki/vimwiki'
Plugin 'xolox/vim-misc'
Plugin 'xolox/vim-session'
call vundle#end() That's the part that takes care of vundle plugins basicaly (I also included other plugins just in case this would be related to an incompatibility with another plugin, but I highly doubt it). |
I'm a relatively new user. I had just started trying the example last week for my = My knowledge base =
* [[Tasks]] -- things to be done _yesterday_!!!
* Project Gutenberg -- good books are power.
* Scratchpad -- various temporary stuff. And for = Tasks =
== Work Tasks | project:Work ==
Which worked fine on Friday (when writing the file, a list of different tasks and their dependent tasks was generated).
For me, I started getting the error on Wednesday. I can't recall correctly if I updated first or after getting the error message (thinking it would resolve the issue).
I'm using vim-plug.
Can't say for sure. There were some vimwiki related -- but closed -- issues a year ago.
" Prerequisites for vimwiki
set nocompatible
filetype plugin on
syntax on
" Specify a directory for plugins
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')
Plug 'powerman/vim-plugin-AnsiEsc'
Plug 'majutsushi/tagbar'
Plug 'Shougo/denite.nvim'
Plug 'vim-airline/vim-airline'
Plug 'blindFS/vim-taskwarrior'
Plug 'vimwiki/vimwiki', { 'branch': 'dev' }
Plug 'tbabej/taskwiki'
call plug#end()
" Fix colors for vim dark background on WSL
set background=dark |
Bah, I'm stupid. The reason for the error message is just that you don't have registered a wiki, because you are new users. Read |
Vimwiki can handle that. Ref #440
Ok, now, it should ask you if you want to create a wiki at a default place (as it used to do). |
Thanks for your support and efforts, @EinfachToll ! After updating, I tried without declaring anything in the .vimrc but found links broken. After declaring two wiki dictionaries with their respective paths (and paths for the html exports) and then declaring the How about you, @guakamole ?
|
After reading this issue then the docs, I set the following in
|
What do you mean by "new users" (as said in my first post, I've been using vimwiki for years and have tens of wiki pages)? :) @rolandog I just fetched 5a00028
Doesn't return an error anymore and properly opens my wiki but the links are still broken. After adding the following line to my let g:vimwiki_list = [{'path': '~/vimwiki/', 'path_html': '~/vimwiki_html/'}] |
What he meant is that you work without a configuration for your wiki. Most people have their wiki (or multiple wikis) configured in their vimrc. If you don't have a configuration vimwiki used a default config in the past (and will do so again) – that is like the line mentioned above, specifying where the wiki and the rendered pages are located at. |
After further inspection, it seems that navigating through pages breaks the links again (in another way). All the internal links are in their raw form:
I have added this line to my `.vimrc' (and changed the extensions accordingly): let g:vimwiki_list = [{'path': '~/vimwiki/', 'path_html': '~/vimwiki_html/', 'auto_export': 1, 'syntax': 'markdown', 'ext': '.md'}] Could this be related to #441 #442 ? Steps to reproducevim
<leader>ww
# navigate to the next internal link, hit enter
# navigate back to the index by pressing backspace PS @Nudin thank you for your explanation :) |
Should be fixed now. |
I fecthed 02e8fb3. The initial problem is fixed but the one in #440 (comment) isn't. Do you want me to open a new issue ? |
No, I can reproduce the issue now and take care of it. |
Else, Vim decides the filetype according to the file extension. Ref #440
Done (I think) |
Hi @EinfachToll I'd like to report an edge-case where this isn't fully fixed. If this should be a different bug, by itself, I'd be happy to open it as such. During the initial fixing of this issue, I separate my work and personal wikis by placing this on my " Personal wiki attributes
let wiki_personal = {}
let wiki_personal.path = '~/vimwiki_pers/'
let wiki_personal.path_html = '~/vimwiki_pers_html/'
" Work wiki attributes
let wiki_work = {}
let wiki_work.path = '~/vimwiki_work/'
let wiki_work.path_html = '~/vimwiki_work_html/'
" Register wikis
let g:vimwiki_list = [wiki_personal, wiki_work] However, I didn't remove the original folder ( Edit (2018-02-28 21:59 UTC): The registered wikis (personal and work) can be accessed through |
I'm also experiencing this same issue. I just setup a new laptop today. I cloned my dotfiles and my existing wiki on the new machine and I only get |
@jychri is your situation the same as the above mentioned edge case? |
I can't reproduce this. If there is still a problem please reopen or create a new issue with more details. |
Hello,
Thank you for vimwiki ! I have installed (and been using for years) it via Vundle.
I just updated it and I can't navigate anymore using internal links (external links do work).
Where are the vimwiki settings located and how do I get the currently installed version number ?
Thank you for your help.
The text was updated successfully, but these errors were encountered: