[MacPorts] #28684: Clojure won't compile my programs
#28684: Clojure won't compile my programs -----------------------------------------+---------------------------------- Reporter: andrew.pennebaker@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: clojure -----------------------------------------+---------------------------------- It seems that Clojure doesn't add the current directory to the compile path. Specs: * Clojure 1.2.0 * !MacPorts 1.9.2 * Mac OS X 10.6.6 * !MacBook Pro 5,1 {{{ $ cat hello.clj #!/usr/bin/env clj (println "Hello World!") $ clj hello.clj Hello World! $ clj Clojure 1.2.0 user=> (compile 'hello) Hello World! java.io.IOException: No such file or directory (NO_SOURCE_FILE:0) user=> *compile-path* "classes" }}} -- Ticket URL: <https://trac.macports.org/ticket/28684> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28684: Clojure won't compile my programs -----------------------------------------+---------------------------------- Reporter: andrew.pennebaker@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: clojure -----------------------------------------+---------------------------------- Comment(by andrew.pennebaker@…): The problem disappears when "." is added to the compile path. Maybe this variable can be augmented in future releases. {{{ user=> (set! *compile-path* ".") "." user=> (compile 'hello) Hello World! hello }}} -- Ticket URL: <https://trac.macports.org/ticket/28684#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28684: Clojure won't compile my programs -----------------------------------------+---------------------------------- Reporter: andrew.pennebaker@… | Owner: mdippery@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: clojure -----------------------------------------+---------------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => mdippery@… -- Ticket URL: <https://trac.macports.org/ticket/28684#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28684: Clojure won't compile my programs -----------------------------------------+---------------------------------- Reporter: andrew.pennebaker@… | Owner: mdippery@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: clojure -----------------------------------------+---------------------------------- Comment(by andrew.pennebaker@…): This problem causes the compilation tutorial (http://clojure.org/compilation) to fail: {{{ $ java -cp ./classes:clojure.jar clojure.examples.hello Fred Exception in thread "main" java.lang.NoClassDefFoundError: clojure/examples/hello Caused by: java.lang.ClassNotFoundException: clojure.examples.hello at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) }}} Those examples and the current path "." should belong in *compile-path*. -- Ticket URL: <https://trac.macports.org/ticket/28684#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28684: Clojure won't compile my programs ----------------------------------+-------------------------------- Reporter: andrew.pennebaker@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: | Keywords: Port: clojure | ----------------------------------+-------------------------------- Changes (by raimue@…): * owner: mdippery@… => macports-tickets@… -- Ticket URL: <https://trac.macports.org/ticket/28684#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts