
Note that for Browser options, compiled ClojureScript cannot be compiled with :advanced :optimizations mode. Requires more setup than the internal browser but gives you the freedom to use any browser. In addition to navigating the external browser, you must copy the script tag into that web page. You must navigate the internal browser to that web page.īrowser (External) - Connect to a web page that has the compiled ClojureScript sourced e.g. Recommended for ease of use.īrowser - Connect to a web page that has the compiled ClojureScript sourced e.g. The internal browser is automatically opened to a web page based on configurable paths from behavior :lt.plugins.clojure/set-cljs-browser-paths. Note, you use the ClojureScript version that comes with LightTable.ĬlojureScript Browser - Connect to a web page that has the compiled ClojureScript sourced e.g. Great for a headless mode, writing plugins and to try out ClojureScript features.

Light Table UI - Connect to the LightTable js process.

To add one of these connections, run the command Connect: Add Connection. There are 4 options to eval ClojureScript, 3 of which use your ClojureScript javascript. If you want to add dependencies to your project, read the below section as that requires a different type of LightTable connection. Once you have finished the tutorial, create your own ClojureScript project with lein new mies my-project and eval there. A namespace is necessary for a LightTable repl. Note while doing that tutorial you were in a namespace. Welcome first time ClojureScript users! Please see David Nolen's tutorial to get familiar with ClojureScript and comfortable with LightTable's repl. To use the new behavior go to User behaviors and add the following lines : Some screenshots of the new behavior can be found here. Clojure(script) error messagesĬurrently this plugin supports an experimental feature that allows to change the default exception behavior (showing the complete stacktrace) to an expandable version of the same. If you'd like to eval as a ClojureScript file, run the command Editor: Set current editor syntax, select ClojureScript and then eval. Thus when you eval, it will eval as aĬlojure file. Cljc evalīy default, *.cljc files are identified as Clojure files. While most plugin functionality works with Java 7, this may change as the plugin will target supported versions.

Java 7 has not been officially supported since April 2015. For projects with ClojureScript versions 0.0-2341 and higher, Clojure 1.7.0 is required. This plugin works for projects on recent versions of ClojureScript e.g. Starting with 0.2.0 this plugin will only be maintained for projects with Clojure 1.7.0 and higher. This plugin requires projects Clojure 1.5.1 and higher. The official Clojure(Script) language plugin for Light Table.
