-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linting fails with infinite loop #5
Comments
I should mention, this is a massive project with hundreds of components and supporting JS files. Is there a legit memory leak somewhere in the plugin code? |
It's possible, but that message doesn't necessarily indicate it. It's used in the Vuetify monorepo with >800 components without a problem. Oh yeah I'm assuming you're using the latest versions of eslint and eslint-plugin-vue too ofc. |
@KaelWD alrigth so I upgraded that stuff and ran the Here is the output:
|
What's interesting is the lint rules actually do get checked and correctly error, way up in the terminal output. I output it to a file and I can see them all. However, when I try to run the command with the --fix command, the JS heap overflows. Do I need to specify anything to use the local version of For the record, this is what I'm seeing when I try to run
|
Looks potentially related to this? vuejs/eslint-plugin-vue#929 |
Question: what version of Node are you running? I'm starting to suspect those warnings don't really have anything to do with the underlying problem. At least not directly. The key is I can't run --fix. The linting does indeed run. I verified in our CI environment where all the output is available. The warnings just look like noise. |
Confirmed: Those are just noise. The OOM failure was because I needed to allot some more to the node runtime. I guess including the vuetify eslint plugin pushed it over the edge. Once I did that, the |
Ah righto that's a bit of a mess. I can run a memory profile and see if I'm doing something dumb to cause the OOM. |
I think I'm experiencing this issue too, though my error message is slightly different: yarn lint
yarn run v1.16.0
$ vue-cli-service lint
DONE No lint errors found!
(node:5960) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 VElement listeners added. Use emitter.setMaxListeners() to increase limit
(displayed x 12 times)
Done in 6.72s. There's no error when |
You can safely ignore that one, it doesn't affect anything. |
This comment has been minimized.
This comment has been minimized.
i have a similar problem. If i delete 'vue/html-indent': ['error', 2] - the problem is being solved |
Again, the MaxListenersExceededWarning can be safely ignored. |
I was hoping the next few beta releases would resolve this, however beta.3 doesn't seem to do it. When I add the plugin to my eslint config, I'm getting a loop of the following error until it fails:
the eslintrc.js file looks like this:
Are one of the other rules interfering with it?
The text was updated successfully, but these errors were encountered: