spacemacs

Spacemacs docs: http://develop.spacemacs.org/doc/DOCUMENTATION.html http://develop.spacemacs.org/layers/+lang/clojure/README.html https://practicalli.github.io/spacemacs/
OrdoFlammae 2020-03-23T16:29:36.225Z

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?

OrdoFlammae 2020-03-23T16:30:04.225600Z

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

OrdoFlammae 2020-03-23T16:30:15.225900Z

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

OrdoFlammae 2020-03-23T16:31:19.226400Z

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

practicalli-john 2020-03-23T18:46:34.228300Z

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

OrdoFlammae 2020-03-23T18:47:16.228600Z

Yeah, the filenames are all good.

OrdoFlammae 2020-03-23T18:47:28.229Z

The filename is 01_fuel.clj.

OrdoFlammae 2020-03-23T18:47:49.229300Z

In the directory advent_of_code_2019.

OrdoFlammae 2020-03-23T18:48:08.229800Z

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

OrdoFlammae 2020-03-23T18:48:36.230600Z

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

practicalli-john 2020-03-23T18:48:45.230800Z

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

OrdoFlammae 2020-03-23T18:49:30.231600Z

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.

OrdoFlammae 2020-03-23T18:49:35.231800Z

The REPL works fine.

practicalli-john 2020-03-23T18:50:54.233100Z

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?

OrdoFlammae 2020-03-23T18:51:28.233700Z

I've restarted Spacemacs a lot.

OrdoFlammae 2020-03-23T18:51:41.234Z

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

OrdoFlammae 2020-03-23T18:52:01.234500Z

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

OrdoFlammae 2020-03-23T18:52:25.235100Z

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

OrdoFlammae 2020-03-23T18:52:46.235400Z

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

OrdoFlammae 2020-03-23T19:06:03.236200Z

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.

OrdoFlammae 2020-03-23T19:06:09.236400Z

https://github.com/clojure-emacs/cider/issues/2821

practicalli-john 2020-03-23T19:13:18.237200Z

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

OrdoFlammae 2020-03-23T19:29:53.238Z

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