Giter Site home page Giter Site logo

Leaf template compiler issues about template HOT 5 CLOSED

Sherlouk avatar Sherlouk commented on September 6, 2024
Leaf template compiler issues

from template.

Comments (5)

Sherlouk avatar Sherlouk commented on September 6, 2024

Package.swift

        .package(url: "https://github.com/vapor/vapor.git", from: "4.0.0"),
        .package(url: "https://github.com/vapor/leaf.git", from: "4.0.0"),
    ],
    targets: [
        .target(
            name: "App",
            dependencies: [
                .product(name: "Vapor", package: "vapor"),
            ],

Leaf dependency is added but not to the target too.

from template.

Sherlouk avatar Sherlouk commented on September 6, 2024

It's very confusing because the syntax looks right for the scenarios where it does work and doesn't work.

My best guess is it seems to always manage the first tag, but not the subsequent ones? Like it'll do the import, but not the statement. It'll add the dependency but not to the target. Always the first one?

from template.

Sherlouk avatar Sherlouk commented on September 6, 2024

This issue probably belongs more in the toolkit repo, on reflection. I'm just seeing if I can reproduce the issue with a unit test over there :)

from template.

Sherlouk avatar Sherlouk commented on September 6, 2024

Very perplexing... my unit test is passing 🤔 Same exact template as what is failing here...

from template.

Sherlouk avatar Sherlouk commented on September 6, 2024

and that my friends is because this bug has been fixed in a more recent version of the toolbox. turns out when I thought I updated last week, it didn't.

sorry for the unnecessary prompt! all is good

from template.

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.