Fork me on GitHub
#spacemacs
<
2020-03-23
>
OrdoFlammae16:03:36

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?

OrdoFlammae16:03:04

An example is using the namespace advent-of-code-2019.01-fuel.

OrdoFlammae16:03:15

But working in the namespace advent-of-code-2019 works fine.

OrdoFlammae16:03:19

The errors look like this: Namespace '-fuel' not found.

practicalli-johnny18:03:34

@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.

OrdoFlammae18:03:16

Yeah, the filenames are all good.

OrdoFlammae18:03:28

The filename is 01_fuel.clj.

OrdoFlammae18:03:49

In the directory advent_of_code_2019.

OrdoFlammae18:03:08

Like I said, it works fine if I have only one distinct number in the namespace.

OrdoFlammae18:03:36

Also, as an aside, I didn't actually move the file to a different namespace, I just renamed the namespace in the file.

practicalli-johnny18:03:45

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

OrdoFlammae18:03:30

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.

OrdoFlammae18:03:35

The REPL works fine.

practicalli-johnny18:03:54

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?

OrdoFlammae18:03:28

I've restarted Spacemacs a lot.

OrdoFlammae18:03:41

But your namespaces don't fit the criteria for failing.

OrdoFlammae18:03:01

It only happens for me when I have two distinct numbers in the namespace.

OrdoFlammae18:03:25

So advent-of-code-2019 works find, but advent-of-code-2019.02-fuel doesn't.

OrdoFlammae18:03:46

I'm going to look around on the CIDER github issues page.

OrdoFlammae19:03:03

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.

practicalli-johnny19:03:18

Okay, so you just need to update packages, no need to update Spacemacs itself.

OrdoFlammae19:03:53

XD, I meant update packages. Thanks for the help.