I'm getting odd errors when I use namespaces with numbers in them, and try to evaluate stuff with spacemacs cider-eval-last-sexp
. Does anyone know how to fix this?
An example is using the namespace advent-of-code-2019.01-fuel
.
But working in the namespace advent-of-code-2019
works fine.
The errors look like this: Namespace '-fuel' not found.
@olieidel_old Does the source code file containing the 01-fuel
namespace use the underscore? i.e. 01_fuel
?
Java Classpath does not like dashes in filenames.
Yeah, the filenames are all good.
The filename is 01_fuel.clj
.
In the directory advent_of_code_2019
.
Like I said, it works fine if I have only one distinct number in the namespace.
Also, as an aside, I didn't actually move the file to a different namespace, I just renamed the namespace in the file.
Strange, I have lots of files with a similar format and havent noticed a problem https://github.com/practicalli/four-clojure/tree/master/src/four_clojure
It's only an issue when I try to read it with CIDER, which makes me think that it's a CIDER bug, and I was wondering if there's a workaround or something.
The REPL works fine.
I am using CIDER with no problems. Maybe the old name is still in the CIDER repl. Did you unevaluate the namespace or restart the CIDER repl after changing the namespace name?
I've restarted Spacemacs a lot.
But your namespaces don't fit the criteria for failing.
It only happens for me when I have two distinct numbers in the namespace.
So advent-of-code-2019
works find, but advent-of-code-2019.02-fuel
doesn't.
I'm going to look around on the CIDER github issues page.
XD, I just found the bug report. It's slightly different than the trouble I was experiencing, but it's the same thing. It got fixed 2 days ago, but I guess I haven't updated Spacemacs since then.
Okay, so you just need to update packages, no need to update Spacemacs itself.
XD, I meant update packages. Thanks for the help.