-
Notifications
You must be signed in to change notification settings - Fork 54
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
Upgrade to Volar 2.4.11 #784
Changes from 9 commits
dcbed77
134a4cd
09fbd10
baa942a
f36441a
7d797fe
fb21b17
318c404
06c33bb
b2d887a
7cb10db
2b808a4
ed03f60
15202e2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -466,8 +466,13 @@ describe('CLI: single-pass build mode typechecking', () => { | |
2 const A = 2 * C; | ||
~ | ||
|
||
src/index.gts:2:15 - error TS2307: Cannot find module '@glint-test/a' or its corresponding type declarations. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since the TS/Volar upgrade, there seems to be some internal changes in the build algorithm, producing more error messages than before if one of the subprojects fails to build. |
||
|
||
Found 1 error. | ||
2 import A from '@glint-test/a'; | ||
~~~~~~~~~~~~~~~ | ||
|
||
|
||
Found 2 errors. | ||
" | ||
`); | ||
|
||
|
@@ -573,8 +578,13 @@ describe('CLI: single-pass build mode typechecking', () => { | |
4 const A = <template>{{double C}}</template>; | ||
~ | ||
|
||
src/index.gts:2:15 - error TS2307: Cannot find module '@glint-test/a' or its corresponding type declarations. | ||
|
||
Found 1 error. | ||
2 import A from '@glint-test/a'; | ||
~~~~~~~~~~~~~~~ | ||
|
||
|
||
Found 2 errors. | ||
" | ||
`); | ||
|
||
|
@@ -702,8 +712,13 @@ describe('CLI: single-pass build mode typechecking', () => { | |
1 const B: number = 'ahoy'; | ||
~ | ||
|
||
src/index.gts:3:15 - error TS2307: Cannot find module '@glint-test/b' or its corresponding type declarations. | ||
|
||
Found 1 error. | ||
3 import B from '@glint-test/b'; | ||
~~~~~~~~~~~~~~~ | ||
|
||
|
||
Found 2 errors. | ||
" | ||
`); | ||
|
||
|
@@ -807,8 +822,13 @@ describe('CLI: single-pass build mode typechecking', () => { | |
2 const Usage = <template>{{double "hello"}}</template>; | ||
~~~~~~~ | ||
|
||
src/index.gts:3:15 - error TS2307: Cannot find module '@glint-test/b' or its corresponding type declarations. | ||
|
||
Found 1 error. | ||
3 import B from '@glint-test/b'; | ||
~~~~~~~~~~~~~~~ | ||
|
||
|
||
Found 2 errors. | ||
" | ||
`); | ||
|
||
|
@@ -895,8 +915,18 @@ describe('CLI: single-pass build mode typechecking', () => { | |
1 const C: number = 'world'; | ||
~ | ||
|
||
../a/src/index.gts:1:15 - error TS2307: Cannot find module '@glint-test/c' or its corresponding type declarations. | ||
|
||
Found 1 error. | ||
1 import C from '@glint-test/c'; | ||
~~~~~~~~~~~~~~~ | ||
|
||
src/index.gts:2:15 - error TS2307: Cannot find module '@glint-test/a' or its corresponding type declarations. | ||
|
||
2 import A from '@glint-test/a'; | ||
~~~~~~~~~~~~~~~ | ||
|
||
|
||
Found 3 errors. | ||
" | ||
`); | ||
|
||
|
@@ -915,8 +945,13 @@ describe('CLI: single-pass build mode typechecking', () => { | |
1 const C: number = 'world'; | ||
~ | ||
|
||
src/index.gts:1:15 - error TS2307: Cannot find module '@glint-test/c' or its corresponding type declarations. | ||
|
||
Found 1 error. | ||
1 import C from '@glint-test/c'; | ||
~~~~~~~~~~~~~~~ | ||
|
||
|
||
Found 2 errors. | ||
" | ||
`); | ||
|
||
|
@@ -1040,8 +1075,18 @@ describe('CLI: single-pass build mode typechecking', () => { | |
2 const useDouble = <template>{{double "hello"}}</template>; | ||
~~~~~~~ | ||
|
||
../a/src/index.gts:1:15 - error TS2307: Cannot find module '@glint-test/c' or its corresponding type declarations. | ||
|
||
Found 1 error. | ||
1 import C from '@glint-test/c'; | ||
~~~~~~~~~~~~~~~ | ||
|
||
src/index.gts:2:15 - error TS2307: Cannot find module '@glint-test/a' or its corresponding type declarations. | ||
|
||
2 import A from '@glint-test/a'; | ||
~~~~~~~~~~~~~~~ | ||
|
||
|
||
Found 3 errors. | ||
" | ||
`); | ||
|
||
|
@@ -1060,8 +1105,13 @@ describe('CLI: single-pass build mode typechecking', () => { | |
2 const useDouble = <template>{{double "hello"}}</template>; | ||
~~~~~~~ | ||
|
||
src/index.gts:1:15 - error TS2307: Cannot find module '@glint-test/c' or its corresponding type declarations. | ||
|
||
Found 1 error. | ||
1 import C from '@glint-test/c'; | ||
~~~~~~~~~~~~~~~ | ||
|
||
|
||
Found 2 errors. | ||
" | ||
`); | ||
|
||
|
@@ -1614,7 +1664,7 @@ describe('CLI: --build --dry', () => { | |
let buildResult = await projects.root.buildDeclaration({ flags: ['--dry'] }); | ||
expect(buildResult.exitCode).toBe(0); | ||
expect(stripAnsi(buildResult.stdout)).toMatch( | ||
`A non-dry build would build project '${projects.main.filePath('tsconfig.json')}'`, | ||
` A non-dry build would update timestamps for output of project '${projects.main.filePath('tsconfig.json')}'`, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This also seems to be a change/optimization within TSC that's smart enough to realize root project would have no changed output and hence would only update timestamps (?) |
||
); | ||
expect(stripAnsi(buildResult.stdout)).toMatch( | ||
`A non-dry build would build project '${projects.children.a.filePath('tsconfig.json')}'`, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -583,7 +583,24 @@ describe('Language Server: Diagnostic Augmentation', () => { | |
"line": 10, | ||
}, | ||
}, | ||
"relatedInformation": [], | ||
"relatedInformation": [ | ||
{ | ||
"location": { | ||
"range": { | ||
"end": { | ||
"character": 83, | ||
"line": 18, | ||
}, | ||
"start": { | ||
"character": 69, | ||
"line": 18, | ||
}, | ||
}, | ||
"uri": "file:///PATH_TO_MODULE/@glint/template/-private/integration.d.ts", | ||
}, | ||
"message": "'[InvokeDirect]' is declared here.", | ||
}, | ||
], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This additional snapshotted data just means that Volar has since enhanced the metadata provided on each diagnostic, e.g. you should start to see more "SYMBOL is declared here" messages with links to the declaration source. |
||
"severity": 1, | ||
"source": "glint", | ||
}, | ||
|
@@ -612,7 +629,24 @@ describe('Language Server: Diagnostic Augmentation', () => { | |
"line": 11, | ||
}, | ||
}, | ||
"relatedInformation": [], | ||
"relatedInformation": [ | ||
{ | ||
"location": { | ||
"range": { | ||
"end": { | ||
"character": 83, | ||
"line": 18, | ||
}, | ||
"start": { | ||
"character": 69, | ||
"line": 18, | ||
}, | ||
}, | ||
"uri": "file:///PATH_TO_MODULE/@glint/template/-private/integration.d.ts", | ||
}, | ||
"message": "'[InvokeDirect]' is declared here.", | ||
}, | ||
], | ||
"severity": 1, | ||
"source": "glint", | ||
}, | ||
|
@@ -641,7 +675,24 @@ describe('Language Server: Diagnostic Augmentation', () => { | |
"line": 12, | ||
}, | ||
}, | ||
"relatedInformation": [], | ||
"relatedInformation": [ | ||
{ | ||
"location": { | ||
"range": { | ||
"end": { | ||
"character": 83, | ||
"line": 18, | ||
}, | ||
"start": { | ||
"character": 69, | ||
"line": 18, | ||
}, | ||
}, | ||
"uri": "file:///PATH_TO_MODULE/@glint/template/-private/integration.d.ts", | ||
}, | ||
"message": "'[InvokeDirect]' is declared here.", | ||
}, | ||
], | ||
"severity": 1, | ||
"source": "glint", | ||
}, | ||
|
@@ -670,7 +721,24 @@ describe('Language Server: Diagnostic Augmentation', () => { | |
"line": 14, | ||
}, | ||
}, | ||
"relatedInformation": [], | ||
"relatedInformation": [ | ||
{ | ||
"location": { | ||
"range": { | ||
"end": { | ||
"character": 83, | ||
"line": 18, | ||
}, | ||
"start": { | ||
"character": 69, | ||
"line": 18, | ||
}, | ||
}, | ||
"uri": "file:///PATH_TO_MODULE/@glint/template/-private/integration.d.ts", | ||
}, | ||
"message": "'[InvokeDirect]' is declared here.", | ||
}, | ||
], | ||
"severity": 1, | ||
"source": "glint", | ||
}, | ||
|
@@ -699,7 +767,24 @@ describe('Language Server: Diagnostic Augmentation', () => { | |
"line": 15, | ||
}, | ||
}, | ||
"relatedInformation": [], | ||
"relatedInformation": [ | ||
{ | ||
"location": { | ||
"range": { | ||
"end": { | ||
"character": 83, | ||
"line": 18, | ||
}, | ||
"start": { | ||
"character": 69, | ||
"line": 18, | ||
}, | ||
}, | ||
"uri": "file:///PATH_TO_MODULE/@glint/template/-private/integration.d.ts", | ||
}, | ||
"message": "'[InvokeDirect]' is declared here.", | ||
}, | ||
], | ||
"severity": 1, | ||
"source": "glint", | ||
}, | ||
|
@@ -728,7 +813,24 @@ describe('Language Server: Diagnostic Augmentation', () => { | |
"line": 16, | ||
}, | ||
}, | ||
"relatedInformation": [], | ||
"relatedInformation": [ | ||
{ | ||
"location": { | ||
"range": { | ||
"end": { | ||
"character": 83, | ||
"line": 18, | ||
}, | ||
"start": { | ||
"character": 69, | ||
"line": 18, | ||
}, | ||
}, | ||
"uri": "file:///PATH_TO_MODULE/@glint/template/-private/integration.d.ts", | ||
}, | ||
"message": "'[InvokeDirect]' is declared here.", | ||
}, | ||
], | ||
"severity": 1, | ||
"source": "glint", | ||
}, | ||
|
@@ -757,7 +859,24 @@ describe('Language Server: Diagnostic Augmentation', () => { | |
"line": 17, | ||
}, | ||
}, | ||
"relatedInformation": [], | ||
"relatedInformation": [ | ||
{ | ||
"location": { | ||
"range": { | ||
"end": { | ||
"character": 83, | ||
"line": 18, | ||
}, | ||
"start": { | ||
"character": 69, | ||
"line": 18, | ||
}, | ||
}, | ||
"uri": "file:///PATH_TO_MODULE/@glint/template/-private/integration.d.ts", | ||
}, | ||
"message": "'[InvokeDirect]' is declared here.", | ||
}, | ||
], | ||
"severity": 1, | ||
"source": "glint", | ||
}, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Volar hugs TS pretty closely; this was necessary due to output lib code referencing SetIterator which is new to TS 5.6. Perhaps at some point we might need some upstream tweaks to make a little room for older Ember apps that are tied to older TS?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe eventually, but TS support and ember support aren't so tied together, so our flexibility here is pretty good -- like older embers can use 5.6 just fine (older = > 5.1, because we're not messing with DT ever)