Skip to content

fix(52212): No member completions, and irrelevant value completions, when class property initializer has no semicolon #52213

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

Merged
merged 5 commits into from
Jan 13, 2023

Conversation

a-tarasyuk
Copy link
Contributor

Fixes #52212

@typescript-bot typescript-bot added the For Milestone Bug PRs that fix a bug with a specific milestone label Jan 12, 2023
@DanielRosenwasser
Copy link
Member

Merge conflict 😞

@a-tarasyuk a-tarasyuk requested review from gabritto and removed request for navya9singh January 13, 2023 17:37
@DanielRosenwasser
Copy link
Member

@typescript-bot pack this
@typescript-bot test tsserver top100

@typescript-bot
Copy link
Collaborator

typescript-bot commented Jan 13, 2023

Heya @DanielRosenwasser, I've started to run the tarball bundle task on this PR at 98e179d. You can monitor the build here.

@typescript-bot
Copy link
Collaborator

typescript-bot commented Jan 13, 2023

Heya @DanielRosenwasser, I've started to run the diff-based top-repos suite (tsserver) on this PR at 98e179d. You can monitor the build here.

Update: The results are in!

@typescript-bot
Copy link
Collaborator

typescript-bot commented Jan 13, 2023

Hey @DanielRosenwasser, I've packed this into an installable tgz. You can install it for testing by referencing it in your package.json like so:

{
    "devDependencies": {
        "typescript": "https://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_apis/build/builds/142612/artifacts?artifactName=tgz&fileId=EFAC133DB377D1A9C61D5516D807193EB04F2422D6625C1EE5CD3B9349F68E9A02&fileName=/typescript-5.0.0-insiders.20230113.tgz"
    }
}

and then running npm install.


There is also a playground for this build and an npm module you can use via "typescript": "npm:@typescript-deploys/[email protected]".;

@typescript-bot
Copy link
Collaborator

@DanielRosenwasser Here are the results of running the top-repos suite comparing main and refs/pull/52213/merge:

Something interesting changed - please have a look.

Details

felixrieseberg/windows95

⚠️ Note that built also had errors ⚠️
Req #252 - references
    at formatMessage2 (/typescript-main/built/local/tsserver.js:174242:21)
    at IOSession.writeMessage (/typescript-main/built/local/tsserver.js:175516:21)
    at IOSession.send (/typescript-main/built/local/tsserver.js:175513:10)
    at IOSession.doOutput (/typescript-main/built/local/tsserver.js:175569:10)
    at IOSession.onMessage (/typescript-main/built/local/tsserver.js:177347:14)
    at Interface.<anonymous> (/typescript-main/built/local/tsserver.js:178785:14)
Req #252 - references
    at formatMessage2 (/typescript-52213/built/local/tsserver.js:174242:21)
    at IOSession.writeMessage (/typescript-52213/built/local/tsserver.js:175516:21)
    at IOSession.send (/typescript-52213/built/local/tsserver.js:175513:10)
    at IOSession.doOutput (/typescript-52213/built/local/tsserver.js:175569:10)
    at IOSession.onMessage (/typescript-52213/built/local/tsserver.js:177347:14)
    at Interface.<anonymous> (/typescript-52213/built/local/tsserver.js:178785:14)

That is a filtered view of the text. To see the raw error text, go to RepoResults4/felixrieseberg.windows95.rawError.txt in the artifact folder

Last few requests

{"seq":249,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/src/renderer/lib/_libwabt.js","line":13,"offset":7419,"entryNames":["_"]}}
{"seq":250,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/src/renderer/lib/_libwabt.js","line":13,"offset":8454,"includeExternalModuleExports":false,"includeInsertTextCompletions":true,"triggerKind":1}}
{"seq":251,"type":"request","command":"completionEntryDetails","arguments":{"file":"@PROJECT_ROOT@/src/renderer/lib/_libwabt.js","line":13,"offset":8454,"entryNames":["_"]}}
{"seq":252,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/src/renderer/lib/_libwabt.js","line":13,"offset":8484}}

Repro Steps

  1. git clone https://github.com/felixrieseberg/windows95 --recurse-submodules
  2. In dir windows95, run git reset --hard 17a81393467e2668eb2eea291ab4b6a749756dad
  3. In dir windows95, run yarn install --ignore-engines --ignore-scripts --silent
  4. Back in the initial folder, download RepoResults4/felixrieseberg.windows95.replay.txt from the artifact folder
  5. npm install --no-save @typescript/server-replay
  6. npx tsreplay ./windows95 ./felixrieseberg.windows95.replay.txt path/to/tsserver.js
  7. npx tsreplay --help to learn about helpful switches for debugging, logging, etc

palantir/blueprint

⚠️ Note that built also had errors ⚠️
Req #17161 - references
    at formatMessage2 (/typescript-main/built/local/tsserver.js:174242:21)
    at IOSession.writeMessage (/typescript-main/built/local/tsserver.js:175516:21)
    at IOSession.send (/typescript-main/built/local/tsserver.js:175513:10)
    at IOSession.doOutput (/typescript-main/built/local/tsserver.js:175569:10)
    at IOSession.onMessage (/typescript-main/built/local/tsserver.js:177347:14)
    at Interface.<anonymous> (/typescript-main/built/local/tsserver.js:178785:14)
Req #17161 - references
    at formatMessage2 (/typescript-52213/built/local/tsserver.js:174242:21)
    at IOSession.writeMessage (/typescript-52213/built/local/tsserver.js:175516:21)
    at IOSession.send (/typescript-52213/built/local/tsserver.js:175513:10)
    at IOSession.doOutput (/typescript-52213/built/local/tsserver.js:175569:10)
    at IOSession.onMessage (/typescript-52213/built/local/tsserver.js:177347:14)
    at Interface.<anonymous> (/typescript-52213/built/local/tsserver.js:178785:14)

That is a filtered view of the text. To see the raw error text, go to RepoResults4/palantir.blueprint.rawError.txt in the artifact folder

Last few requests

{"seq":17158,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/site/docs/versions/1/docs-app.js","line":1,"offset":2694659,"includeExternalModuleExports":false,"includeInsertTextCompletions":true,"triggerKind":1}}
{"seq":17159,"type":"request","command":"completionInfo","arguments":{"file":"@PROJECT_ROOT@/site/docs/versions/1/docs-app.js","line":1,"offset":2694803,"includeExternalModuleExports":false,"includeInsertTextCompletions":true,"triggerKind":1}}
{"seq":17160,"type":"request","command":"definitionAndBoundSpan","arguments":{"file":"@PROJECT_ROOT@/site/docs/versions/1/docs-app.js","line":1,"offset":2695323}}
{"seq":17161,"type":"request","command":"references","arguments":{"file":"@PROJECT_ROOT@/site/docs/versions/1/docs-app.js","line":1,"offset":2695490}}

Repro Steps

  1. git clone https://github.com/palantir/blueprint --recurse-submodules
  2. In dir blueprint, run git reset --hard febdf73d3a3e6f7e850c3cbdd271a3f28b645a87
  3. In dir blueprint, run yarn install --ignore-engines --ignore-scripts --silent
  4. Back in the initial folder, download RepoResults4/palantir.blueprint.replay.txt from the artifact folder
  5. npm install --no-save @typescript/server-replay
  6. npx tsreplay ./blueprint ./palantir.blueprint.replay.txt path/to/tsserver.js
  7. npx tsreplay --help to learn about helpful switches for debugging, logging, etc

@gabritto gabritto merged commit 86ccd20 into microsoft:main Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Milestone Bug PRs that fix a bug with a specific milestone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No member completions, and irrelevant value completions, when class property initializer has no semicolon
5 participants