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

cider-connect-clj&cljs: don't render `"ClojureScript REPL type:" for JVM repls #3389

Merged
merged 2 commits into from
Aug 2, 2023

Conversation

vemv
Copy link
Member

@vemv vemv commented Aug 1, 2023

Fixes #3383

I verified this one locally.

Cheers - V

@vemv vemv requested a review from bbatsov August 1, 2023 12:40
cider.el Outdated
copy-sequence
(map-delete :cljs-repl-type)))
(clj-repl (cider-connect-clj clj-params)))
(when (or (not soft-cljs-start)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also simplified this condition, since (cider-connect-sibling-cljs params clj-repl) was duplicated.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a big fan of this negation in the condition, though.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe?

(if soft-cljs-start
    (cider--check-cljs (plist-get params :cljs-repl-type) 'no-error)
  t)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much better IMO.

@bbatsov bbatsov merged commit b217386 into clojure-emacs:master Aug 2, 2023
20 checks passed
@vemv vemv deleted the 3383--jvm-no-cljs-repl-type branch August 2, 2023 12:33
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.

Don't pass cljs-repl-type to jvm repls
2 participants