cursive

Issues at: https://git.io/cursive-issues
cfleming 2021-04-29T01:25:50.280100Z

@alex-eberts Just to check, are you using http://Deps.co as your repository, or is this just a standard deps.edn project?

2021-04-29T01:29:59.281800Z

I’m not using http://deps.co. It’s a standard deps.edn project.

cfleming 2021-04-29T01:30:44.282Z

Ok, sadly that means I can’t foist this off on @danielcompton 🙂.

cfleming 2021-04-29T01:31:04.282200Z

Which version of Cursive are you using? Do you have custom repos in your deps file?

2021-04-29T04:52:06.282400Z

hi @cfleming I’m running Cursive 1.9.4-2020.3 at the moment but there’s nothing blocking me from upgrading to the newest version of Cursive if necessary.

octahedrion 2021-04-29T12:25:27.283600Z

has anyone got breakpoints working with the latest Cursive ?

2021-04-29T14:51:56.284Z

working for me on IJ Ultimate 2020.3, Cursive 1.10.2-2020.3

octahedrion 2021-04-30T07:55:21.286400Z

I tried that (select-all, send to REPL) many times in different ways and it didn't work for me. Then I tried doing (use :reload this-namespace) in my (comment) block in the same file and it worked!

cfleming 2021-04-30T10:52:55.286600Z

Select all and send is not the same thing, you want to use Tools -> REPL -> Load file in REPL which uses load-file and correctly creates the line numbers in the bytecode. Or require :reload will work too, anything that causes the whole namespace to be loaded using load-file.

octahedrion 2021-04-30T11:00:46.286800Z

got it. It works

octahedrion 2021-04-30T11:08:13.287Z

thanks for your help!

octahedrion 2021-04-29T15:43:18.284700Z

I'm on the same versions except IJ CE

octahedrion 2021-04-29T15:53:47.284900Z

ok I've got it. Breakpoints don't work in a namespace if you eval code in that ns using "send form to REPL"

octahedrion 2021-04-29T15:55:39.285100Z

you have to eval code from another namespace because otherwise it can't find the information needed and the breakpoint turns into a grayed-out icon

octahedrion 2021-04-29T15:57:06.285300Z

so it looks like breakpoints are limited to code outside the namespace from which you're evaluating code

cfleming 2021-04-29T20:28:52.285500Z

No, that’s not right - the main problem is generally line numbers in the generated code, which can change if you’re editing and sending only parts of a namespace (i.e. with send form).

cfleming 2021-04-29T20:29:18.285700Z

If you’re debugging a namespace, I always recommend re-sending the whole file to ensure all the line numbers are correct.