Git Product home page Git Product logo

Comments (10)

bhb avatar bhb commented on August 24, 2024 1

@olivergeorge OK, I think I've got a simple fix for this. I think eventually I'll take @danielcompton's suggestion to reconfigure the project to not put compiled JS in resources, but for now, I've updated the :clean-targets option in project.clj.

Would you mind confirming the fix?

  1. git clone [email protected]:bhb/expound.git
  2. cd expound
  3. git checkout cursive-bug
  4. lein install
  5. In your test project, include [expound "0.2.1-SNAPSHOT"]

from expound.

bhb avatar bhb commented on August 24, 2024

Thanks for reporting this!

It looks like it's a known Cursive bug but it does not appear to happen with all .cljc files (for instance, I could not reproduce it with Integrant).

I'll look into this more. If there is something I can change in the project.clj file that fixes this without breaking other scenarios, I'm happy to try it.

from expound.

danielcompton avatar danielcompton commented on August 24, 2024

screenshot of finder 16-08-17 1-37-03 pm

I think this is because the jar includes compiled test files in it? https://repo.clojars.org/expound/expound/

from expound.

bhb avatar bhb commented on August 24, 2024

@danielcompton Thanks very much for the idea! That does indeed look suspicious. I'll look into how to exclude this directory when doing lein deploy clojars

from expound.

danielcompton avatar danielcompton commented on August 24, 2024

Because they are in resources/public this would be included by default. You can use :jar-exclusions, or maybe compile the CLJS into a different directory?

from expound.

bhb avatar bhb commented on August 24, 2024

@danielcompton Hm, I'm considering my options here. I put everything in resources originally so that I could connect to Figwheel in the browser to access a CLJS REPL, but it does seem cleaner to compile all CLJS for tests in, say target.

OTOH, just using :jar-exclusions would fix this for now, even if it's a bit of a hacky workaround

from expound.

bhb avatar bhb commented on August 24, 2024

@danielcompton I can confirm that excluding these files from the jar fixes the issue. Thanks very much for the idea, that would not have occurred to me!

I'll weigh my options and figure out a good fix for this ASAP.

from expound.

olivergeorge avatar olivergeorge commented on August 24, 2024

@bhb Confirmed. 0.2.1-SNAPSHOT resolves the problem.

from expound.

bhb avatar bhb commented on August 24, 2024

@olivergeorge Thanks for testing!

from expound.

bhb avatar bhb commented on August 24, 2024

I've released 0.2.1 to address this.

from expound.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.