-
-
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
Transfer meaningful file and line information on hot code eval #1392
Comments
This was (finally) added in nREPL 0.2.11, so you just have to start using it (together with the latest CIDER snapshot which sends this data to nREPL). |
Details here 2c24aaa |
You might also take a look here #1389 (comment) |
Maybe I misunderstood this, but I think @kotarak was asking for something slightly different.
|
I'm pretty sure if you don't set anything it's just set to |
Aside from other possible improvements, my point was actually switching between repl and file. I attached a picture, which illustrates my problem. Notice how the second call to |
This definitely works differently with the current snapshot and nREPL 0.2.11. |
Great! :D |
Ok, then it sounds like Bozhidar had it right. :-)
I'd be cool with this too. And it probably wouldn't involve any changes on the clojure side. |
Yep, I believe this can be implemented entirely in the EL portion of the code. |
I am not certain of what VIM CLOSURE is, thanks. Please explain..a light explanation will do. |
VimClojure is a Clojure plugin for Vim, which I maintained for 5 years. It provided a state-of-the-art Clojure environment since 2008. Even nowadays I would be perfectly happy with it. |
Working on a function in a file, hot evaling it in the repl server and testing it immediately is a very fast way of working. Unfortunately the file and line information is not kept during hot eval. In case of an exception you get rather useless location information.
In VimClojure I implemented said information transfer to the backend and it worked rather well for debugging. I simply proxied the reader during eval and also set the compiler location specific Vars.
cf.
make-reader
andwith-repl*
Is there a chance to have this implemented in cider also? And if yes, where should I start?
PS: I know that the location info of code below said function might get of out sync. I consider this less annoying than having no info at all during debug. And it can be easily fixed by hot eval if necessary.
The text was updated successfully, but these errors were encountered: