dfinke / vscode-pandoc

Visual Studio Code extension lets you render markdown to pdf, word doc or html with pandoc
129 stars 35 forks source link

Cannot run: "No handler found for the command: 'pandoc.render'. An extension might be missing an activation event." #12

Open domhnallw opened 8 years ago

domhnallw commented 8 years ago

After installing pandoc and all of the other recomended packages from the repos (running Ubuntu 14.04 here), when I try to trigger the pandoc extension to render some Markdown I get the following error:

No handler found for the command: 'pandoc.render'. An extension might be missing an activation event.

The version of pandoc I got is a little old, is that the problem or is it a configuration issue?

$ pandoc -v
pandoc 1.12.2.1
Compiled with texmath 0.6.5.2, highlighting-kate 0.5.5.1.
Syntax highlighting is supported for the following languages:
    actionscript, ada, apache, asn1, asp, awk, bash, bibtex, boo, c, changelog,
    clojure, cmake, coffee, coldfusion, commonlisp, cpp, cs, css, curry, d,
    diff, djangotemplate, doxygen, doxygenlua, dtd, eiffel, email, erlang,
    fortran, fsharp, gnuassembler, go, haskell, haxe, html, ini, java, javadoc,
    javascript, json, jsp, julia, latex, lex, literatecurry, literatehaskell,
    lua, makefile, mandoc, markdown, matlab, maxima, metafont, mips, modelines,
    modula2, modula3, monobasic, nasm, noweb, objectivec, objectivecpp, ocaml,
    octave, pascal, perl, php, pike, postscript, prolog, python, r,
    relaxngcompact, rhtml, roff, ruby, rust, scala, scheme, sci, sed, sgml, sql,
    sqlmysql, sqlpostgresql, tcl, texinfo, verilog, vhdl, xml, xorg, xslt, xul,
    yacc, yaml
Default user data directory: /home/walshdo/.pandoc
Copyright (C) 2006-2013 John MacFarlane
Web:  http://johnmacfarlane.net/pandoc
This is free software; see the source for copying conditions.  There is no
warranty, not even for merchantability or fitness for a particular purpose.

Thanks in advance?

domhnallw commented 8 years ago

This is still happening with the very latest versions of everything:

The only difference is that the message is now "(Error) command 'pandoc.render' not found"

I'm using Ubuntu 14.04 64-bit. It looks like maybe the installation fails somehow silently, how do I find that out? Thanks.

dfinke commented 8 years ago

You may see more info, go to the command palette and look for 'Toggle Developer Tools'. Since the last few updates of vs code, I can no longer compile the my extension when I try to publish it. There may have been breaking changes for extensions. Hoping to find more time to track this down.

domhnallw commented 8 years ago

Don't know, resolved some missing nodejs dependencies for a different extension first, and once vs code was loading "cleanly" I removed and reinstalled vscode-pandoc.

All I get now is:

messageService.ts:119 
command 'pandoc.render' not found
e.doShow @ messageService.ts:119
e.show @ messageService.ts:103
e.resume @ messageService.ts:62
(anonymous function) @ workbench.ts:664
e.invoke @ callbackList.ts:63
e.fire @ event.ts:108
(anonymous function) @ quickOpenController.ts:422

Don't know if this helps?

dfinke commented 8 years ago

Thanks, more than I have. I'm running Windows

domhnallw commented 8 years ago

Fair enough. For clarity, the above is what I get in the Developer Tools console when I attempt to run pandoc from the command palette. I don't get any visible errors at startup. The files I've been testing with have been (valid) reStructuredText (.rst) documents.

Thanks for your efforts on this.