vim-clojure-highlight icon indicating copy to clipboard operation
vim-clojure-highlight copied to clipboard

Clojurescript/Figwheel

Open spacepluk opened this issue 10 years ago • 4 comments

Has anybody managed to get this working with clojurescript/figwheel? I have fireplace working nicely with figwheel but I don't get the complete highlighting for some reason. Any idea?

spacepluk avatar Sep 07 '15 11:09 spacepluk

I did some more testing, and I noticed that by default there's only an autocmd for *.clj files. But if I enable the plugin manually it works for cljc files but it fails with this error on all the cljs files I've tried:

CompilerException java.lang.RuntimeException: Unable to resolve symbol: symbol in this context, compiling:(/tmp/form-init1591707341409564367.clj:1:1)
;; Content of /tmp/form-init1591707341409564367.clj
(.deleteOnExit (java.io.File. "/tmp/form-init1591707341409564367.clj")) (do (set! *warn-on-reflection* nil) (require (quote cljsbuild.crossover) (quote cljsbuild.util) (quote figwheel-sidecar.repl)) (try (do (clojure.core/letfn [(copy-crossovers__11310__auto__ [] (cljsbuild.crossover/copy-crossovers "/home/spacepluk/workspace/tvmetrix/tvmetrix-sdk/target/cljsbuild-crossover" (quote [])))] (clojure.core/when (clojure.core/not-empty (quote [])) (copy-crossovers__11310__auto__) (cljsbuild.util/once-every-bg 1000 "copying crossovers" copy-crossovers__11310__auto__)) (figwheel-sidecar.repl/run-autobuilder {:figwheel-options {:http-server-root "public", :unique-id "tvmetrix--0.1.0-SNAPSHOT", :nrepl-port 7888, :open-file-command "/home/spacepluk/bin/nvim-open", :resource-paths ["/home/spacepluk/workspace/tvmetrix/tvmetrix-sdk/dev-resources" "/home/spacepluk/workspace/tvmetrix/tvmetrix-sdk/resources"]}, :all-builds [{:id "dev", :source-paths ["src" "support/figwheel"], :parsed-notify-command {:shell []}, :build-options {:output-to "js/tvmetrix.js", :output-dir "js/out/debug", :target :nodejs, :hashbang false, :optimizations :none, :pretty-print true, :source-map "js/tvmetrix.js.map"}} {:id "min", :source-paths ["src"], :parsed-notify-command {:shell []}, :build-options {:output-to "js/tvmetrix.js", :output-dir "js/out/min", :target :nodejs, :hashbang false, :optimizations :advanced, :pretty-print false, :source-map "js/tvmetrix.js.map"}}], :build-ids []})) (java.lang.System/exit 0)) (catch cljsbuild.test.TestsFailedException e__11308__auto__ (java.lang.System/exit 1)) (catch java.lang.Exception e__11308__auto__ (do (.printStackTrace e__11308__auto__) (java.lang.System/exit 1)))))

Any idea?

spacepluk avatar Sep 10 '15 11:09 spacepluk

I'm affected by the same problem, unfortunately.

waterlink avatar Jan 07 '16 15:01 waterlink

Same issue here. Would love to see this work for cljs

KarlHarnois avatar Sep 22 '16 12:09 KarlHarnois

+1 for cljs support

nashio avatar Jan 22 '17 02:01 nashio