jasongilman / proto-repl

A Clojure Development Environment package for the Atom editor
https://atom.io/packages/proto-repl
MIT License
563 stars 50 forks source link

Can't find clojure.java.browse when using proto-repl #213

Closed hswick closed 7 years ago

hswick commented 7 years ago

Get this error when I try to call (clojure.java.browse/browse-url "index.html")

ClassNotFoundException clojure.java.browse java.net.URLClassLoader$1.run (URLClassLoader.java:372)

However, with no changes the function works when running in emacs.

hswick commented 7 years ago

I was able to get around this by using java.awt.Desktop's browse method.

Still curious as to why clojure.java.browse can't be found when using proto-repl, but works when using cider in emacs.

Gonna leave this open, for science...

jasongilman commented 7 years ago

You just need to require that namespace first to make it available like this:

(require 'clojure.java.browse)
(clojure.java.browse/browse-url "index.html")