-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Replace disk path operations to use fileNames instead of path #56476
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
Conversation
c7f6b45
to
3cc03d4
Compare
@gluxon can you please try this build and see if this helps |
@typescript-bot pack this |
Heya @sheetalkamat, I've started to run the tarball bundle task on this PR at 3cc03d4. You can monitor the build here. |
Hey @sheetalkamat, I've packed this into an installable tgz. You can install it for testing by referencing it in your
and then running There is also a playground for this build and an npm module you can use via |
@typescript-bot test this |
Heya @sheetalkamat, I've started to run the diff-based top-repos suite (tsserver) on this PR at 3cc03d4. You can monitor the build here. Update: The results are in! |
Heya @sheetalkamat, I've started to run the diff-based top-repos suite on this PR at 3cc03d4. You can monitor the build here. Update: The results are in! |
Heya @sheetalkamat, I've started to run the diff-based user code test suite on this PR at 3cc03d4. You can monitor the build here. Update: The results are in! |
Heya @sheetalkamat, I've started to run the diff-based user code test suite (tsserver) on this PR at 3cc03d4. You can monitor the build here. Update: The results are in! |
Heya @sheetalkamat, I've started to run the parallelized Definitely Typed test suite on this PR at 3cc03d4. You can monitor the build here. Update: The results are in! |
Heya @sheetalkamat, I've started to run the regular perf test suite on this PR at 3cc03d4. You can monitor the build here. Update: The results are in! |
@sheetalkamat Here they are:
CompilerComparison Report - baseline..pr
System info unknown
Hosts
Scenarios
tsserverComparison Report - baseline..pr
System info unknown
Hosts
Scenarios
StartupComparison Report - baseline..pr
System info unknown
Hosts
Scenarios
Developer Information: |
@sheetalkamat Here are the results of running the user test suite comparing Everything looks good! |
@sheetalkamat Here are the results of running the user test suite comparing There were infrastructure failures potentially unrelated to your change:
Otherwise... Something interesting changed - please have a look. Details
|
Hey @sheetalkamat, the results of running the DT tests are ready. |
@sheetalkamat Here are the results of running the top-repos suite comparing Everything looks good! |
@sheetalkamat Here are the results of running the top-repos suite comparing Something interesting changed - please have a look. DetailsServer exited prematurely with code unknown and signal SIGABRT
Affected reposcalcom/cal.comRaw error text:RepoResults7/calcom.cal.com.rawError.txt in the artifact folder
Last few requests{"seq":941,"type":"request","command":"navto","arguments":{"searchValue":"a1R","maxResultCount":256}}
{"seq":942,"type":"request","command":"updateOpen","arguments":{"changedFiles":[{"fileName":"@PROJECT_ROOT@/apps/swagger/pages/_app.tsx","textChanges":[{"newText":" //comment","start":{"line":1,"offset":42},"end":{"line":1,"offset":42}}]}],"closedFiles":[],"openFiles":[]}}
{"seq":943,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":["@PROJECT_ROOT@/apps/api/test/lib/middleware/withMiddleware.test.ts"],"openFiles":[]}}
{"seq":944,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"@PROJECT_ROOT@/apps/web/components/apps/AdditionalCalendarSelector.tsx","projectRootPath":"@PROJECT_ROOT@"}]}}
Repro steps
|
@typescript-bot perf test this |
Heya @sheetalkamat, I've started to run the regular perf test suite on this PR at 5468827. You can monitor the build here. Update: The results are in! |
@sheetalkamat Here they are:
CompilerComparison Report - baseline..pr
System info unknown
Hosts
Scenarios
tsserverComparison Report - baseline..pr
System info unknown
Hosts
Scenarios
StartupComparison Report - baseline..pr
System info unknown
Hosts
Scenarios
Developer Information: |
5468827
to
aed1e9b
Compare
@typescript-bot perf test this |
Heya @sheetalkamat, I've started to run the regular perf test suite on this PR at aed1e9b. You can monitor the build here. Update: The results are in! |
@sheetalkamat Here they are:
CompilerComparison Report - baseline..pr
System info unknown
Hosts
Scenarios
tsserverComparison Report - baseline..pr
System info unknown
Hosts
Scenarios
StartupComparison Report - baseline..pr
System info unknown
Hosts
Scenarios
Developer Information: |
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.
I’m sure it would be incredibly disruptive, but it kind of feels like we would benefit from a FileName
branded string type like Path
so that a Path
can’t be passed to a function that needs the name of an existing file with original casing.
We have this somewhat in server with normalized path but not in absolute path and we probably want that distinction as well .. but that’s too much |
Co-authored-by: Andrew Branch <[email protected]>
#55427 reported that the new files are not detected and per @gluxon investigation it turned out that the case was when tsserver was on case-insensitive volume while the user code was on the case sensitive volume. While changing complete architecture of
useCaseSensitive
andgetCanonicalName
is huge change that needs to percolate everywhere, trying to use file names in all the host operations and using canonical path for comparing (though that's not perfect andbar.ts
andBar.ts
will be treated as same file) is minimal change that can help with some of the scenarios. While you may get wrong casing in say some of the auto imports but at least you should getcompletions
etc just like when you open tsserver.