ember-cli/ember-cli-test-loader

The Broccoli Plugin: [Funnel: Funnel (testLoader)] failed

mcm-ham opened this issue ยท 11 comments

I get the following error on Windows with 1.0.0 and 1.1.0, it works fine with 0.2.2. It may be related to broccolijs/broccoli-funnel#53

The Broccoli Plugin: [Funnel: Funnel (testLoader)] failed with:
Error: ENOENT: no such file or directory, lstat 'E:\Michael\Workspace\stock.goodcity\bower_components\ember-cli-test-loader\test-loader.js'
  at Error (native)
  at Object.fs.lstatSync (fs.js:839:18)
  at Object.realpathSync (fs.js:1439:21)
  at symlinkWindows (E:\Michael\Workspace\stock.goodcity\node_modules\symlink-or-copy\index.js:87:26)
  at Function.symlinkOrCopySync [as sync] (E:\Michael\Workspace\stock.goodcity\node_modules\symlink-or-copy\index.js:56:5)
  at Funnel._copy (E:\Michael\Workspace\stock.goodcity\node_modules\broccoli-funnel\index.js:398:19)
  at Funnel.processFile (E:\Michael\Workspace\stock.goodcity\node_modules\broccoli-funnel\index.js:381:8)
  at Funnel.applyPatch [as _applyPatch] (E:\Michael\Workspace\stock.goodcity\node_modules\broccoli-funnel\index.js:298:12)
  at Funnel.<anonymous> (E:\Michael\Workspace\stock.goodcity\node_modules\broccoli-funnel\index.js:250:10)
  at Array.forEach (native)
  at Funnel.processFilters (E:\Michael\Workspace\stock.goodcity\node_modules\broccoli-funnel\index.js:249:9)
  at Funnel.build (E:\Michael\Workspace\stock.goodcity\node_modules\broccoli-funnel\index.js:172:10)
  at E:\Michael\Workspace\stock.goodcity\node_modules\broccoli-plugin\read_compat.js:61:34
  at lib$rsvp$$internal$$tryCatch (E:\Michael\Workspace\stock.goodcity\node_modules\rsvp\dist\rsvp.js:493:16)
  at lib$rsvp$$internal$$invokeCallback (E:\Michael\Workspace\stock.goodcity\node_modules\rsvp\dist\rsvp.js:505:17)
  at lib$rsvp$$internal$$publish (E:\Michael\Workspace\stock.goodcity\node_modules\rsvp\dist\rsvp.js:476:11)
  at lib$rsvp$asap$$flush (E:\Michael\Workspace\stock.goodcity\node_modules\rsvp\dist\rsvp.js:1198:9)
  at nextTickCallbackWith0Args (node.js:420:9)
  at process._tickCallback (node.js:349:13)


The broccoli plugin was instantiated at:
  at Funnel.Plugin (E:\Michael\Workspace\stock.goodcity\node_modules\broccoli-plugin\index.js:7:31)
  at new Funnel (E:\Michael\Workspace\stock.goodcity\node_modules\broccoli-funnel\index.js:44:10)
  at EmberApp.testFiles (E:\Michael\Workspace\stock.goodcity\node_modules\ember-cli\lib\broccoli\ember-app.js:1367:20)
  at EmberApp.test (E:\Michael\Workspace\stock.goodcity\node_modules\ember-cli\lib\broccoli\ember-app.js:1073:28)
  at EmberApp.toArray (E:\Michael\Workspace\stock.goodcity\node_modules\ember-cli\lib\broccoli\ember-app.js:1571:61)
  at EmberApp.toTree (E:\Michael\Workspace\stock.goodcity\node_modules\ember-cli\lib\broccoli\ember-app.js:1586:30)
  at module.exports (E:\Michael\Workspace\stock.goodcity\ember-cli-build.js:32:14)
  at Class.module.exports.Task.extend.setupBroccoliBuilder (E:\Michael\Workspace\stock.goodcity\node_modules\ember-cli\lib\models\builder.js:55:19)
  at Class.module.exports.Task.extend.init (E:\Michael\Workspace\stock.goodcity\node_modules\ember-cli\lib\models\builder.js:89:10)
  at new Class (E:\Michael\Workspace\stock.goodcity\node_modules\core-object\core-object.js:18:12)
  at Class.module.exports.Task.extend.run (E:\Michael\Workspace\stock.goodcity\node_modules\ember-cli\lib\tasks\serve.js:15:19)
  at E:\Michael\Workspace\stock.goodcity\node_modules\ember-cli\lib\commands\serve.js:64:24
  at lib$rsvp$$internal$$tryCatch (E:\Michael\Workspace\stock.goodcity\node_modules\rsvp\dist\rsvp.js:493:16)
  at lib$rsvp$$internal$$invokeCallback (E:\Michael\Workspace\stock.goodcity\node_modules\rsvp\dist\rsvp.js:505:17)
  at lib$rsvp$$internal$$publish (E:\Michael\Workspace\stock.goodcity\node_modules\rsvp\dist\rsvp.js:476:11)
  at lib$rsvp$asap$$flush (E:\Michael\Workspace\stock.goodcity\node_modules\rsvp\dist\rsvp.js:1198:9)
  at nextTickCallbackWith0Args (node.js:420:9)
  at process._tickCallback (node.js:349:13)

I get this locally on a Mac as well while trying to bump the version on the Travis web client to 1.1.0. I created a branch to help reproduce and here is the broken Travis build showing a similar stacktrace.

So this doesn't appear to be OS-specific.

+1 im getting this

As of 1.0.0, ember-cli-test-loader is now an NPM module instead of a Bower package. Unfortunately, Ember-CLI currently assumes that ember-cli-test-loader is a Bower package, which is why you see the error you are seeing.

A fix has been submitted and should be available for use in the next Ember-CLI release.

Right, basically, use 0.2.x until you upgrade to ember-cli@2.7 or later

Cool, thanks for the clarification. Can #20 be merged then so others don't hit this?

I am using ember-cli@2.7, added ember-cli-test-loader as an NPM module and removed the Bower package. I'm still seeing this error.

The Broccoli Plugin: [Funnel] failed with:
Error: ENOENT: no such file or directory, lstat '/Users/stevejobs/Documents/projects/vps/ice-frontend/tmp/funnel-input_base_path-VYat3sap.tmp/0/assets/test-loader.js'
  at Error (native)
  at Object.fs.lstatSync (fs.js:976:18)
  at symlink (/Users/stevejobs/Documents/projects/vps/ice-frontend/node_modules/symlink-or-copy/index.js:60:26)
  at Function.symlinkOrCopySync [as sync] (/Users/stevejobs/Documents/projects/vps/ice-frontend/node_modules/symlink-or-copy/index.js:55:5)
  at Funnel._copy (/Users/stevejobs/Documents/projects/vps/ice-frontend/node_modules/broccoli-funnel/index.js:393:19)
  at Funnel.processFile (/Users/stevejobs/Documents/projects/vps/ice-frontend/node_modules/broccoli-funnel/index.js:376:8)
  at Funnel.applyPatch [as _applyPatch] (/Users/stevejobs/Documents/projects/vps/ice-frontend/node_modules/broccoli-funnel/index.js:293:12)
  at Funnel.<anonymous> (/Users/stevejobs/Documents/projects/vps/ice-frontend/node_modules/broccoli-funnel/index.js:248:10)
  at Array.forEach (native)
  at Funnel.processFilters (/Users/stevejobs/Documents/projects/vps/ice-frontend/node_modules/broccoli-funnel/index.js:247:9)
  at Funnel.build (/Users/stevejobs/Documents/projects/vps/ice-frontend/node_modules/broccoli-funnel/index.js:172:10)
  at /Users/stevejobs/Documents/projects/vps/ice-frontend/node_modules/broccoli-plugin/read_compat.js:61:34
  at lib$rsvp$$internal$$tryCatch (/Users/stevejobs/Documents/projects/vps/ice-frontend/node_modules/rsvp/dist/rsvp.js:1036:16)
  at lib$rsvp$$internal$$invokeCallback (/Users/stevejobs/Documents/projects/vps/ice-frontend/node_modules/rsvp/dist/rsvp.js:1048:17)
  at lib$rsvp$$internal$$publish (/Users/stevejobs/Documents/projects/vps/ice-frontend/node_modules/rsvp/dist/rsvp.js:1019:11)
  at lib$rsvp$asap$$flush (/Users/stevejobs/Documents/projects/vps/ice-frontend/node_modules/rsvp/dist/rsvp.js:1198:9)
  at _combinedTickCallback (internal/process/next_tick.js:67:7)
  at process._tickCallback (internal/process/next_tick.js:98:9)


The broccoli plugin was instantiated at: 
  at Funnel.Plugin (/Users/stevejobs/Documents/projects/vps/ice-frontend/node_modules/broccoli-plugin/index.js:7:31)
  at new Funnel (/Users/stevejobs/Documents/projects/vps/ice-frontend/node_modules/broccoli-funnel/index.js:44:10)
  at CoreObject.module.exports.postprocessTree (/Users/stevejobs/Documents/projects/vps/ice-frontend/node_modules/ember-cli-blanket/index.js:79:28)
  at /Users/stevejobs/Documents/projects/vps/ice-frontend/node_modules/ember-cli/lib/broccoli/ember-app.js:541:27
  at Array.forEach (native)
  at EmberApp.addonPostprocessTree (/Users/stevejobs/Documents/projects/vps/ice-frontend/node_modules/ember-cli/lib/broccoli/ember-app.js:539:23)
  at EmberApp.toTree (/Users/stevejobs/Documents/projects/vps/ice-frontend/node_modules/ember-cli/lib/broccoli/ember-app.js:1631:15)
  at module.exports (/Users/stevejobs/Documents/projects/vps/ice-frontend/ember-cli-build.js:46:14)
  at CoreObject.module.exports.Task.extend.setupBroccoliBuilder (/Users/stevejobs/Documents/projects/vps/ice-frontend/node_modules/ember-cli/lib/models/builder.js:74:19)
  at CoreObject.module.exports.Task.extend.init (/Users/stevejobs/Documents/projects/vps/ice-frontend/node_modules/ember-cli/lib/models/builder.js:54:10)
  at CoreObject.superWrapper [as init] (/Users/stevejobs/Documents/projects/vps/ice-frontend/node_modules/core-object/lib/assign-properties.js:32:18)
  at CoreObject.Class (/Users/stevejobs/Documents/projects/vps/ice-frontend/node_modules/core-object/core-object.js:32:33)
  at CoreObject.module.exports.Task.extend.run (/Users/stevejobs/Documents/projects/vps/ice-frontend/node_modules/ember-cli/lib/tasks/serve.js:15:19)
  at /Users/stevejobs/Documents/projects/vps/ice-frontend/node_modules/ember-cli/lib/commands/serve.js:75:24
  at lib$rsvp$$internal$$tryCatch (/Users/stevejobs/Documents/projects/vps/ice-frontend/node_modules/rsvp/dist/rsvp.js:1036:16)
  at lib$rsvp$$internal$$invokeCallback (/Users/stevejobs/Documents/projects/vps/ice-frontend/node_modules/rsvp/dist/rsvp.js:1048:17)
  at /Users/stevejobs/Documents/projects/vps/ice-frontend/node_modules/rsvp/dist/rsvp.js:331:11
  at lib$rsvp$asap$$flush (/Users/stevejobs/Documents/projects/vps/ice-frontend/node_modules/rsvp/dist/rsvp.js:1198:9)
  at _combinedTickCallback (internal/process/next_tick.js:67:7)
  at process._tickCallback (internal/process/next_tick.js:98:9)

Just found out that ember-cli-blanket we one that was breaking the app. I removed it and it's working again.

I am getting this error , not sure it is same.

The Broccoli Plugin: [Funnel: Funnel (test index)] failed with:
Error: ENOENT: no such file or directory,

But i do not have ember-cli-blanket . it happesn out of the blue. only redemy is deleting whole app and rebuilding from scratch.

Delete the tests folder that's automatically created on build. That fixed it for me. And you can always regenerate if you use the tests.

@downzer0 thanks a lot , i will try!

vsg24 commented

@downzer0 That worked for me as well.