Giter Club home page Giter Club logo

Comments (4)

j0ni avatar j0ni commented on June 12, 2024

Here's a full stack trace for the record:

Exception in thread "main" java.lang.IllegalArgumentException: /Users/joni/Scratch/clojure/radiculopath/resources/templates/css/.#screen.scss not found, compiling:(/private/var/folders/18/0_3cdctx3hz46cm83zlr6sb40000gn/T/form-init4069157209016142275.clj:1:124)
    at clojure.lang.Compiler.load(Compiler.java:7142)
    at clojure.lang.Compiler.loadFile(Compiler.java:7086)
    at clojure.main$load_script.invoke(main.clj:274)
    at clojure.main$init_opt.invoke(main.clj:279)
    at clojure.main$initialize.invoke(main.clj:307)
    at clojure.main$null_opt.invoke(main.clj:342)
    at clojure.main$main.doInvoke(main.clj:420)
    at clojure.lang.RestFn.invoke(RestFn.java:421)
    at clojure.lang.Var.invoke(Var.java:383)
    at clojure.lang.AFn.applyToHelper(AFn.java:156)
    at clojure.lang.Var.applyTo(Var.java:700)
    at clojure.main.main(main.java:37)
Caused by: java.lang.IllegalArgumentException: /Users/joni/Scratch/clojure/radiculopath/resources/templates/css/.#screen.scss not found
    at me.raynes.fs$assert_exists.invoke(fs.clj:287)
    at me.raynes.fs$copy.invoke(fs.clj:292)
    at me.raynes.fs$copy_PLUS_.invoke(fs.clj:443)
    at me.raynes.fs$copy_dir$fn__3625.invoke(fs.clj:465)
    at clojure.lang.AFn.applyToHelper(AFn.java:160)
    at clojure.lang.AFn.applyTo(AFn.java:144)
    at clojure.core$apply.invoke(core.clj:624)
    at me.raynes.fs$walk$fn__3612.invoke(fs.clj:406)
    at clojure.core$map$fn__4245.invoke(core.clj:2557)
    at clojure.lang.LazySeq.sval(LazySeq.java:40)
    at clojure.lang.LazySeq.seq(LazySeq.java:49)
    at clojure.lang.RT.seq(RT.java:484)
    at clojure.core$seq.invoke(core.clj:133)
    at clojure.core$dorun.invoke(core.clj:2855)
    at me.raynes.fs$copy_dir.invoke(fs.clj:460)
    at cryogen_core.io$copy_resources.invoke(io.clj:54)
    at cryogen_core.compiler$compile_assets.invoke(compiler.clj:293)
    at cryogen_core.compiler$compile_assets_timed$fn__6087.invoke(compiler.clj:313)
    at cryogen_core.compiler$compile_assets_timed.invoke(compiler.clj:312)
    at cryogen.server$init.invoke(server.clj:9)
    at clojure.lang.Var.invoke(Var.java:375)
    at ring.server.standalone$serve.doInvoke(standalone.clj:93)
    at clojure.lang.RestFn.invoke(RestFn.java:423)
    at ring.server.leiningen$serve.invoke(leiningen.clj:20)
    at user$eval6146.invoke(form-init4069157209016142275.clj:1)
    at clojure.lang.Compiler.eval(Compiler.java:6703)
    at clojure.lang.Compiler.eval(Compiler.java:6693)
    at clojure.lang.Compiler.load(Compiler.java:7130)
    ... 11 more

from cryogen-core.

j0ni avatar j0ni commented on June 12, 2024

The more I think about this, the more it looks like it can only be fixed by copying files, not entire directory structures. Do you agree @lacarmen @yogthos? Maybe I missed a me.raynes.fs function that can mask these files while copying...

I also had other, somewhat related ideas about the compiler design. I don't want to pollute this ticket - shall I make another issue, or can we discuss more informally?

from cryogen-core.

yogthos avatar yogthos commented on June 12, 2024

Yeah, I don't think there's a way to supply a mask, might be worth submitting a pr for that to raynes.fs at some point. In the meantime, I think writing a custom copy fn should be pretty straightforward. If I recall correctly file-seq lists all the files including subfolders, so it would just be a matter of going through them and filtering out the unwanted files before copying. Would be very similar to what find-assets is doing.

For compiler design ideas I'm good either way, @lacarmen?

from cryogen-core.

lacarmen avatar lacarmen commented on June 12, 2024

Copying the files rather than the directory would be an easy fix. I looked at me.raynes.fs and I didn't see a way to supply a mask either.

from cryogen-core.

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.