Move user.clj out of default package?

2 views
Skip to first unread message

Chas Emerick

unread,
Oct 27, 2008, 4:56:58 PM10/27/08
to Clojure
I'd like to suggest that clojure no longer look for a user.clj in the
default package (/user.clj). The user.clj file is a handy hook for
init-time code, but it's position causes the NetBeans application
framework (by default) to not load it at all, and to emit a pretty
ugly stack trace (which I've pasted the head of, if anyone's
interested). An explanation is provided here:

http://bits.netbeans.org/dev/javadoc/org-openide-modules/org/openide/modules/doc-files/classpath.html#default_package

Perhaps user.clj could be looked for in /user/user.clj, or some other
location? That might bump up against the package/namespace changes
that AOT is carrying with it, so that's just an idle suggestion.

- Chas



java.lang.IllegalStateException: You are trying to access file:
user.clj from the default package. Please see
http://www.netbeans.org/download/dev/javadoc/org-openide-modules/org/openide/modules/doc-files/classpath.html#default_package
at
org.netbeans.ProxyClassLoader.printDefaultPackageWarning(ProxyClassLoader.java:
539)
at
org.netbeans.ProxyClassLoader.getResource(ProxyClassLoader.java:312)
at java.lang.ClassLoader.getResource(ClassLoader.java:1027)
at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:
1214)
at clojure.lang.RT.loadResourceScript(RT.java:362)
Reply all
Reply to author
Forward
0 new messages