-
Notifications
You must be signed in to change notification settings - Fork 3
Bug: Linter doesn't pick up node_modules changes #19
Comments
This is supposed to work because we clear the instance cache whenever we detect a change to an |
This one is working for me. I'm stumped. My attempt to reproduce it:
I'm using linter-eslint-node version 1.0.5 on macOS. Only thing I can think of is this: is your config named This also might be an error that doesn't happen in the general case, but rather because of some confluence of conditions that my test case isn't meeting. Are there any further details about the error in the console? |
Thinking about this, I wonder if my STR are slightly wrong. I'm thinking that what I've actually been doing is to apply a patch or switch to a branch which updates |
We're using Project#onDidChangeFiles here, so it ought to detect any filesystem changes underneath the project directory. It's not dependent on whether the change to I specifically had to put in a guard to prevent it from reacting to |
Is there any delay / de-bouncing on when the reload is triggered? mozilla-central is quite a large repo, and I just tried changing branches (across a .eslintrc.js change) and got three In the developer tools console, there were two of these messages:
I'm not sure it is strictly related to this issue, but seems relevant to the discussion. |
That's interesting to me because it's trying to write to stdout after a worker has been killed. I thought that I'd covered all those cases. I'm also not sure what would trigger the worker to get killed in this scenario; the cache can get cleared without needing to start a new worker. A guard before the write on this line would probably fix the proximate error, but it wouldn't solve the mystery. There is no delay or de-bounce when cache is being cleared, and I agree that there should be. (I'd wager that, in your case, this loop is clearing the cache more than once in quick succession in the case of a branch change.) But I can't say if that would fix this problem until I understand what's killing that worker. What I should definitely do is put in a hidden setting that would enable the verbose logging that otherwise is reserved for dev mode. |
I'm using multiple I disabled the cache, but I'm getting the same error: |
Issue Type
Bug
Issue Description
Actual Results:
Restarting Atom fixes the issue.
Expected results:
Either of:
Bug Checklist
eslint
CLI gives the proper result, whilelinter-eslint-node
does notLinter Eslint Node: Debug
command from the Command Palette belowThe text was updated successfully, but these errors were encountered: