GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Delay the calculation of common source root if it would be needed when calculation dts files by sheetalkamat · Pull Request #59070 · microsoft/TypeScript

Conversation

@sheetalkamat

@sheetalkamat Sheetal Nandi (sheetalkamat) commented Jun 28, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Also report error if it would be used (declarationDir is specified) just like we do with outDir

Fixes #58398 (comment)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Sheetal Nandi (sheetalkamat) added 2 commits June 28, 2024 13:19
@sheetalkamat
Add test
36ab792
@sheetalkamat
Delay the calculation of common source root if it would be needed whe…
a42081a
…n calculation dts files.

Also report error if it would be used (declarationDir is specified) just like we do with outDir
@typescript-bot TypeScript Bot (typescript-bot) assigned Sheetal Nandi (sheetalkamat) Jun 28, 2024
@typescript-bot TypeScript Bot (typescript-bot) added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Jun 28, 2024
@sheetalkamat
Sheetal Nandi (sheetalkamat) requested review from Andrew Branch (andrewbranch), Jake Bailey (jakebailey) and Wesley Wigham (weswigham) June 28, 2024 20:35
sheetalkamat
Sheetal Nandi (sheetalkamat) commented Jun 28, 2024
View reviewed changes
Comment thread ...tsserver/projects/synchronizeProjectList-provides-updates-to-redirect-info-when-requested.js
"body": {
"triggerFile": "/users/username/projects/project/A/tsconfig.json",
"configFile": "/users/username/projects/project/A/tsconfig.json",
"diagnostics": [

@sheetalkamat Sheetal Nandi (sheetalkamat) Jun 28, 2024

Copy link
Copy Markdown
Member Author

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.

This shows how this error was unnecessarily reported when it wont be used as the files are emitted next to source files

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
sheetalkamat
Sheetal Nandi (sheetalkamat) commented Jun 28, 2024
View reviewed changes
Comment thread src/testRunner/unittests/tsserver/projectErrors.ts
"/home/src/projects/project/src/tsconfig.json": jsonToReadableText({
compilerOptions: {
composite: true,
noEmit: true,

@sheetalkamat Sheetal Nandi (sheetalkamat) Jun 28, 2024

Copy link
Copy Markdown
Member Author

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.

We use to calculate common source dir and report error if OutDir, rootDir, mapRoot or sourceRoot were specified or files would be emitted. So if you had noEmit we wouldnt cache this and then when getting dts diagnostics it would crash because it was over eager (or didnt cache for declarationDir

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
jakebailey
Jake Bailey (jakebailey) approved these changes Jun 28, 2024
View reviewed changes
@sheetalkamat
Sheetal Nandi (sheetalkamat) merged commit 6c68fdd into main Jun 28, 2024
@sheetalkamat
Sheetal Nandi (sheetalkamat) deleted the lazyDiagnosticsIssue branch June 28, 2024 21:29
@sheetalkamat

Sheetal Nandi (sheetalkamat) commented Jun 28, 2024

Copy link
Copy Markdown
Member Author

TypeScript Bot (@typescript-bot) cherry-pick this to release-5.5

typescript-bot reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@typescript-bot

TypeScript Bot (typescript-bot) commented Jun 28, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Starting jobs; this comment will be updated as builds start and complete.

Command Status Results
cherry-pick this to release-5.5 ✅ Started ✅ Results
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

TypeScript Bot (typescript-bot) pushed a commit that referenced this pull request Jun 28, 2024
@sheetalkamat @typescript-bot
Delay the calculation of common source root if it would be needed whe…
0decb2a
…n calculation dts files (#59070)
@typescript-bot TypeScript Bot (typescript-bot) mentioned this pull request Jun 28, 2024
🤖 Pick PR #59070 (Delay the calculation of common sou...) into release-5.5 #59072
Merged
@typescript-bot

TypeScript Bot (typescript-bot) commented Jun 28, 2024

Copy link
Copy Markdown
Contributor

Hey, Sheetal Nandi (@sheetalkamat)! I've created #59072 for you.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sheetalkamat Sheetal Nandi (sheetalkamat) added this to the TypeScript 5.5.4 milestone Jul 10, 2024
Daniel Rosenwasser (DanielRosenwasser) pushed a commit that referenced this pull request Jul 17, 2024
TypeScript Bot @sheetalkamat
🤖 Pick PR #59070 (Delay the calculation of common sou...) into releas…
bf0ddaf
…e-5.5 (#59072)

Co-authored-by: Sheetal Nandi <[email protected]>
@sandersn Nathan Shively-Sanders (sandersn) removed this from PR Backlog Apr 22, 2025
@microsoft Microsoft (microsoft) locked as resolved and limited conversation to collaborators Oct 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@jakebailey Jake Bailey (jakebailey) jakebailey approved these changes
@weswigham Wesley Wigham (weswigham) Awaiting requested review from weswigham
@andrewbranch Andrew Branch (andrewbranch) Awaiting requested review from andrewbranch

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@sheetalkamat Sheetal Nandi (sheetalkamat)

Labels

Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

None yet

Milestone

TypeScript 5.5.4

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@sheetalkamat @typescript-bot @jakebailey
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.