Git Product home page Git Product logo

arachne-assets's People

Contributors

levand avatar webappzero avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arachne-assets's Issues

invalid cross-device link error on linux

I am trying a trivial config like this

(a/id ::input (aa/input-dir "resources/adoc" :watch? true))
(a/id ::output (aa/output-dir "resource"))
(aa/pipeline [::input ::output])

(I think this config is supposed to simply copy the files over, but not entirely sure)

Which upon updating a file under resources/adoc throws the following error.

Exception in thread "async-dispatch-10" 
java.lang.Error: java.nio.file.FileSystemException: resource/reader.adoc -> /tmp/arachne-fs7737731896548256830/dc2d14daa85742c8f00930de7011e0f8.1492707865210: Invalid cross-device link
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1148)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.nio.file.FileSystemException: resource/reader.adoc -> /tmp/arachne-fs7737731896548256830/dc2d14daa85742c8f00930de7011e0f8.1492707865210: Invalid cross-device link
	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
	at sun.nio.fs.UnixFileSystemProvider.createLink(UnixFileSystemProvider.java:476)
	at java.nio.file.Files.createLink(Files.java:1086)
	at arachne.fileset.util$hard_link.invokeStatic(util.clj:55)
	at arachne.fileset.util$hard_link.invoke(util.clj:52)
	at arachne.fileset.impl.TmpFileSet$fn__27001.invoke(impl.clj:303)
	at arachne.fileset.impl.TmpFileSet._commit_BANG_(impl.clj:289)
	at arachne.fileset$commit_BANG_.invokeStatic(fileset.clj:28)
	at arachne.fileset$commit_BANG_.invoke(fileset.clj:18)
	at arachne.assets.pipeline.OutputDir$receive__35637.invoke(pipeline.clj:239)
	at arachne.assets.pipeline.OutputDir$fn__35658$state_machine__33185__auto____35659$fn__35661.invoke(pipeline.clj:242)
	at arachne.assets.pipeline.OutputDir$fn__35658$state_machine__33185__auto____35659.invoke(pipeline.clj:242)
	at clojure.core.async.impl.ioc_macros$run_state_machine.invokeStatic(ioc_macros.clj:1012)
	at clojure.core.async.impl.ioc_macros$run_state_machine.invoke(ioc_macros.clj:1011)
	at clojure.core.async.impl.ioc_macros$run_state_machine_wrapped.invokeStatic(ioc_macros.clj:1016)
	at clojure.core.async.impl.ioc_macros$run_state_machine_wrapped.invoke(ioc_macros.clj:1014)
at clojure.core.async.impl.ioc_macros$take_BANG_$fn__33203.invoke(ioc_macros.clj:1025)
at clojure.core.async.impl.channels.ManyToManyChannel$fn__27599$fn__27600.invoke(channels.clj:95)
at clojure.lang.AFn.run(AFn.java:22)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
... 2 more

Probably my understanding is hazy somewhere...
Has anyone seen this happen?

Automatically detect if asset input dir can be watched

Arachne raises an error when an input to a pipeline is a jar when it's declared to be watched. This should be lowered to a warning because it's quite useful to have a resource dir be watched in development while in production it's served from a jar file.

Maybe a config param like :watch :if-possible could make this explicit and suppress any warning.

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.