Comments (16)
It seems the pandoc executable couldn't run, or the output wasn't received. Maybe pandoc is not in the executables PATH variable available to Gvim? You can test for it issuing (within Gvim):
:echo executabe("pandoc")
If the output is 0, you probably need to add the place the pandoc executable is to $PATH, like this (assuming pandoc is in "$HOME/pandoc", but I'm not sure where it resides in Windows):
let $PATH = "$HOME/pandoc:".$PATH
I don't have a Windows machine available to test, sadly.
from vim-pandoc.
Thanks for the response. This may very well be the cause of what I'm
seeing. I hope to have some time to test this tomorrow. I plan to post what
I learn after testing. Thanks again.
On Apr 29, 2014, at 6:44 PM, Felipe Morales [email protected]
wrote:
It seems the pandoc executable couldn't run, or the output wasn't received.
Maybe pandoc is not in the executables PATH variable available to Gvim? You
can test for it issuing (within Gvim):
:echo executabe("pandoc")
If the output is 0, you probably need to add the place the pandoc
executable is to $PATH, like this (assuming pandoc is in "$HOME/pandoc",
but I'm not sure where it resides in Windows):
let $PATH = "$HOME/pandoc:".$PATH
I don't have a Windows machine available to test, sadly.
—
Reply to this email directly or view it on
GitHubhttps://github.com//issues/29#issuecomment-41741587
.
from vim-pandoc.
Well, I just tested it and :echo executabe("pandoc")
returned 1
even though it was not set in my _gvimrc
file. I assume a 1
was still returned because Pandoc was already set in my Window's $PATH variable. Just in case it was also needed in my _gvimrc
file, I added let $PATH = "%LOCALAPPDATA%\Pandoc\:".$PATH:
and re-tested after restarting gVim. Unfortunately, I received the same error as before.
from vim-pandoc.
What is the output of
Pandoc! pdf
if you add this line after line 51 in pythonx/pantondoc/command.py
print list(PandocHelpParser._get_formats())
?
from vim-pandoc.
Thanks for your continued help. The output of the error is shown below:
from vim-pandoc.
I see what the problem is now. The _get_formats()
method doesn't split pandoc's output correctly and as a consequence gathers wrong info. I'm trying to fix it now, it shouldn't be too hard.
from vim-pandoc.
I just pushed a change that should fix this issue. Please confirm ;)
from vim-pandoc.
I pulled down the update and retested it. I'm seeing a new errors now.
from vim-pandoc.
Do you have python installed and available in $PATH? If not, that is the issue now.
from vim-pandoc.
Ah! Even if you had python in PATH, it probably wouldn't work, because we are assuming the *nix convention of using
#!/usr/bin/env python
to specify the interpreter to run the async.py script with. Working on this.
from vim-pandoc.
Python is installed and was available in my Windows $PATH. Waiting till I hear back from you. Please let me know if I need to explicitly set Python's path in my .vimrc file. Thanks again.
from vim-pandoc.
In that case, it could be as simple as changing line 172 in command.py to
async_command = " ".join(["python", async_runner, servername_arg, open_arg, self._run_command])
Can you confirm?
I'm working on covering the situation where python is not available too, so the fix will appear in master later.
from vim-pandoc.
After making the change, Vim does not show an error when I try to run the plugin. Now a file called pandoc.out
is written to the same directory as my markdown file I'm trying to convert. The contents of that file are:
python: can't open file 'C:Usersusernamevimfilesbundlevim-pantondocpythonxpantondocasync.py': [Errno 2] No such file or directory
It looks like it is not properly adding a "" between folders. I think it should be:
python: can't open file 'C:\Users\username\vimfiles\bundle\vim-pantondoc\pythonx\pantondoc\async.py
from vim-pandoc.
Indeed. This part of the problem is quite odd. It seems to be caused by our call to os.path.join()
in line 169. I'm testing now on a VM.
from vim-pandoc.
I just pushed a partial fix for the pandoc problems. There's a couple of issues yet: the async callback doesn't seem to be run, and the pandoc.out file isn't cleaned up on correct execution. I'm working on that now.
(incidentally, these changes might solve issues #15, #16 and #17.)
from vim-pandoc.
Just pushed a couple of commits that should solve all issues I found when using :Pandoc
and :Pandoc!
under Windows.
from vim-pandoc.
Related Issues (20)
- Hide "[WARNING] Could not deduce format from file extension .pdc, default to markdown"
- Could not fetch resource imgs/image_name.png: replacing image with description HOT 2
- PDF or HTML file location
- Align environment inentation with & characters.
- Image location bug. HOT 2
- How to correctly enable folding? HOT 2
- Loading order in Neowim has changed, breaking vim-pandoc
- Docs: MyPandocOpen custom_open - use existing viewer instance
- Internal links (headers) HOT 2
- Broken code in reference.vim
- Feature Request: go to reference definition in references.vim work with implicit header references
- :Pandoc command does nothing in nvim HOT 5
- `gf` and `gx` not working as expected
- Neovim 0.9.0 bibliography completion only works with yaml source HOT 1
- :Pandoc fails with ValueError (--trace is not in list) HOT 1
- Vim-pandoc not found in the python interpreter ?
- Is it possible to use the pandoc folding module with markdown files ? HOT 2
- Neovim unreliable file type handling HOT 2
- pandoc#biblio#sources and data dir HOT 1
- vim-pandoc-templates parsing fails because pandoc --list-extensions missing leading space per line
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-pandoc.