Coder Social home page Coder Social logo

Comments (7)

bamos avatar bamos commented on July 29, 2024

Hi @rlabrecque - thanks for the report.

The code is written to be cross-platform, but I've
never tested in Windows before.
I think this is a subtle bug with the jinja templates.
I'll debug on a Windows machine today or tomorrow.

Afterwards, I'd like to set up Linux and Windows CI so
this won't be problem in the future.
I've filed #12 for this.

from cv.

bamos avatar bamos commented on July 29, 2024

Hi @rlabrecque - can you pull the latest code and try again?
I think I've fixed the problem, caused by how Jinja's FileSystemLoader handles paths in Windows.

from cv.

rlabrecque avatar rlabrecque commented on July 29, 2024

Yep, It's all good now! Thanks!

from cv.

bamos avatar bamos commented on July 29, 2024

\cc @emichael

from cv.

emichael avatar emichael commented on July 29, 2024

Huh, I don't quite understand what the problem was, and I'm curious. Did he have a folder/file with a forward slash in the path?

from cv.

bamos avatar bamos commented on July 29, 2024

@emichael - in windows, generate.py will create a string like
sections\education.tex (with backslashes from os.path.sep)
to retrieve and render a template with self._jinja_env.get_template.
I don't understand why, but Jinja's get_template method expects
the path to be separated with forward slashes, even in Windows.

This seems to be a problem in other projects too:
https://github.com/mrobb/complexity/commit/912ca3ac2fa97deb427d529a452c805903f686d2

from cv.

emichael avatar emichael commented on July 29, 2024

Ugh. And I thought religious use of os.path.join would prevent such nonsense...

from cv.

Related Issues (19)

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.