inf-clojure

GitHub: https://github.com/clojure-emacs/inf-clojure Discord (official chat): https://discord.gg/nFPpynQPME
seancorfield 2020-08-29T00:23:50.003100Z

@dpsutton I added more notes to the ticket. I'm going to be AFK for a bit while we set up dinner, but can probably try more stuff later if you need me to...

dpsutton 2020-08-29T00:24:16.003500Z

i saw. i'm working through it. i can repro now. its weird and i don't know why Β―\(ツ)/Β―

dpsutton 2020-08-29T00:24:29.004Z

but i'm investigating. disappointed in how brittle it is 😞

seancorfield 2020-08-29T00:24:37.004200Z

Those bugs are almost the most fun πŸ™‚

dpsutton 2020-08-29T00:24:56.004600Z

yeah. its a thin wrapper around comint-mode so i'm hoping i'm not getting in there to figure it out

seancorfield 2020-08-29T00:25:24.005100Z

I confirmed that a docstring of "some \"thing\" like this" doesn't cause it BTW.

seancorfield 2020-08-29T00:25:56.006Z

(so my hypothesis in the issue comment was wrong)

dpsutton 2020-08-29T00:26:02.006100Z

although i just killed the docstring from the ns and it eval'd just fine. i think it may be some escaping in that

dpsutton 2020-08-29T00:26:11.006300Z

get-datasource also blows up

dpsutton 2020-08-29T00:27:09.006700Z

yeah. just evaling the docstring blows up

seancorfield 2020-08-29T00:27:46.007500Z

Yeah, after trying to eval a few forms in next.jdbc, I just assumed there was something widely broken but now I've pushed at it a bit more, def seems to be something in the string πŸ™‚

seancorfield 2020-08-29T00:27:51.007700Z

Back in a bit

dpsutton 2020-08-29T00:28:03.008100Z

cool i'll bisect the string down to what's causing it

dpsutton 2020-08-29T00:30:40.008400Z

i think it might be related to the size of the form actually

dpsutton 2020-08-29T01:09:15.009500Z

so some headway. i tried running a scheme mode based on comint and got the same results. view the bytes and they are just repeating. was wondering if there was an encoding issue. but it seems if the form is too large it gets batched and that totally breaks

seancorfield 2020-08-29T01:29:37.010200Z

Oh, that's interesting... Interesting that it's always 07 (ctl-G)?

dpsutton 2020-08-29T01:45:49.011600Z

Yeah. I’ve opened a bug on the emacs mailing list. Can reproduce in scheme mode. It’s in coming (and send-process-string) at the base

dpsutton 2020-08-29T01:46:38.012500Z

I’ll put a link to the bug after dinner. Sorry this is broken.

dpsutton 2020-08-29T02:17:46.012900Z

an older bug talking about the same issue although missing that its in comint i think

dpsutton 2020-08-29T02:17:46.013100Z

https://debbugs.gnu.org/cgi/bugreport.cgi?bug=32438

1
seancorfield 2020-08-29T02:19:00.013500Z

No worries. I'm not trying to use it in anger -- it is purely curiosity that is leading me to try this.

seancorfield 2020-08-29T02:21:05.013700Z

Unfortunately, this is just another reason for me to continue to avoid Emacs and its ecosystem πŸ™‚ For all the years I used it (from 17.x through 19.x and then 24.x onward, on and off), I've found it to be a frustrating and brittle ecosystem 😞

seancorfield 2020-08-29T02:24:34.013900Z

Part of why I stopped using Emacs was the fragility of CIDER etc which kept breaking stuff on each upgrade early on -- and Bug was very dismissive about it and just told folks to uninstall and reinstall and then deal with the changed 😞

seancorfield 2020-08-29T02:25:23.014100Z

I gather it's all a lot more stable now...

dpsutton 2020-08-29T03:06:03.015300Z

From the bug report I found it might just be a buffer bug on OS X. Do you have a wsl handy? I can check on Linux in a bit

seancorfield 2020-08-29T03:08:15.015500Z

I was unable to update Emacs on WSL beyond 25.2 so I can't install packages (SSL / TLS restrictions).

seancorfield 2020-08-29T03:10:00.015700Z

I haven't bothered installing Emacs on my Windows machine for all the reasons discussed above πŸ™‚

dpsutton 2020-08-29T03:12:02.016300Z

Ha totally fair. I’ll check in about an hour

dpsutton 2020-08-29T03:59:11.017Z

i've confirmed its a bug in emacs on mac. it doesn't seem to use process-send-string correctly

seancorfield 2020-08-29T04:20:12.017600Z

I wonder if it is also present if you run it in -nw mode? (i.e., inside a terminal)

seancorfield 2020-08-29T04:21:59.018400Z

I thought http://emacsforosx.com was supposed to be a fairly bare bones build of core Emacs without much/any Mac-specific stuff?

dpsutton 2020-08-29T04:27:34.019600Z

I build on Linux and it’s fine. On OS X I have a built version and a brew version with patches for OS X. Haven’t tried the built one yet

dpsutton 2020-08-29T04:27:46.020100Z

Gonna have to try my hand at some C soon :)

seancorfield 2020-08-29T04:35:31.020400Z

You're very dedicated πŸ™‚

dpsutton 2020-08-29T04:42:13.020900Z

i feel bad. the hope was for a simple interaction with a repl or a socket repl with essentially no tooling in the way πŸ˜•

dpsutton 2020-08-29T04:49:16.021200Z

wow. this is ... not trivial

dpsutton 2020-08-29T05:36:51.021400Z

our bug: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=43099

2