Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anything special needed for .cljc eval? #24

Closed
martinklepsch opened this issue Nov 10, 2015 · 3 comments
Closed

Anything special needed for .cljc eval? #24

martinklepsch opened this issue Nov 10, 2015 · 3 comments

Comments

@martinklepsch
Copy link

I'm trying to eval stuff from this ns which contains some basic cljc stuff.

Now whenever I do that I get the following exception:

clojure.lang.LispReader$ReaderException: java.lang.RuntimeException: Conditional read not allowed
             java.lang.RuntimeException: Conditional read not allowed
clojure.lang.Compiler$CompilerException: java.lang.IllegalArgumentException: No matching ctor found for class org.martinklepsch.cc_set.impl.CustomComparatorSet, compiling:(/var/folders/ss/4qg3hk1d4nv40phg1360ng5w0000gn/T/boot.user1393283433339272685.clj:6:25)
     java.lang.IllegalArgumentException: No matching ctor found for class org.martinklepsch.cc_set.impl.CustomComparatorSet
clojure.lang.LispReader$ReaderException: java.lang.RuntimeException: Unmatched delimiter: )
             java.lang.RuntimeException: Unmatched delimiter: )
clojure.lang.LispReader$ReaderException: java.lang.RuntimeException: Unmatched delimiter: )
             java.lang.RuntimeException: Unmatched delimiter: )

I guess this is the critical bit:

[...] compiling:(/var/folders/ss/4qg3hk1d4nv40phg1360ng5w0000gn/T/boot.user1393283433339272685.clj:6:25)

It seems that the evaluation saves the relevant form to a file and evaluates this file(?) while assuming .clj file extension. At least that's how it looks to me :o)

I'm using Boot which might also be the culprit here although I couldn't discover any obvious places in the code that writes to-be-evaluated expressions to a file.

If you think it's unlikely this is related to inf-clojure feel free to close this :)

@bbatsov
Copy link
Member

bbatsov commented Nov 10, 2015

inf-clojure is just sending the code to the REPL process, so I'm pretty puzzled by this. I'm guessing reader conditions should work just fine in the REPL.

Unfortunately I have no knowledge of boot. @alandipert @micha any pointers would be welcome.

@martinklepsch
Copy link
Author

Hey Bozhidar, I think you're right. I should have tested just copy and pasting a cljc form into the Boot repl earlier. I'll close this and follow up with Boot maintainers. Cheers, thanks for the quick reply and sorry for the confusion! :)

@martinklepsch
Copy link
Author

Turns out it was just an old version of nREPL that was being loaded: boot-clj/boot#343

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants