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.

Support async processing

See original GitHub issue

Subject of the issue

eslint-mdx uses .processSync instead of .process, causing async plugins to fail.

Error: `processSync` finished async. Use `process` instead
Occurred while linting /Users/tilde/Code/oss/mdx/packages/remark-mdx/readme.md:1
    at assertDone (/Users/tilde/Code/oss/mdx/node_modules/unified/index.js:469:11)
    at Function.processSync (/Users/tilde/Code/oss/mdx/node_modules/unified/index.js:401:5)
    at Program (/Users/tilde/Code/oss/mdx/node_modules/eslint-plugin-mdx/lib/cjs.js:361:44)
    at /Users/tilde/Code/oss/mdx/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/Users/tilde/Code/oss/mdx/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/Users/tilde/Code/oss/mdx/node_modules/eslint/lib/linter/node-event-generator.js:254:26)
    at NodeEventGenerator.applySelectors (/Users/tilde/Code/oss/mdx/node_modules/eslint/lib/linter/node-event-generator.js:283:22)
    at NodeEventGenerator.enterNode (/Users/tilde/Code/oss/mdx/node_modules/eslint/lib/linter/node-event-generator.js:297:14)
    at CodePathAnalyzer.enterNode (/Users/tilde/Code/oss/mdx/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:634:23)

Your environment

  • OS: osx latest
  • Packages:
  • Env: node 13.10, 6.14, yarn 1.22

Steps to reproduce

yarn format in mdx-js/mdx (with changes on a branch)

Expected behaviour

Support async plugins: https://github.com/mdx-js/eslint-mdx/blob/96fc83affd7f63d52d6b7fce6c15816e9a034a6b/packages/eslint-plugin-mdx/src/rules/remark.ts#L40

Actual behaviour

Crash.


P.S. aside: you may be interested in vfile-to-eslint

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
JounQincommented, Feb 21, 2021

Cannot do much before ESLint changes.

0reactions
JounQincommented, Apr 29, 2021

v1.13.0 has been released!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Asynchronous processing - Akamai TechDocs
The first change you'll see when using "async" is that async ensures that a function always returns a promise. Instead of having to...
Read more >
Introduction to Asynchronous Processing - Hookdeck
Asynchronous processing allows you to achieve parallel execution of client requests, while synchronous processing requests can only be processed ...
Read more >
17.12 Asynchronous Processing - Java Platform, Enterprise ...
The javax.servlet.AsyncContext class provides the functionality that you need to perform asynchronous processing inside service methods. To obtain an instance ...
Read more >
Asynchronous Request-Reply pattern - Azure - Microsoft Learn
Decouple backend processing from a frontend host, where backend processing needs to be asynchronous, but the frontend still needs a clear response.
Read more >
How To Do @Async in Spring - Baeldung
1. Overview · 2. Enable Async Support · 3. The @Async Annotation · 4. The Executor · 5. Exception Handling · 6. Conclusion....
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