cursive

Issues at: https://git.io/cursive-issues
cfleming 2021-05-11T03:39:51.324500Z

When are you finding this? In the diff view?

jffry 2021-05-11T14:18:32.328900Z

Is there some way to limit the width of the dialog that shows up for Tools > REPL > Search REPL History? Sometimes if I have a blob of data copied from somewhere, I'll (def input "string-that-is-hundreds-or-thousands-of-chars-long") for convenience. And now the Search REPL History dialog expands to fill all available space. The dialog is resizable but does not remember its size / position between invocations. I searched preferences and found nothing. This has been a low-key annoyance for a while across multiple IDEA/Cursive versions, but I'm currently on the latest (1.10.2-2021.1)

cfleming 2021-05-14T08:03:12.346500Z

Yeah, this is annoying. I can think of two options, of which I might end up doing both. The obvious one would be to limit the size of the dialog to something sensible, and the other would be to allow entries to be deleted from the history by pressing backspace in the history editor. That would be useful for other things as well, there’s been a case where someone got xml-incompatible unicode in a history item and then lost all their history when IntelliJ tried to save it.

jffry 2021-05-14T12:36:24.360500Z

Thanks! I think limiting width will always be needed because people may have long history entries they don't want to delete. Maybe it's as simple as remembering how wide it is when user resizes it and using that width the next time it comes up, but I have no idea what level of control IntelliJ gives you.

cfleming 2021-05-14T21:25:35.382100Z

I’ll look into that, there must be a way to control that. I developed that thing ages ago, it’s entirely possible I didn’t really know what I was doing when I made it.

❤️ 1
2021-05-11T18:26:18.330400Z

Is there a way to tell cursive that a alias should be associated with a specific namespace?

imre 2021-05-12T11:09:35.337600Z

I suppose then it's along the lines of typing (s/def then auto-requiring, and depending on the position of the stars in the night sky it will either require spec or schema.

2021-05-12T15:12:10.341500Z

Similar yeah, it’s a namespace that we have internally that wraps Pathom

imre 2021-05-12T15:35:37.341800Z

I usually get a popup on auto-require when there are multiple namespaces in my project offering the same name

imre 2021-05-12T15:35:54.342Z

It doesn't seem to work 100% but it does most of the time for me

2021-05-12T17:12:38.342300Z

Yeah I just want to tell cursive what it should do instead of it having to divine my intentions

2021-05-12T17:12:56.342500Z

Similar to indentation config

2021-05-12T17:13:16.342700Z

I think it has to do with the fact that we use the same namespace alias and macro names

2021-05-12T17:13:25.342900Z

and this trips up cursive

2021-05-12T17:13:29.343100Z

but that is just a guess

cfleming 2021-05-12T23:27:06.343400Z

I see. And you want to use one of them everywhere, or you want to be able to specify in which contexts which gets used?

2021-05-13T03:09:29.343800Z

I would even be happy with just being able to say for this project use this alias when auto-requiring

2021-05-13T03:09:57.344Z

having further customization might be useful in niche cases but would say it isn’t super important

imre 2021-05-11T20:09:24.330500Z

Not sure about your usecase there but I have a feeling it's clojure you have to tell that to

2021-05-11T20:13:03.330800Z

No, its cursive because when I autocomplete a namespace in cursive in adds the wrong require at the top of the file

steveb8n 2021-05-11T22:39:12.331400Z

Q: is there a problem with Cursive and relative paths in deps.edn aliases?

steveb8n 2021-05-12T07:58:59.337200Z

ok. what’s the best way for me to provide a repro or debug logs?

cfleming 2021-05-12T10:35:15.337400Z

I’ll have a go at reproducing with the example you sent, and if I can’t make that work I’ll let you know.

🙏 1
cfleming 2021-05-20T05:27:17.013700Z

I can reproduce this, it’s definitely a problem with Cursive, due to the fact that Cursive doesn’t invoke deps with the CWD set to the project directory.

cfleming 2021-05-20T05:27:29.013900Z

I’ll hopefully get that fixed tomorrow.

🙏 1
steveb8n 2021-05-11T22:39:48.331500Z

I get “Manifest type not detected when finding deps..” when using relative paths for override deps in aliases. works fine outside of Cursive

steveb8n 2021-05-11T22:40:16.331700Z

workaround is to use absolute paths but that doesn’t transfer across machines