Giter Club home page Giter Club logo

Comments (4)

chharvey avatar chharvey commented on July 3, 2024

according to #115 the jade dependency has been upgraded to jade v1.11.0, which supports block unbuffered code, however I am still getting errors with such code in my projects. I am using harp v0.20.1. any news on this?

from terraform.

lunelson avatar lunelson commented on July 3, 2024

This may have been merged in terraform but I'm not sure the terraform bump is merged in harp yet. You'd have to look at the current release of harp and check which terraform release the package is pointing to.

OTOH if it's in and you're still having trouble it could be because the syntax is quite strict. You have to put a single - followed by a \n, and then indent your block, and make sure something is written on the first line of the indented block. If there's a space or anything else after your - character it won't work, and if the first line of your code block is empty it will also fail

-
  // js code will work here only if previous line has no space after the '-' character
  // ... and only if there's no empty line after the '-' character
  function hello() { return 'hello world'; }

from terraform.

chharvey avatar chharvey commented on July 3, 2024

The syntax is exactly correct; it's not an issue with that.

It looks like #115 has been merged into master (see b7072dd) before v1.0.0 so no work needs to be done on terraform. But harp still needs to upgrade to terraform v1.0.0 which is covered here: sintaxi/harp#526

from terraform.

lunelson avatar lunelson commented on July 3, 2024

Yeah that's what I figured, I just mentioned the possible syntax issue cause it's bitten me a few times. That PR re upgrading harp to terraform v1.0.0 has been in the queue for a while. I have the impression the maintainers are intending a major release of harp that will bundle a bunch of new features at once. In the meantime I've been using my forked version of harp with good success for a while. It merges some of the recent PRs must mainly just points to my fork of terraform, where I've merged a lot of the PRs that are currently in the queue over there, as well as my own features. I just npm link them on my own systems so I can tweak them both as I go.

from terraform.

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.