Git Product home page Git Product logo

broccoli-debug's People

Contributors

joliss avatar krisselden avatar rwjblue avatar simonihmig avatar stefanpenner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

broccoli-debug's Issues

Ember-addon with broccoli-debug fails with unknown error

I have a created a new ember addon (using ember-cli version 2.13.3) to test this utility but it directly fails with the following error:

Build failed.
The Broccoli Plugin: [BroccoliMergeTrees: Addon#treeFor (test-addon - app)] failed with:
Error: Build Canceled: Broccoli Builder ran into an error with BroccoliDebug plugin. 💥
    at new BroccoliBuildError (C:\Projects\temp\test-addon\node_modules\broccoli-builder\lib\broccoli-build-error.js:40:9)
    at C:\Projects\temp\test-addon\node_modules\broccoli-builder\lib\builder.js:168:19
    at tryCatch (C:\Projects\temp\test-addon\node_modules\rsvp\dist\rsvp.js:539:12)
    at invokeCallback (C:\Projects\temp\test-addon\node_modules\rsvp\dist\rsvp.js:554:13)
    at publish (C:\Projects\temp\test-addon\node_modules\rsvp\dist\rsvp.js:522:7)
    at publishRejection (C:\Projects\temp\test-addon\node_modules\rsvp\dist\rsvp.js:457:3)
    at flush (C:\Projects\temp\test-addon\node_modules\rsvp\dist\rsvp.js:2414:5)
    at _combinedTickCallback (internal/process/next_tick.js:73:7)
    at process._tickCallback (internal/process/next_tick.js:104:9)

The broccoli plugin was instantiated at:
    at BroccoliMergeTrees.Plugin (C:\Projects\temp\test-addon\node_modules\broccoli-plugin\index.js:7:31)
    at new BroccoliMergeTrees (C:\Projects\temp\test-addon\node_modules\ember-cli\node_modules\broccoli-merge-trees\index.js:16:10)
    at Function.BroccoliMergeTrees [as _upstreamMergeTrees] (C:\Projects\temp\test-addon\node_modules\ember-cli\node_modules\broccoli-merge-trees\index.js:10:53)
    at mergeTrees (C:\Projects\temp\test-addon\node_modules\ember-cli\lib\broccoli\merge-trees.js:85:33)
    at Class.treeFor (C:\Projects\temp\test-addon\node_modules\ember-cli\lib\models\addon.js:490:30)
    at project.addons.map.addon (C:\Projects\temp\test-addon\node_modules\ember-cli\lib\broccoli\ember-app.js:559:22)
    at Array.map (native)
    at EmberAddon.addonTreesFor (C:\Projects\temp\test-addon\node_modules\ember-cli\lib\broccoli\ember-app.js:557:32)
    at EmberAddon._processedAppTree (C:\Projects\temp\test-addon\node_modules\ember-cli\lib\broccoli\ember-app.js:852:27)
    at EmberAddon.appAndDependencies (C:\Projects\temp\test-addon\node_modules\ember-cli\lib\broccoli\ember-app.js:1114:12)

I have the following index.js file.

const BroccoliDebug = require('broccoli-debug');

module.exports = {
  name: 'test-addon',

  treeForApp(...rest) {
    let tree = this._super(...rest);

    const debugTree = BroccoliDebug.buildDebugCallback(`test:${this.name}`);
    return debugTree(tree, 'treeFor');
  }
};

command executed is BROCCOLI_DEBUG=test:* ember b

Any clues what I'm doing wrong here or how I could find the original error?

Embroider compat?

Is broccoli-debug working with Embroider?

Using return new BroccoliDebug(inputNode, "foo:bar"); in one of the treeForX addon methods used to produce DEBUG/foo/bar directories when running BROCCOLI_DEBUG=* yarn build on a classic build, but these DEBUG directories do not exist anymore under an embroider build…

Troubles getting things to work.

Hello,

I'm having a problem getting this plugin to work and I'm not sure if user error or something else.
I'm running my Brocfile.js with the latest version of broccoli.js and I'm not getting any DEBUG output in my project root (or anywhere for that matter).

Versions being used:

"broccoli": "^1.1.4",
"broccoli-debug": "^0.6.4",
"broccoli-funnel": "^2.0.1",

Inside my Brocfile.js

const Funnel = require('broccoli-funnel');

const source = '.';
const foo = Funnel(source, {
    srcDir: 'js',
    destDir: 'some_js',
    annotation: 'Testing Things'
});

let debugTree = Debug.buildDebugCallback(`foo:${this.name}`)
let tree = debugTree(foo, 'templates:equipment');

...

Command I'm running:
BROCCOLI_DEBUG=foo:* broccoli build ../test-static

Thanks for your time :)

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.