Fork me on GitHub
#cursive
<
2022-12-06
>
AJ Snow18:12:54

i just switched to intellij’s new ui and lost all my cursive/repl stuff. is cursive supported in the new ui or should i downgrade for now?

AJ Snow18:12:36

the new cursive release says support, so i assume it should still work.

kennytilton18:12:58

Sorry, what exactly do you mean by "lost all my cursive/repl stuff"? Is the plugin still installed?

kennytilton18:12:16

FWIW, I just now upgraded to Community 2021.2.4 and all is well.

AJ Snow18:12:46

none of the buttons are there, and i can’t seem to manually run the repl by selecting the project.clj file.

R.A. Porter18:12:27

I believe you’ve talked past each other. @U012MJU8XNU you mean the experimental New UI that can be switched to in version 2022.3, correct?

R.A. Porter18:12:54

I haven’t tried switching to it (and now am afraid to do so) yet.

Sam Adams19:12:47

I’ve been using the new UI pretty successfully with a deps project, REPL etc. Sometimes the deps, repl icons don’t show up in the right side gutter, but i can access that functionality via e.g. double-shift “search everywhere”

1
AJ Snow19:12:08

@U01GXCWSRMW correct. i also tried what @U016C0EGHUN suggested but i didn’t get any prompts to show up. will try again though to be doubly sure.

AJ Snow19:12:34

*by prompts i mean any cursive repl commands

AJ Snow19:12:55

yeah no dice

cfleming23:12:40

I haven’t tried the new UI, but I know a few people (e.g. @U086D6TBN) are using it.

imre12:12:47

I've been using the new UI since I got into the preview round and haven't noticed problems. Mind you I mostly drive IJ via keyboard shortcuts and IJ's action search

👀 1
onetom15:12:29

i only used the new UI with a deps project. i had to enable the deps tool window first with the ... menu on the top-left toolbar. can't remember why did I do that though. afterwards i was able to start both local and remote nREPL run configurations. I'm often getting a IDEA core error about syntax highlighting, but that doesn't seem to affect functionality in any perceivable way. I did switch back to the default UI though, because I think it's atrocious, how I can't shrink the left gutter to something minimal. 1. it wastes my screen estate 2. it's worse UX than before, because my code just hangs in the air and I can't tell how much is it indented. it's it in a Rich-content or not? 3. the gutter is the same color as the editor area, which makes things even worse

R.A. Porter15:12:45

I've turned it on, because I might as well start getting used to it now before they kill the old UI. I did, however, just switch from their "preferred" font, Inter, to Jetbrains mono. Who the HELL wants a proportional font when editing code? That, and not all the ligatures worked with Inter. Terrible font.

onetom15:12:48

here is a comparison. look at the bottom right area.

onetom15:12:41

@U01GXCWSRMW i would love to use a proportional font. i did use proportional fonts, until i started working with clojure. before that, i was indenting code with tab, so even with proportional fonts, the indentations at the beginning of lines corresponded to the nesting level. with clojure though, the indentation varies based on the form, so we had to indent with spaces and every editor invariable renders leading spaces very narrowly, as if they were in-between words. if only they would render them em width, then the indentations would stay consistent (more or less) with the level of nesting they represent.

kennytilton15:12:10

Crazy thought. We do not get the Tools/REPL menu item until we start a configuration. I never noticed that so I lost a couple hours once when I happened not to have started a config and was struggling to find the Tools/REPL.

onetom15:12:50

with proportional fonts u can fit 10-20% more characters within the same horizontal space and they look even more pleasing and more legible too.

R.A. Porter15:12:44

If the editor were intelligent enough to understand alignment with a proportional, then I'd agree. That would require quite a bit, though.

onetom15:12:48

@U0PUGPSFR yes, u don't get a Tools / REPL menu, until u start a REPL

onetom15:12:00

@U01GXCWSRMW as a little comparison of the same clojure/changes.md & clojure.{datafy,core} content between monospaced Comic Code Ligatures & the proportional Lato fonts. aside from the broken indentation, I would much rather use the Lato font... i think what the algorithm should be is to render leading spaces in a way that they end up under the same characters as they would, when the previous line were rendered as a monospaced font. i tried to implement this logic actually, when VS Code came up, but their class hierarchy was just an unpenetrable jungle to me... 😞 im not sure which editor could i use to test this idea on... probably Emacs would be the most approachable, though at this low level, it's probably just as messy as other editors. or maybe https://github.com/fredoverflow/freditor / https://github.com/fredoverflow/clopad ?

R.A. Porter15:12:56

I agree that it looks better in general, but alignment is a must-have for me for Clojure, indentation from the margin being a subset of alignment.

👍 1
salam02:12:10

Ah, the New UI… 😆 I’ve been using it since I got accepted to the internal preview program and haven’t had any problem related to Cursive. As mentioned above, overly large paddings in UI components were one of the things I didn’t like about it. But this doesn’t bother me that much since, like most of us, I drive the IDE using keyboard shortcuts and thus configured the IDE to hide most of the UI components including editor tabs (except the status bar, which is where the Navigation Bar and VCS widgets currently are.) The other thing that felt stuck out like a sore thumb to me was the so-called Main Toolbar (the one that’s at the top of the main IDE window that has the VCS, and Run Configuration widgets in it) but I was delighted when I found out you can now completely get rid of it in the latest version of IntelliJ IDEA (2022.3).

salam02:12:23

Yeah, that left gutter in the New UI screenshot does look slightly wider than what I have.

cfleming02:12:30

I’m curious, for those using the new UI - why did you switch? What do you think?

salam03:12:47

I was, well, curious when it was announced... 😄 I gave it a try, didn't see much of a difference (since I'm a heavy keyboard shortcut user and hide most of the UI stuff) and never bothered to switch back to the soon-legacy UI...

R.A. Porter03:12:55

I switched but because I know I'll have to eventually. I figured I'd rip off the band-aid.

cfleming03:12:26

I’m not sure it’s a given that the old UI is going away, or did I miss something?

R.A. Porter03:12:58

One of their stated reasons to do it is to modernize their codebase. In that case, I can't imagine they'd want to maintain that quantity of old code alongside the new.

salam03:12:11

form one of their blogs: > The current UI will remain available for at least two years, and we’re not going to remove it until we’ve seen that the vast majority of our users have successfully made the switch to the new UI.

R.A. Porter03:12:24

Sounds about right.

salam03:12:13

and we all know "vast majority of" us are https://blog.codinghorror.com/the-magpie-developer/ 😄

cfleming03:12:18

Ok, thanks. I think I’ll wait a while for the feedback to percolate before ripping the band-aid off. I should put some effort into making sure that Cursive works ok with it though.

cfleming03:12:43

Ha, the older I get, the more I like boring. I customise my IDE to the absolute minimum.

salam03:12:28

same here. I actually followed your IDE customization guide and Hadi Hariri's suggestions (hiding tabs, etc.) 😛

R.A. Porter03:12:22

Yeah. My IJ key mappings are the ones they had back in their first release. If I felt confident the legacy UI would never go away, I would not have shifted.

salam03:12:56

I don't think keyboard shortcuts (at least, those for pure actions) will change depending on which UI we are using... at least, I haven't noticed.

R.A. Porter03:12:24

They seem the same so far.

salam03:12:11

by the way, Colin, have you thought about "modernizing" the source file icons? the current Clojure file icons look too bright in otherwise dark UI...

salam03:12:49

I really like the source file icons in Clojure Kit, they seem to blend in well with both the light and dark themes: https://github.com/gregsh/Clojure-Kit/tree/master/resources/icons

cfleming03:12:28

I have thought about it, but haven’t got around to it. I’ll check clojure-kit’s ones, thanks for the tip.

👍 1
cfleming03:12:20

I guess now I have to test my icons not only in light and dark themes, but also old-ui and new-ui 😛

😅 2
eskos06:12:53

In fairness, Clojure-Kit’s icons are probably drawn/edited by same people as the entire IDEA iconset, since Clojure-Kit is made by a JetBrains employee 🙂

imre15:12:11

> Main Toolbar (the one that’s at the top of the main IDE window that has the VCS, and Run Configuration widgets in it) but I was delighted when I found out you can now completely get rid of it in the latest version of IntelliJ IDEA (2022.3). @UDCGPTV9R could you please share how to get rid of it?

salam17:12:14

Sure. There are two ways to do it: - directly on the UI: right click on the widgets and remove everything under the Main Toolbar Left or Main Toolbar Right tree nodes - under IntelliJ IDEA’s Settings / Appearance & Behavior / Menus and Toolbars / Main Toolbar Left and Main Toolbar Right, remove everything under those two tree nodes. This is also where you can reset them to their original states.