-
-
Notifications
You must be signed in to change notification settings - Fork 645
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
Boot and the data_readers.clj file #1462
Comments
Pinging @micha. |
I've found that |
Maybe cider-nrepl should do it? Though I'm not sure how. |
Although, considering that this is a general Clojure thing, it would be nice if Boot handled it by default. |
Bump. I've found that |
@camelpunch There are some places where a (let [x 1]
(inc #break x)) |
Yes, that works. Thanks! |
If anyone here uses boot, I'd still like to know if there's any way to load forms on startup. Even if there's no way for cider to do it, we should add instructions to the Readme. @alexander-yakushev You've been using boot lately, haven't you? |
I can confirm that doing @Malabarba RE: debugger. Holy maker of pepperoni, I just tried it for the first time and it's frigging amazing! I didn't know that I've been missing so much :). |
@alexander-yakushev Thanks ^^ I guess the best we can do then is load this form as part of cider-nrepl if the symbol |
I think it's a reasonable approach and I've heard no other suggestions, so let's get this done. |
I object, your honor. First, boot.core/load-data-readers does nothing more but reloading readers Second, that fails when evaluated at the same time as middleware init, On Mon, Jan 11, 2016, 19:41 Bozhidar Batsov [email protected]
|
OK, I guess we're back to the drawing board then. :-) |
@Malabarba Maybe we should at least document this problem somewhere? |
If there's anything I can do to help let me know. (I'm mostly a Vim user Micha Niskin On Mon, Jan 11, 2016 at 2:34 PM, Bozhidar Batsov [email protected]
|
@micha How about having a separate |
@micha It would be great if |
Yeah, that'd be a dream solution. :-) |
Sure, I can do that. Would you consider it a bugfix or feature? So I know Micha Niskin On Tue, Jan 12, 2016 at 1:57 AM, Bozhidar Batsov [email protected]
|
I think I'd call it a bugfix, but it could definitely go either way. |
Any progress with this? |
While we wait for an upstream fix, I think I have a workaround. the debug.clj middleware can call (of course, it will check whether that function exists first, so it won't error on non-boot projects) |
There isn't much point in calling exactly Boot's function as it is nothing else but: (#'clojure.core/load-data-readers)
(set! *data-readers* (.getRawRoot #'*data-readers*)) And calling that in Leiningen won't hurt either. |
Even better. |
Pushed Alex's snippet. |
Apparently this causes an exception in boot (precisely the system this fix was for). clojure-emacs/cider#1462 remains open. Exception message: https://clojurians.slack.com/archives/cider/p1455501034000003 ERROR: Unhandled REPL handler exception processing message {:op init-debugger, :print-level 10, :print-length 10, :session f10681b1-e8f4-48c6-bbc9-869f5ec1d54a, :id 7} java.lang.IllegalStateException: Can't set!: *data-readers* from non-binding thread
Clojars is still based on the version clojure-emacs/cider-nrepl@1723057 I just did a local FWIW I don't think the debugger is actually working as I tried |
Sorry, I've redeployed now. If the debugger still doesn't work for you, please file a new issue. |
Ignore the accidental close, the issue itself is very much still open. |
@micha Has this made into a boot stable release? |
@Malabarba It's been milestoned |
@arichiardi Thanks for the notice! |
Attempted a fix with boot-clj/boot#439...does it work? |
Guess someone should try this out. |
@micha OMG that works! @Malabarba is there a current "cheatsheet" for the debugger? I've seen your blog, but I'm wondering if there is a current list keybindings (functions) and overview of what's possible? Sorry if this is obvious and I've missed it (ENOTENOUGHCOFFEE). @bbatsov I just have to say CIDER is amazing! I love the docstring on mouseover symbol thing! |
See http://cider.readthedocs.org/en/latest/extended_workflow/#debugging :-) |
@bbatsov Благодаря!!! |
@tmarble indeed. The man page should always contain everything. And we try to keep the debugger features easily discoverable. |
Ok. Since the fixed has been merged into boot master, I'm closing this issue. We should have a definitive fix when 2.6.0 comes out. |
Hi all, is anyone still experiencing this issue? I can load all the cider data readers: boot.user> (load-data-readers!)
{db/id #'datomic.db/id-literal,
db/fn #'datomic.function/construct,
base64 #'datomic.codec/base-64-literal,
ordered/set #'flatland.ordered.set/into-ordered-set,
ordered/map #'flatland.ordered.map/ordered-map,
dbg #'cider.nrepl.middleware.debug/debug-reader, ; <- appears to be there
break #'cider.nrepl.middleware.debug/breakpoint-reader,
light #'cider.nrepl.middleware.enlighten/light-reader} and I still get an error when the file is compiled:
Cider version: 0.18.0 |
@Naomarik reports here that the debugger isn't working in boot. The error indicates that boot doesn't see our
data_readers.clj
file at the root of the class path.According to http://clojure.org/reader:
Does anyone know if this might be a boot bug or if we're doing something wrong?
The text was updated successfully, but these errors were encountered: