This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-12-09
Channels
- # beginners (140)
- # boot (163)
- # cider (43)
- # cljs-dev (50)
- # cljsjs (5)
- # cljsrn (38)
- # clojure (152)
- # clojure-austria (10)
- # clojure-berlin (9)
- # clojure-dev (11)
- # clojure-japan (1)
- # clojure-miami (2)
- # clojure-russia (147)
- # clojure-sg (12)
- # clojurescript (244)
- # code-reviews (3)
- # cursive (104)
- # data-science (5)
- # datavis (15)
- # datomic (35)
- # editors (4)
- # hoplon (1)
- # ldnclj (11)
- # lein-figwheel (14)
- # leiningen (22)
- # off-topic (53)
- # om (373)
- # omnext (2)
- # onyx (67)
- # parinfer (193)
- # re-frame (23)
- # reagent (89)
- # yada (7)
@rantingbob: Feel free to rant here initially, and if there isn’t already a feature request then either you or I can add an issue.
So...I have one thing that keeps making me want to go back to Sublime (I'm a newbie).
I'd ilke ther eto be a shortcut to switch to the repl, and a shortcut to switch between panels when you have two files open at once
Now...heres the thing...I don't know if that's an IntelliJ limitation
or...have the REPL always have a single shortcut in the switcher
I know it probably seems daft
Same...the repl tends to move, it won't swap files in two panels properly, and tends to open files I've recently closed if I just hit it without paying attention. In Sublime I'd just Cmd-1, Cmd-2 etc. or CMD-Arrow or what have you to quick switch
As I say though...it's IntelliJ functionality, so I don't know that it's really Cursives job to fix it.
Like I said, I agree - it's not the most ergonomic thing ever and a shortcut for switching between a buffer and REPL could certainly be useful.
@rantingbob: When you’re talking about panels, you’re talking about tabs in the REPL toolwindow?
sorry, panels wasn't the right word, buffers would have been a better choice
tabs in the editor
a button to quick swap from the repl to the editor and vice versa
If you have a number assigned to the REPL toolwindow, Cmd-<number> will jump to the REPL, but that bit is not ideal.
and ideally better switching behaviour between editor buffers, so if you have two side by side you can swap between them using them more reliably
That would be fine...but the number in the switcher seems to change
No, I’m talking about the numbers assigned to the toolwindows. This is for jumping to the REPL.
There are two issues here - getting to the REPL and back, and getting between editors.
Ohhh...see, this is where my noob is showing
and cmd-num will get you to the repl
Is there a default for num?
If you go to View->Toolwindows, you’ll see the numbers assigned to the toolwindows. If there isn’t one assigned to the REPL toolwindow, you can assign it one in Settings->Keymap.
This command is not ideal, because it behaves slightly differently depending on whether the REPL toolwindow is currently open or not.
I’m planning to add a new command which will, from an editor, open the REPL toolwindow, jump to it and focus the REPL editor.
One thing several people have requested is to be able to jump to the REPL output pane to cut and paste from there without the mouse.
That sounds perfect, but thank you in the meantime
So this new command would jump to the REPL if you’re in an editor, and then toggle from the REPL editor to the REPL output.
However, see https://cursiveclojure.com/userguide/ui.html for my recommendation.
So the thing that I actually want you're already working on, and the rest I just didn't know cos noob 😉 Thank you for your patience
I know this is probably not the done thing...but
When you eventually ship Cursive as it's own thing...if you think that's what the UI should be...you should ship it like that
I think anyway
Well, it’s controversial - for total newbies, the toolwindows etc can actually help to find things.
Plus I can’t reconfigure people’s UI for them in IntelliJ. When I make a standalone IDE, I’ll have more control there, and I can ask the user at first launch what they want.
For the record, I do mean when ou ship the standalone IDE
BTW I also have some sublime-like keybindings submitted by a user if you’re interested.
TBH, I'm pretty comfortable with your keybindings
its mostly just switching betwen buffers (I like to have tests and code open side-by-side)
and I want to be able to quick switch to the repl
that's about it
I don't know enough Clojure to really stress anything else in the system
Cool. Thank you.
Oh, I also watched your video on using grammars to improve Clojure errors. It was very interesting.
Is it in discussion? Or are you hinting that you're already implementing it 😉
Well, there’s interest but I haven’t had time to work up anything more than a basic demo, so don’t hold your breath.
And it’s actually quite hard, and might not even be feasible - lots more investigation required.
I can't even begin to imagine
@cfleming: so if I understood right if I set key for Other -> REPL
in Settings->Keymap
it should be reflected in the ctrl+tab
switcher?
@rantingbob: are you thinking about http://stackoverflow.com/questions/25667005/how-to-switch-only-between-editor-windows-not-tabs-in-split-mode
I am...thank you
@jaen: I’m not sure about the ctrl-tab switcher, but if you set it to, say, CMD-9, then you can just use that key to jump right to the REPL.
@cfleming: I've just started getting stack overflow when trying to open one file in my project. Does this stacktrace tell you anything? - https://gist.github.com/jaen/0b732825ae6f4262b870
I think this might have been caused by having a (defrecrod Repository ...)
and referring a protocol of the same name from another namespace.
Has anyone been seeing an oddness in IntelliJ where modal dialogs don't respond to mouse clicks? This started fairly recently. I've tried disabling virtually every plugin and it still seems to be happening. I don't see anything in the idea.log. Kind of at a loss.
Fortunately, key presses still work, so IntelliJ is trying to make me break my mouse addiction.
Is there a way to search all of my dependencies code?
Ah yes, search with custom scope Project And Libraries
@cfleming: sure, if I can reproduce that with a minimal test case later I'll file an issue. That would probably be more convenient for you than getting the whole project as-is.
@jaen: Sure, but if the project is publicly visible that’s fine too, as long as I know which file to open.
I could make it publicly visible I guess, they ain't gonna fail me for that, I think. Give me a second.
@cfleming: made it public for you to see. That's the offending line - https://gitlab.com/jaen/thesis-code/blob/cursive-issue/src/scrabble/backend/components/repository.clj#L23
if it's changed to a namespaced form repository/Repository
everything's in order. When I remove the namespace part - stack overflow.
@cfleming: I don't remember if asked about that before or not, but is not being able to debug protocol method bodies a fundamental limitation or something that can be fixed?
The issue is that it’s difficult-to-impossible for Cursive to determine for a particular piece of code, which class it’s associated with.
JDI assumes that you’ll be able to know this and uses the class in a lot of its APIs.
Currently the only thing I can do is use the namespace, and say “the class is one of my.funky.ns.*"
The issue there is that classes defined using reify et al don’t match that pattern. I suspect it’s probably fixable, but I haven’t looked into it yet.
I assume defrecord
with protocols falls under et all then, yes? Sure, I'll file an issue when I have time. It's not a super urgent thing after all, was just curious what was the underlying cause of it not working.
my.funky.ns/my-fn generates a class my.funky.ns$my-fn IIRC, whereas my.funky.ns.MyRecord generates a class with exactly that name.
@cfleming: since I'm not sure if you use but, and the repo doesn't include the generated project.clj
I've put it in a gist for your ceonvenience - https://gist.github.com/jaen/a5ea75889d9cd362a00a
@jaen: https://github.com/cursiveclojure/cursive/issues/1190, I’ve cloned that repo if you want to make it private again.