Giter VIP home page Giter VIP logo

Comments (5)

noisesmith avatar noisesmith commented on July 24, 2024

This is not reproducible currently on a Linux or OSX machine.

This appears to be a Windows specific issue, but currently we don't have a windows dev machine.

I'll update here if we can make any progress on this (any help from a Windows dev is appreciated). I assume this is related to the way we look for embedded template resources in library jars.

from caribou-frontend.

vasilism avatar vasilism commented on July 24, 2024

(caribou.app.template/path-for-template "login.html")
"templates\login.html"

(clojure.java.io/resource "templates\login.html")
nil

(clojure.java.io/resource "templates/login.html")
URL jar:file:/C:/Users/vasilism/.m2/repository/caribou/caribou-admin/0.13.0/caribou-admin-0.13.0.jar!/templates/login.html

so if dont use the system file seperator when loading a template this will solve the problem.

from caribou-frontend.

noisesmith avatar noisesmith commented on July 24, 2024

Thank you very much, this should not take too long to sort out.

from caribou-frontend.

noisesmith avatar noisesmith commented on July 24, 2024

I am working on getting my hands on a Windows machine for testing, but in the meantime if you would like to try out a first attempt at addressing this issue you can check out the win-compat branch of caribou-core and run lein install, after which your existing project will use the new local version.

Of course if this is too much trouble, I will continue working on verifying from my end once I procure a windows box. I would like caribou to be fully cross-platform compatible, and my suspicion so far is this issue is a fairly shallow bug.

from caribou-frontend.

noisesmith avatar noisesmith commented on July 24, 2024

I verified that the fix works on Windows, and does not cause a regression with asset upload or serving assets to clients. Pull request issued and recommended for immediate merge to caribou-core. This fix should be present in the next jar we deploy for caribou core, and be pulled in by the next caribou/lein-template

from caribou-frontend.

Related Issues (3)

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.