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

Update to latest lsp for pull diagnostics #23979

Merged
merged 19 commits into from
Aug 23, 2024

Conversation

rchiodo
Copy link

@rchiodo rchiodo commented Aug 20, 2024

This is to match the latest updates we've made in pylance.

See this PR:
https://github.com/microsoft/pyrx/pull/5590

@rchiodo rchiodo added skip package*.json package.json and package-lock.json don't both need updating skip tests Updates to tests unnecessary labels Aug 20, 2024
@rchiodo rchiodo added the no-changelog No news entry required label Aug 20, 2024
@rchiodo
Copy link
Author

rchiodo commented Aug 20, 2024

Uggh i forgot about all the tsconfig.json changes necessary for this. This might take me a bit longer.

"source-map-support": "^0.5.12",
"ts-loader": "^9.2.8",
"ts-mockito": "^2.5.0",
"ts-node": "^10.7.0",
"tsconfig-paths-webpack-plugin": "^3.2.0",
"typemoq": "^2.1.0",
"typescript": "4.5.5",
"typescript": "~5.2",
Copy link
Author

Choose a reason for hiding this comment

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

Because of the new way Dirk is exporting the api from the LSP client, I had to update the typescript compiler and the tsconfig.json. It's basically what caused all of these changes.

@@ -19,3 +20,7 @@ export function isNotInstalledError(error: Error): boolean {
const isModuleNoInstalledError = error.message.indexOf('No module named') >= 0;
return errorObj.code === 'ENOENT' || errorObj.code === 127 || isModuleNoInstalledError;
}

export function untildify(path: string): string {
return path.replace(/^~($|\/|\\)/, `${os.homedir()}$1`);
Copy link
Author

Choose a reason for hiding this comment

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

Untilidify doesn't work so well with new typescript. Just asked copilot to generate a new one.

@rchiodo
Copy link
Author

rchiodo commented Aug 23, 2024

@karthiknadig @debonte this looks like it finally works.

The root of all of these changes in the LSP client requiring a newer typescript. That rippled through a lot of dependencies.

@vs-code-engineering vs-code-engineering bot added this to the August 2024 milestone Aug 23, 2024
@rchiodo rchiodo merged commit 32d519b into microsoft:main Aug 23, 2024
40 checks passed
anthonykim1 pushed a commit to anthonykim1/vscode-python that referenced this pull request Sep 13, 2024
This is to match the latest updates we've made in pylance.

See this PR:
microsoft/pyrx#5590
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog No news entry required skip package*.json package.json and package-lock.json don't both need updating skip tests Updates to tests unnecessary
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants