oakes / Nightcode

An IDE for Clojure

Home Page:https://sekao.net/nightcode/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Instarepl can't find library

achikin opened this issue · comments

InstaREPL shows an error when trying to require library.
core.clj

(require '[lanterna.screen :as s])

project.clj

(defproject untitled "0.1.0-SNAPSHOT"
  :description "FIXME: write description"
  :url "http://example.com/FIXME"
  :license {:name "Eclipse Public License"
            :url "http://www.eclipse.org/legal/epl-v10.html"}
  :dependencies [[org.clojure/clojure "1.8.0"]
                  [clojure-lanterna "0.9.4"]]    
  :main ^:skip-aot untitled.core
  :target-path "target/%s"
  :profiles {:uberjar {:aot :all}})

The following error is shown

java.io.FileNotFoundException: Could not locate 
lanterna/screen__init.class or lanterna/screen.clj on classpath.

The app builds and runs OK with lein repl and lein run

Yes this is a design issue with Nightcode's instaREPL. It doesn't have access to third party libraries. If you'd like this feature, please consider using Nightlight instead:

https://github.com/oakes/Nightlight

Refer to this issue for a previous discussion:

#171