Skip to content
This repository has been archived by the owner on Jun 1, 2018. It is now read-only.

doesn't evaluate expressions after it sees a comment at the start of a line #1

Closed
ed-g opened this issue Feb 15, 2013 · 1 comment
Closed

Comments

@ed-g
Copy link

ed-g commented Feb 15, 2013

If a line starts with a comment, irepl gets stuck on that input line. Probably not an issue for interactive evaluation but a bummer when copy/pasting code.

Transcript below:

$ lein irepl
log4j:WARN No appenders could be found for logger (com.offbytwo.class_finder.ClassFinder).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Clojure 1.4.0

IClojure 1.1.1 -- an enhanced Interactive Clojure
? -> Introduction and overview of IClojure's features
?symbol -> Print documentation for symbol
??symbol -> Show source of function or macro
%d symbol -> Describe Java class (show constructors, methods and fields)
%f class -> find all classes matching this name (supports globs)
%f class package -> like the above, but restrict search to the given package

user[1]: (+ 1 2)
user[1]= 3

user[2]: (+ 1 2) ;end of line comment OK
user[2]= 3

user[3]: ;; start of line comment not OK
...: (+ 1 2)
...:
...:
...:
...:
...:
...: ;;hitting ^C here
...:
Keyboard Interrupt

user[3]:

@cosmin
Copy link
Owner

cosmin commented May 11, 2013

This is actually an issue with IClojure. I'm going to close this one and track the work at cosmin/IClojure#31

@cosmin cosmin closed this as completed May 11, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants