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

Improve shadow cljs support #271

Merged

Conversation

dhleong
Copy link
Contributor

@dhleong dhleong commented Nov 10, 2019

Before submitting a PR make sure the following things have been done (and denote this
by checking the relevant checkboxes):

  • The commits are consistent with our contribution guidelines
  • You've added tests (if possible) to cover your change(s)
  • All tests are passing (run lein do clean, test)
  • Code inlining with mranderson works and tests pass with inlined code (run ./build.sh install -- takes a long time)
  • You've updated the changelog (if adding/changing user-visible functionality)
  • You've updated the readme (if adding/changing user-visible functionality)

Thanks!

Fixes project-root detection for shadow-cljs projects that don't
also have a project.clj or deps.edn file
… as strings

shadow-cljs supports string namespaces for requiring NPM dependencies,
eg:

  (:require [reagent.core :as r]
            ["react-virtualized/dist/commonjs/List" :refer [List]])

By comparing all namespaces as strings, we fix a ClassCast crash trying
to compare such a string to a normal symbol.
@expez expez merged commit ef40b11 into clojure-emacs:master Nov 12, 2019
@expez
Copy link
Member

expez commented Nov 12, 2019

Thanks @dhleong! Much appreciated!

@expez
Copy link
Member

expez commented Nov 12, 2019

I tried doing ./build.sh deploy clojars to get another snapshot out, but that resulted in:

Ran 109 tests containing 263 assertions.
4 failures, 1 errors.

I see that the last snapshot was deployed in late July. Is ^ why, @bbatsov?

@bbatsov
Copy link
Member

bbatsov commented Nov 12, 2019

I don't remember the failure. There hasn't been new shapshot releases recently because there wasn't a lot of action on the project (and I was busy with other work).

@dhleong dhleong deleted the dhleong/improve-shadow-cljs-support branch March 17, 2020 13:23
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.

None yet

3 participants