ember-cli / ember-cli-update

Update Ember CLI projects
MIT License
278 stars 41 forks source link

File error: Error: EMFILE: too many open files, Could not load typescript aware parser, falling back to standard recast parser #548

Closed AdminDev826 closed 5 years ago

AdminDev826 commented 5 years ago

ember-cli-update --run-codemods

? These codemods apply to your project. Select which ones to run. ember-modules-codemod, ember-qunit-codemod, ember-test
-helpers-codemod, es5-getter-ember-codemod
npx: installed 305 in 111.394s
Skipping path addon which does not exist. 
Skipping path addon-test-support which does not exist. 
Skipping path test-support which does not exist. 
Skipping path lib which does not exist. 
Processing 8826 files... 
Spawning 1 workers...
Sending 8826 files to free worker...
 ERR app/routes/payables/recurring-item-text.js File error: Error: EMFILE: too many open files, open 'app/routes/payables/recurring-item-text.js'
 ERR app/routes/payables/recurring-item-texts.js File error: Error: EMFILE: too many open files, open 'app/routes/payables/recurring-item-texts.js'
…

Could not load typescript aware parser, falling back to standard recast parser...Could not load typescript aware parser, falling back to standard recast parser...
kellyselden commented 5 years ago

Hmm looks like one of the codemods has an issue. Can you narrow it down to which one?

AdminDev826 commented 5 years ago

Here is app/routes/payables/recurring-item-texts.js file.

import Route from '@ember/routing/route';
import { hash } from 'rsvp';

export default Route.extend({
  queryParams: {
    parent: {
      refreshModel: true,
    },
    parent_id: {
      refreshModel: true,
    },
  },
  model(params){
    return hash({
      recurringItemTexts: this.queryPaginated('payables.recurringItemText', params),
      parent: this.store.findRecord(`payables.${params.parent.camelize()}`, params.parent_id)
    });
  },

});
kellyselden commented 5 years ago

You ran ember-modules-codemod, ember-qunit-codemod, ember-test-helpers-codemod, es5-getter-ember-codemod codemods. One of those has a bug. You should try to narrow down which one it is.

rwjblue commented 5 years ago

@kellyselden - We could make that a bit easier by printing out which codemod we are running (possibly even the specific command) as we go.

kellyselden commented 5 years ago

@rwjblue Good idea. https://github.com/ember-cli/ember-cli-update/issues/555

AdminDev826 commented 5 years ago

ember-modules-codemod

kellyselden commented 5 years ago

Closing as it's an issue with an external codemod, but #555 will make it easier to know that.