From 5dbf134346424602b0104d1f749c1a9eac6f21af Mon Sep 17 00:00:00 2001
From: Eduardo Julian
Date: Tue, 12 Jan 2021 17:31:48 -0400
Subject: Compiler now shows suggestions when encountering unknown definitions.

---
 lux-lein/src/leiningen/lux/utils.clj | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

(limited to 'lux-lein')

diff --git a/lux-lein/src/leiningen/lux/utils.clj b/lux-lein/src/leiningen/lux/utils.clj
index e2ec2c1ca..8aea46c44 100644
--- a/lux-lein/src/leiningen/lux/utils.clj
+++ b/lux-lein/src/leiningen/lux/utils.clj
@@ -116,16 +116,17 @@
                                    deps
                                    (list* stdlib-path deps)))
           compiler-path (prepare-path (find-compiler-path raw-paths))
-          class-path (->> compiler-dependencies
-                          (list* compiler-path)
-                          (interpose java.io.File/pathSeparator)
-                          (reduce str "")
-                          sanitize-path)
-          module-path (->> program-dependencies
-                          (interpose java.io.File/pathSeparator)
-                          (reduce str "")
-                          sanitize-path)]
-      (str (java-command project) " -cp " class-path " --module-path " module-path
+          compiler-class-path (->> compiler-dependencies
+                                   (list* compiler-path)
+                                   (interpose java.io.File/pathSeparator)
+                                   (reduce str "")
+                                   sanitize-path)
+          program-class-path (->> program-dependencies
+                                  (interpose java.io.File/pathSeparator)
+                                  (reduce str "")
+                                  sanitize-path)]
+      (str (java-command project)
+           " -cp " (str compiler-class-path java.io.File/pathSeparator program-class-path)
            " " (lux-command project <mode> program-dependencies source-paths))))
 
   compile-path (str "release " module)
-- 
cgit v1.2.3