vim-taskwarrior icon indicating copy to clipboard operation
vim-taskwarrior copied to clipboard

Issue selecting tasks

Open matthiasbeyer opened this issue 11 years ago • 8 comments

Hi, just installed vim-taskwarrior (via bundle) and ran into this issue:

When selecting a project or a task, vim reports an error:

"taskinfo" [New File]
Error detected while processing function taskwarrior#action#show_info..taskinfo#init:
line 15:
E21: Cannot make changes, 'modifiable' is off
line 17:
E21: Cannot make changes, 'modifiable' is off:       2d
Press ENTER or type command to continue

After that, an empty buffer pops up.

Is this my fault or went something wrong?

matthiasbeyer avatar Aug 02 '14 07:08 matthiasbeyer

Would you please first run :set modifiable then retry it?

blindFS avatar Aug 02 '14 08:08 blindFS

Tried with:

:TW -> set modifiable -> Selecting "proj" and :TW -> Selecting "proj" -> set modifiable

doesn't work either, results in the same empty buffer.

matthiasbeyer avatar Aug 02 '14 08:08 matthiasbeyer

It seems strange to me, would you please tell me the output of :edit taskinfo | echo &modifiable without running TW?

blindFS avatar Aug 02 '14 08:08 blindFS

It seems to open an empty buffer. The commandline says 0.

matthiasbeyer avatar Aug 02 '14 08:08 matthiasbeyer

I think it has sth to do with your vimrc. Whatever, please git pull this plugin. I hope the lastest commit will fix your problem.

blindFS avatar Aug 02 '14 08:08 blindFS

It works now but warns because of "Changing readonly file".

matthiasbeyer avatar Aug 02 '14 08:08 matthiasbeyer

Maybe you enable 'readonly' somewhere, or there is already a file named taskinfo without permission to write.

blindFS avatar Aug 02 '14 08:08 blindFS

In my .vimrc, these two lines were the culprit:

au BufWinLeave * silent! mkview         " make vim save view (state) (cursor, etc)
au BufWinEnter * silent! loadview       " make vim load view (state) (cursor, etc)

You can test if you have a similar problem if the error goes away after you deleted all files in your ~/.vim/views directory.

codegourmet avatar Jan 28 '15 16:01 codegourmet