8000 Bug: single run mode ignores the debugLevel flag · Issue #5887 · typescript-eslint/typescript-eslint · GitHub
[go: up one dir, main page]

Skip to content

Bug: single run mode ignores the debugLevel flag #5887

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

Closed
4 tasks done
bradzacher opened this issue Oct 26, 2022 · 1 comment
Closed
4 tasks done

Bug: single run mode ignores the debugLevel flag #5887

bradzacher opened this issue Oct 26, 2022 · 1 comment
Labels
accepting prs Go ahead, send a pull request that resolves this issue bug Something isn't working package: typescript-estree Issues related to @typescript-eslint/typescript-estree

Comments

@bradzacher
Copy link
Member
bradzacher commented Oct 26, 2022

Before You File a Bug Report Please Confirm You Have Done The Following...

  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I have searched for related issues and found none that matched my issue.
  • I have read the FAQ and my problem is not listed.

In normal type-aware mode we pass a special set of compiler options to our program which allows us to turn on TS debug logging.

Call:
https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-estree/src/create-program/createWatchProgram.ts#L265

Utility:
https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-estree/src/create-program/shared.ts#L36-L47

But in single run mode we don't use our util, so we don't turn on debug logging when we should:
https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-estree/src/create-program/useProvidedPrograms.ts#L66

ESLint Config

module.exports = {
  parser: "@typescript-eslint/parser",
  parserOptions: {
    debugLevel: ['typescript'],
  },
};
@bradzacher bradzacher added bug Something isn't working package: typescript-estree Issues related to @typescript-eslint/typescript-estree accepting prs Go ahead, send a pull request that resolves this issue labels Oct 26, 2022
@bradzacher
Copy link
Member Author

turns out this doesn't matter - TS doesn't actually log anything unless you're using the watch host.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
accepting prs Go ahead, send a pull request that resolves this issue bug Something isn't working package: typescript-estree Issues related to @typescript-eslint/typescript-estree
Projects
None yet
Development

No branches or pull requests

1 participant
0