0

I'm just starting to learn about Sweet.JS, and was excited to realize it's already built into Visual Studio 2013 Web Essentials.

I decided to first make a macro to shorten anonymous functions to fn.

macro fn {
    rule {
        $params $body
    } => {
        function $params $body
    }
}

Entering this in the online sweet.js editor gives me:

sweet.js editor output

Visual Studio, however, is giving me the a helpful error message of "Unknown error":

Helpful error message: "Unknown error"

I get the same error with any input I've tried, including an empty file, which is bizarre to me. I have no idea where to begin troubleshooting this issue.

At the moment, I don't know what information is relevant, but I'll be happy to edit this question to supply any information you guys need to help!

Thanks!

dx_over_dt
  • 13,240
  • 17
  • 54
  • 102
  • Do you know what version of sweet.js VS is using? (I had no idea VS had integrated sweet.js!) – timdisney Mar 09 '15 at 20:54
  • It's not automatically integrated. There's a very helpful plugin called VS Web Essentials that (supposedly) supports it. And no, I can't seem to find the sweet.js version. The only hint that WebEssentials even supports it seems to be on http://vswebessentials.com/features/general. – dx_over_dt Mar 09 '15 at 21:06
  • Looks like web essentials is on github so maybe that can help track down the problem: https://github.com/madskristensen/WebEssentials2013 – timdisney Mar 09 '15 at 21:31

0 Answers0