This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-12-06
Channels
- # adventofcode (71)
- # aleph (1)
- # announcements (6)
- # aws (1)
- # babashka (27)
- # beginners (60)
- # biff (7)
- # calva (3)
- # clj-kondo (3)
- # clj-yaml (1)
- # clojure (60)
- # clojure-europe (43)
- # clojure-nl (3)
- # clojure-norway (75)
- # clojurescript (16)
- # code-reviews (7)
- # css (4)
- # cursive (47)
- # datascript (4)
- # events (5)
- # fulcro (37)
- # gratitude (5)
- # hyperfiddle (4)
- # introduce-yourself (4)
- # joyride (23)
- # juxt (4)
- # malli (4)
- # membrane (64)
- # nbb (8)
- # off-topic (12)
- # other-languages (6)
- # pathom (6)
- # polylith (9)
- # random (3)
- # rdf (66)
- # reitit (3)
- # releases (2)
- # shadow-cljs (18)
- # tree-sitter (10)
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?
Sorry, what exactly do you mean by "lost all my cursive/repl stuff"? Is the plugin still installed?
FWIW, I just now upgraded to Community 2021.2.4 and all is well.
none of the buttons are there, and i can’t seem to manually run the repl by selecting the project.clj file.
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?
I haven’t tried switching to it (and now am afraid to do so) yet.
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”
@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.
I haven’t tried the new UI, but I know a few people (e.g. @U086D6TBN) are using it.
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
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
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.
@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.
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.
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.
If the editor were intelligent enough to understand alignment with a proportional, then I'd agree. That would require quite a bit, though.
@U0PUGPSFR yes, u don't get a Tools / REPL menu, until u start a REPL
@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 ?
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.
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).
Yeah, that left gutter in the New UI screenshot does look slightly wider than what I have.
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...
I switched but because I know I'll have to eventually. I figured I'd rip off the band-aid.
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.
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.
Sounds about right.
and we all know "vast majority of" us are https://blog.codinghorror.com/the-magpie-developer/ 😄
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.
Ha, the older I get, the more I like boring. I customise my IDE to the absolute minimum.
same here. I actually followed your IDE customization guide and Hadi Hariri's suggestions (hiding tabs, etc.) 😛
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.
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.
They seem the same so far.
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...
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
I have thought about it, but haven’t got around to it. I’ll check clojure-kit’s ones, thanks for the tip.
I guess now I have to test my icons not only in light and dark themes, but also old-ui and new-ui 😛
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 🙂
> 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?
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.