Fork me on GitHub
#cider
<
2017-09-30
>
bbss04:09:04

Not sure if it's ciders fault, but I have a weird issue where I can't cider-load-file on my core.clj file. Because some of the other local namespace dependency can't be found on classpath.

bbss04:09:42

But when I load file in that specific file then it is found.

bbss04:09:09

the directory that holds the file is the same as the core file.

bbss04:09:56

is my directory structure wrong?

dpsutton05:09:48

@bbss

Caused by java.lang.RuntimeException
   Error parsing grammar specification: Parse error at line 1, column
   1: /Users/baruchberger/stah/cljsc2/resources/proto.ebnf ^ Expected
   one of: < ε eps EPSILON epsilon Epsilon (* #"[^,
   \r\t\n<>(){}\[\]+*?:=|'"#&!;./]+(?x) #Non-terminal"

dpsutton05:09:10

your proto.clj file is not able to load, which is why the core namespace is not able to load its dependencies

dpsutton05:09:28

or possibly not, its got a link to a file on your file system. my guess would be that this is your problem though:

(def proto-parser
  (insta/parser "/Users/baruchberger/stah/cljsc2/resources/proto.ebnf" :auto-whitespace :standard))

bbss05:09:46

yeah, I didn't run through it running on other machines, it's a work in progress

bbss05:09:53

but that file is available on my system

dpsutton05:09:02

yeah its in the repo as well

bbss05:09:30

and the proto.clj file loads when I load that one specifically (no errors and up to the last var is available)

bbss05:09:57

just when I first try to eval core.clj (which refers to proto in the require) it only works after I first manually load file on the proto.clj

bbss05:09:04

thank you for having a look by the way 🙂

dpsutton05:09:21

i'm getting the same results ou are . strange

bbss05:09:25

yeah I thought it was pretty strange, I thought maybe it's the source-paths in my lein.

bbss05:09:41

Specifically my :dev profile didn't include the /clj. But that didn't matter either.

dpsutton05:09:42

seems to be working in lein rpel

bbss05:09:02

I just ran lein repl (but what do I run to eval core? in-ns?)

dpsutton05:09:03

ah no, it doesn't seem to work there

dpsutton05:09:38

use=> (clojure.core/load-file "/home/dan/projects/clojure/cljsc2/src/cljsc2/clj/core.clj") 

CompilerException java.io.FileNotFoundException: Could not locate cljsc2/clj/proto__init.class or cljsc2/clj/proto.clj on classpath., compiling:(/home/dan/projects/clojure/cljsc2/src/cljsc2/clj/core.clj:1:1) 
use=> 

dpsutton05:09:12

@bbss it doesn't seem to work under lein so there's no chance of CIDER correcting it. may want to head to #clojure to ask

bbss05:09:13

I think I'm using bad namespace names.

bbss05:09:25

Okay, thanks for having a look 🙂

dpsutton05:09:28

they don't jump out at me as bad but i'm not saying they are correct

dpsutton05:09:33

cheers. hope you get it sorted

bbss05:09:46

Yeah, I'm sure it will get sorted out eventually 😄

bbss05:09:05

and my project runs, so I'm not really blocked on it, not a big issue 🙂

bbss05:09:24

once I get to training AI's with Neural Nets on huge cloud GPU set-ups it will need to get fixed though suspect 😎