question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug: cache doesn't invalidate on plugin version upgrade

See original GitHub issue

Environment

Node version: v16.15.1 npm version: N/A - using yarn Local ESLint version: 8.23.0 Global ESLint version: no global eslint installed Operating System: MacOS 12.5.1

What parser are you using?

@babel/eslint-parser

What did you do?

I upgraded eslint-plugin-react from 7.37.1 to 7.37.7.

Due to new rules addition and the cache for the former version still being used, offenses for those new rules weren’t being reported.

My code contains the following:

const Componnent = () => {
  return <table>
    <thead>
      <th align="center">title</th>
    </thead>
  </table>
}

What did you expect to happen?

Offenses to be reported

What actually happened?

Nothing was reported

Participation

  • I am willing to submit a pull request for this issue.

Additional comments

Should be fixed by this PR: https://github.com/eslint/eslintrc/pull/88

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
nzakascommented, Sep 8, 2022

I think the only way we can guarantee this with the new config system is to ask plugin authors to include a version field in their plugin object, as we no longer know the package.json to read to get this info with the new config system.

0reactions
nzakascommented, Dec 9, 2022

The eslint core loads all plugins declared in the plugins array out of the node_modules, right?

No. What you’re looking at is the code that loads the plugins from the command line --plugin flag. That is not the standard way to load plugins. Please read the documentation for the new config system: https://eslint.org/docs/latest/user-guide/configuring/configuration-files-new

Read more comments on GitHub >

github_iconTop Results From Across the Web

Page Cache Purge Bug
Hi, To my understanding, page caches should NEVER be invalidated unless a purge policy is set or it is manually purged. However, this...
Read more >
Gradle build fails to recover from invalid cached library ...
I suspect the bug occurs because you upgrade your project from an older version of Android Studio/Android Gradle plugin/Gradle, then delete the AAR...
Read more >
WordPress Changes Not Showing? Here's How to Fix the ...
Having issues with WordPress changes not showing on your site? It's usually problems with caching - we'll show you how to fix the...
Read more >
Where could IntellijIDEA cache maven dependencies?
In the Invalidate Caches dialog, Click Invalidate and Restart . If you click Just restart , cache files won't be deleted. After the...
Read more >
How to clear Confluence plugins cache
To clear the Confluence plugins cache when it gets out of sync or ... (in recent Confluence versions, you may not see this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found