tybenz/vimdeck

Error while executing gem..

Closed this issue · 10 comments

Vimdeck-0.0.9 installs successfully but then throws up and error shown below:

screenshot from 2013-09-21 21 13 38

However so, trying to open a new file with vimdeck throws up errors too:

screenshot from 2013-09-21 21 14 54

Is there something else that needs to be installed or is it not working? Additional notes: SyntaxRange has been installed!

Hey can you post a gist of everything in you presentation folder?

Incuding script.vim?

Hey, mate! I uninstalled it, re-installed again, created a new markdown file and voila, it worked.

Great! It might be because I just rewrote it last night (to include an actual markdown parser/renderer).

Hi! I'm having this issue too.. experiencing an error on installation:

│ERROR:  While executing gem ... (TypeError)
│    no implicit conversion of Array into String

And then on execution of vimdeck presentation.md:

Can't open file presentation/script.vim

I'm using ruby 2.0.0-p247 and I'm pretty sure I have all the prerequisites (although installation does end with the above error)

My presentation folder is as follows:

https://gist.github.com/artsyca/7328859

Edit: Looks like the latter may be an issue with my config and/or 'spf13': https://github.com/spf13/spf13-vim (removing all .vim files seems to remedy the issue)

After some further research, it has to do with vim auto-setting pwd such that presentations/script.vim can't be found. This can happen for a number of reasons, for example having:

autocmd BufEnter * silent! lcd %:p:h

or having NERDTree control the pwd, etc.

What command were you using when you got the Can't open file message?

Also is the installation issue fixed?

I was running vimdeck file.md . On a base installation of vim, this works fine. The problems arise when autocmd changes the pwd after loading (typically to ./presentation) thereby losing the path to script.vim.

The installation issue persists, but doesn't seem to affect running the slideshow..

@artsyca I have come across the same problem as you, How have you solved it?

@*xautjzd https://github.com/xautjzd *there's not one single solution..
I'd suggest clearing your .vimrc and try again.. Then add items one by one
until you find one that breaks. It has to do with pwd being controlled by
plugins.

On Monday, March 10, 2014, 姜政冬 notifications@github.com wrote:

@artsyca https://github.com/artsyca I have come across the same problem
as you, How have you solved it?


Reply to this email directly or view it on GitHubhttps://github.com//issues/6#issuecomment-37186627
.

@artsyca Thanks.I have seems found the solution: Change the path of source code of vimdeck to the current directory.But I'm incapable to re-compile the vimdeck src to gem package.I think the questions is line 237-239 in the vimdeck/lib/vimdeck.rb:

 def self.open
    exec 'vim presentation/*.md -S presentation/script.vim'
end