-
-
Notifications
You must be signed in to change notification settings - Fork 646
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
Support nbb as native cljs repl #3275
Conversation
I like your proposal, as it's quite in line with how things are structured today in CIDER and it making it possible to use |
Actually the code is so good that I don't even have much feedback on it. :D Well done! Now we need just a bit of docs and maybe those integration tests that you've suggested. |
I would also like some feedback from @benjamin-asdf whether our patches overlap, I dont' think so, because his is more like a general approach to upgrade a clj to cljs which addresses a wider set of problems. If they overlap, I'd rather support his, since he was submitted the PR first. @borkdude, I've used There is some change in general behaviour that I've noticed that I think it's good to mention for completion: I have clojure cli, shadow cljs and nbb included in the regression testing, perhaps I can commit the integration tests first followed by this patch? I think i only need to add one more, leiningen,. in the list and that would be sufficient. Thanks |
@ikappaki |
Yes sorry, |
@ikappaki Yes :) You can declare deps in it, just like in |
@ikappaki It doesn't overlap I think. As long have the build tool commands it makes sense to add new ones I guess. So thanks! I still like my pr, or something like it, because I can connect to nbb, scittle, joyride with 1 command and I feel like that is a good direction to go. |
32b9ade
to
55f9b18
Compare
Thanks @borkdude, changed project file identifier to |
@thanks @benjamin-asdf, is good to know :) |
Hi @bbatsov, now that the integration tests have been merged, can we have clojure-mode with nbb support released so I can resume work on this PR please? (as a reminder, we needed nbb support in clojure-mode to locate the root dir of the project) |
I'm on the road right now without a computer. I can cut a new release tomorrow evening or on Monday.
…On Sat, Dec 10, 2022, at 6:54 PM, ikappaki wrote:
> I have clojure cli, shadow cljs and nbb included in the regression testing, perhaps I can commit the integration tests first followed by this patch? I think i only need to add one more, leiningen,. in the list and that would be sufficient.
>
Hi @bbatsov <https://github.com/bbatsov>, now that the integration tests have been merged, can we have clojure-mode with nbb support <clojure-emacs/clojure-mode#641> released so I can resume work on this PR please? (as a reminder, we needed nbb support in clojure-mode to locate the root dir of the project)
—
Reply to this email directly, view it on GitHub <#3275 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAAZLSVIDZPKWGI5GD5GSFLWMS7V5ANCNFSM6AAAAAASRVCUE4>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
No worries, thanks, we are not in a rush :) |
If no repl init form is given, logic assumes it is repl is cljs from the start.
Also - Add changelog entry - Small tests improvements (no functional changes). - Fixes unreleated codespell issue in master with `ai` logos.
55f9b18
to
68ae7f8
Compare
Hi @bbatsov, I think PR is complete with latest commit ready for review
Thanks |
Great work! 🙇♂️ |
Hi,
(while I was opening this PR, I've realised that @benjamin-asdf has arleady submitted #3272 to address the same using a more general methodology through the clj REPL. I don't think there is a source code conflict between the two. His PR appears to be allowing the clj REPL to upgrade to cljs and thus support a variaty of cljs cases, this PR is specific to nbb to support it as a native cljs REPL and goes through the established root of declaring a new project tool. Thus I provisionally open this PR for deliberation only and should be declined in favor of benjamin's if it conflicts in any way or is considered overlapping/obsolete)
Could you please consider PR to support nbb as a native cljs repl when jacking in or connecting to cljs. Addresses #3272
The logic will consider a project as nbb based on whether a
package.json
is present. A user can jack in usingcider-jack-in-cljs
orcider-connect-*-cljs
The previous logic assumed that all cljs REPLs are clojure repls that required some form to switch them over to cljs. With this update a particular project type can be declared as native cljs by not declaring any repl init forms.
I've included some tests to test the above.
It will be nice if we have integration tests to confirm we haven't broken anything when having such high level changes that cannot be unit tested (e.g. the jack in command), thus raised #3274 to discuss whether we can bring this forward.
I will also need to add nbb documentation if this is accepted. Thanks
Before submitting the PR make sure the following things have been done (and denote this
by checking the relevant checkboxes):
eldev test
)eldev lint
) which is based onelisp-lint
and includescheckdoc
, check-declare, packaging metadata, indentation, and trailing whitespace checks.Thanks!