-
-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Declaritive prepl connections #15
Comments
This sounds like a great idea to me. I suspect it would make the experience feel lighter weight, as the REPL might have more time to start in the background while one types out one's first statement to eval. |
This sounds good but I think that some way to configure prepl ports and tags per project would be even better. nrepl clients can use dot files generated by repls to know to which port to connect without user input. Since the prepl is created via a config on deps.edn Conjure could check the config on some usual places or even a |
I'd have to nail down the mechanics for how it'd work. Like should it keep retrying the same eval if it fails or should it throw it away and log it... maybe stay silent and just notify you of connections and disconnections... so yeah, lots of questions! As long as the general idea of describing what you'd like to be connected to and then letting Conjure decide when to actually connect doesn't sound silly. A Right now I store my custom bindings in |
TIL about local_vimrc. Thanks! |
Current thinking is Then on eval Conjure will attempt to connect to all of your described REPLs, if you bring one up or shut one down it will attach and detach where required. So there will be no commands to connect or disconnect, it'll just happen if it's there. There will be one command that reloads the config and reconnects to everything though just in case you need to change some config or reconnect to a dead prepl. If there's no config, nothing matches or nothing will connect then it'll prompt you to hit a key mapping or command to self prepl into Conjure's own JVM. So:
|
That sounds great! I like the idea of warning/prompting about doing the self prepl. I could see it being confusing otherwise, like if you think you're connecting to a project REPL but you're actually not. |
Will be released in v0.18.0. Check out the |
Hi, Firstly, great work on the declaritive work. Here are my few comments: I'm not a fan of having "default" mappings, such as In relation to this, having the conjure log pop up saying it can't connect is noise and distracting. If it can't find a I don't want the log to tell me that it can't connect to So, on first test, I can't see to get what I expect. In my $PROJECT folder, I have a
i.e., only one configuration. I would have expected that if there is one (and only one) mapping, then ConjureUp would try to automatically use that one (typing in
I would have expected, since there is only one Hope this helps as some initial feedback. -=david=- |
Oh, haha, this is a bug 😆 it's reading the config from Conjure's own directory, not from your project directory as intended, hang on, I'll fix it 😅 |
Fixed in develop by asking Neovim for the current working directory when fetching config. I was using Conjure's CWD before which is actually the source folder. Oops 😨 Hopefully that works well for you now! |
Yes, thank you. |
Released in |
A thought from today: When adding a connection, it shouldn't matter if you can't connect yet, when you eval it'll try to connect again. If you reboot your REPL it should disconnect and then reconnect when you eval.
My point being: The connection pool should contain instructions for connections then ensure those connections as and when they're required. This allows you to attempt things even when the REPL isn't up yet, or restart the REPL without having to reconnect.
Of course, if you eval and it can't connect it'll log an error, but the next eval will try again. This makes connections essentially declarative!
The text was updated successfully, but these errors were encountered: