Skip to content
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

fix(typescript-estree): fix persisted parse for relative paths #1424

Merged
merged 10 commits into from Jan 12, 2020
Merged

fix(typescript-estree): fix persisted parse for relative paths #1424

merged 10 commits into from Jan 12, 2020

Conversation

armano2
Copy link
Member

@armano2 armano2 commented Jan 10, 2020

Issue #1303 seams to be related to resolution of relative paths in watch part of persisted parse.

Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.
The file does not match your project config: src\bar.ts.
The file must be included in at least one of the projects provided.

its possible that this is different unrelated issue

Tasks:

fixes #1303

@typescript-eslint

This comment has been minimized.

@armano2 armano2 changed the title fix(typescript-estree): fix persisted parse for vue files fix(typescript-estree): fix persisted parse for relative paths Jan 10, 2020
@codecov
Copy link

codecov bot commented Jan 10, 2020

Codecov Report

Merging #1424 into master will decrease coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #1424      +/-   ##
==========================================
- Coverage   94.45%   94.45%   -0.01%     
==========================================
  Files         142      142              
  Lines        6082     6081       -1     
  Branches     1727     1727              
==========================================
- Hits         5745     5744       -1     
  Misses        183      183              
  Partials      154      154
Impacted Files Coverage Δ
...pt-estree/src/create-program/createWatchProgram.ts 91.17% <ø> (-0.06%) ⬇️
...ages/eslint-plugin/src/rules/default-param-last.ts 100% <100%> (ø) ⬆️
packages/eslint-plugin/src/rules/index.ts 100% <100%> (ø) ⬆️

@@ -11,6 +11,7 @@ import { createSourceFile } from './create-program/createSourceFile';
import { Extra, TSESTreeOptions, ParserServices } from './parser-options';
import { getFirstSemanticOrSyntacticError } from './semantic-or-syntactic-errors';
import { TSESTree } from './ts-estree';
import { ensureAbsolutePath } from './create-program/shared';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't like this, maybe i should move it somewhere else

cb(current!, ts.FileWatcherEventKind.Changed);
});
hasCallback = true;
break;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removal of his line fixes issue with vscode, but i'm unable to test this

armano2 added a commit that referenced this pull request Jan 11, 2020
@armano2 armano2 self-assigned this Jan 12, 2020
@armano2 armano2 added bug Something isn't working package: typescript-estree Issues related to @typescript-eslint/typescript-estree labels Jan 12, 2020
Copy link
Member

@bradzacher bradzacher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thanks for working on this

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working package: typescript-estree Issues related to @typescript-eslint/typescript-estree
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Newly created Vue SFC File: Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser
2 participants