Skip to content
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

Added the Krell REPL support #2861

Merged
merged 1 commit into from
Aug 2, 2020
Merged

Conversation

dotemacs
Copy link
Contributor

This change adds the support for Krell REPL.

Instead of having to pick a custom REPL and specifying a
cider-custom-cljs-repl-init-form, this is all now included. All the
user has to do is pick the REPL type, which in this case is krell.

I suspect that there might need to be issues to be considered:

  • Is the way the "payload" is created, as in the require form, all on separate lines, is that OK? Or do you want it all on one line?
  • If the above is OK, I'll move onto adding the documentation in the docs.

Please advise, thanks

@bbatsov
Copy link
Member

bbatsov commented Jun 17, 2020

From what I get krell can't define project types, so I'm guessing it should be defined as ClojureScript REPL type (e.g. the way figwheel is defined), not like something at the cider-jack-in level.

@dotemacs
Copy link
Contributor Author

The test failures are lint failures, related to the code that my change does not touch:

cider-eval.el:347 -

(defconst cider-clojure-compilation-regexp (rx bol (or (eval cider-clojure-1.9-error)

cider.el:364 -

cider/cider.el

Line 364 in fdc8d69

(format cider-clojure-cli-parameters

@dotemacs
Copy link
Contributor Author

From what I get krell can't define project types, so I'm guessing it should be defined as ClojureScript REPL type (e.g. the way figwheel is defined), not like something at the cider-jack-in level.

Hi @bbatsov, do you mean these:

@bbatsov
Copy link
Member

bbatsov commented Jun 17, 2020

Yep. I think that only the cljs part the setup is actually needed (

cider/cider.el

Line 825 in fdc8d69

(defvar cider-cljs-repl-types
+ the cljs requirements check). That way you'll be able to pick krell regardless of your build tool.

@dotemacs
Copy link
Contributor Author

Great, thanks for confirming!

@dotemacs dotemacs force-pushed the krell-repl branch 2 times, most recently from 6dae471 to 84a74ae Compare June 23, 2020 21:45
This change adds the support for Krell REPL.

Instead of having to pick a custom REPL and specifying a
cider-custom-cljs-repl-init-form, this is all now included. All the
user has to do is pick the REPL type, which in this case is krell.
@dotemacs
Copy link
Contributor Author

Cleaned up the PR, please have a look.

A things to consider:

The way the require clause is provided, it isn't all on one line like it is for the other REPL types. Would you like that all flattened out to a single line? I'm talking about this https://github.com/clojure-emacs/cider/pull/2861/files#diff-00bd1ee3b6816bf7f502bc824ec4a6e9R834

@bbatsov
Copy link
Member

bbatsov commented Jun 25, 2020

The way the require clause is provided, it isn't all on one line like it is for the other REPL types. Would you like that all flattened out to a single line? I'm talking about this https://github.com/clojure-emacs/cider/pull/2861/files#diff-00bd1ee3b6816bf7f502bc824ec4a6e9R834

It's fine as it is.

Just update the changelog and add some docs about Krell (so that people know CIDER supports it now) and we're good to go.

@bbatsov
Copy link
Member

bbatsov commented Jul 2, 2020

@dotemacs ping :-)

@dotemacs
Copy link
Contributor Author

dotemacs commented Jul 2, 2020

Pong.

I’ll do it either today or this weekend.

Thanks

@bbatsov bbatsov merged commit 7e4b5e9 into clojure-emacs:master Aug 2, 2020
@bbatsov
Copy link
Member

bbatsov commented Aug 2, 2020

I'm planning to cut a new release soon, so I'll merge this as is. You can add the docs later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants