-
Notifications
You must be signed in to change notification settings - Fork 1.2k
'Invalid patch string:' #18455
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
Comments
I was wondering why no one raised this issue earlier and whether it is just me. Good to know that I'm not alone! Anyway, for now the solution is just to add the following to your .vscode/settings.json for every workspace: {
"python.sortImports.path": <wherever your `which isort` points to>
} Hope it gets fixed soon though |
@jslomkowski this is due to conda/conda#10972. With the latest release we switched to using You can always use the isort path to work around this problem. |
|
* Fixed namespace and type errors * Fetch Jupyter Notebook Interpreters if there are multiple available and fetches the path of the interpreter. * Complying types to reduce errors * Ran prettier * News * Used prettier on service.ts * Requirements.txt for Python Action Checking * Removed pr file check * News * News * Updated cffi version * Ran prettier --check 'src/client/**/*.ts' 'build/**/*.js' for Formatting Multiple Files * Fixed client factory error and installed react to fix eslint errors. * Ran global prettier * Removed unused imports causing errors * Updated ciffi * Mass prettier linting * Removed check python formatting - it was causing errors * Linting back * Removed .eslintignore to fix eslint errors - can be generated again * Added eslint back * Reverted back to original changes before my commits. * Updated news * Error message if you try to run code with no active text editor opened. * News * Used IApplicationShell * Removed unnecessary import * Used vscode.window to stop errors. * Testing * Return error * Used IApplicationShell for pop up windows. Fixed spelling mistake * Revered back to vscode while fixing error * Use IApplicationShell for Error Messages * Fixed promise types * Return Error * Created new constant for message * Return a message value * Return the error window * Using active editor to remove errors while resolving errors. * Use appshell for errors * Use an Interface for running the error messages * Changed types * Imported window from vscode * Use IAppShell to display message for testing * Fixed old python that fail to lint * Used linting of interpreterInfo to remove error * Full Stop * Formatted python Files * Linted Files * Linting * Revert * Revert * Python Files reformatted * Used an Interface in a type file * Use IAppShell for testing * Gitignore gitpod for gitpod users * Reverted * Incorporate Testing * Updated prospector * Test * Revert * Revert * Localised Testing * Upgrade vsce * Revert package and package-lock.json * Remove window import * Create a window variable * Remove any types * Import window from vscode * Remove unused imports * Return Types * Fixed testing * Await a call - not the function * Attempt to fix #18455 * New line at the end of the package-lock.json * New line for package.json * Window message to check if Isort has been Downloaded * Window message * Scrapped idea of a window pop up * Revert * Revert * If no text pointer is found * Changed type * Revert * Testing * Ran prettier * Revert * Revert * Remove --live-stream from conda run * Update news * Remove unused commands * Add an Extract Method Command #18518 * Fixed linting * Reverting * Revert --live-stream to just fix one issue * Support multiple line input and indented text * Updated the package-lock.json by updating dependencies.. * Use let instead of var * Updated test.ts to pass checks -> fix ```Import may be converted to a default import``` error * Revert package and package-lock.json * Fix lint errors * Revert * Select the correct python path if no workspace path is available #18482 * Remove old news * More testing and return an empty string if no python path is available.. * New tests * Removed unused dependencies as stated in #16840 * Revert * Removed unused dependencies with depcheck * Brung back the loaders in order to load tests and webpack * Installed more for tests * Installed webpack-cli * Uninstalled webpack so only webpack-cli is installed * Update package-lock.json * Removed more dependecies * Install rxjs-compat * Revert * Cleanup * Installed webpack * Revert * Revert * Removed gulp-rename, sourcemaps, gunzip, chmod and unicode * Reinstated gulp * Brang back unicode * Update package-lock.json * Remove the vscode-debugadapter and the vscode-debugadapter-testsupport * Removed vscode telemetries. * Revert before Merge * Revert * Merge * Made changes as requested * Updated ts-check * Revert Select the Correct Python Path if no workspace path is available. * Revert * Update workspaceFolderUri type after reverting PR * Revert vscode packages in use * Merged Changes and Added Back untildify * Revert * Revert to PR * Update package-lock.json * Added unicode * Added unicode * Revert * Removed the Unused Dependecies, Typescript Char and Typescript Formatter from the Package and Package-lock.json * Update news * Update news entry Co-authored-by: Kim-Adeline Miguel <kimiguel@microsoft.com>
* Fixed namespace and type errors * Fetch Jupyter Notebook Interpreters if there are multiple available and fetches the path of the interpreter. * Complying types to reduce errors * Ran prettier * News * Used prettier on service.ts * Requirements.txt for Python Action Checking * Removed pr file check * News * News * Updated cffi version * Ran prettier --check 'src/client/**/*.ts' 'build/**/*.js' for Formatting Multiple Files * Fixed client factory error and installed react to fix eslint errors. * Ran global prettier * Removed unused imports causing errors * Updated ciffi * Mass prettier linting * Removed check python formatting - it was causing errors * Linting back * Removed .eslintignore to fix eslint errors - can be generated again * Added eslint back * Reverted back to original changes before my commits. * Updated news * Error message if you try to run code with no active text editor opened. * News * Used IApplicationShell * Removed unnecessary import * Used vscode.window to stop errors. * Testing * Return error * Used IApplicationShell for pop up windows. Fixed spelling mistake * Revered back to vscode while fixing error * Use IApplicationShell for Error Messages * Fixed promise types * Return Error * Created new constant for message * Return a message value * Return the error window * Using active editor to remove errors while resolving errors. * Use appshell for errors * Use an Interface for running the error messages * Changed types * Imported window from vscode * Use IAppShell to display message for testing * Fixed old python that fail to lint * Used linting of interpreterInfo to remove error * Full Stop * Formatted python Files * Linted Files * Linting * Revert * Revert * Python Files reformatted * Used an Interface in a type file * Use IAppShell for testing * Gitignore gitpod for gitpod users * Reverted * Incorporate Testing * Updated prospector * Test * Revert * Revert * Localised Testing * Upgrade vsce * Revert package and package-lock.json * Remove window import * Create a window variable * Remove any types * Import window from vscode * Remove unused imports * Return Types * Fixed testing * Await a call - not the function * Attempt to fix microsoft/vscode-python#18455 * New line at the end of the package-lock.json * New line for package.json * Window message to check if Isort has been Downloaded * Window message * Scrapped idea of a window pop up * Revert * Revert * If no text pointer is found * Changed type * Revert * Testing * Ran prettier * Revert * Revert * Remove --live-stream from conda run * Update news * Remove unused commands * Add an Extract Method Command microsoft/vscode-python#18518 * Fixed linting * Reverting * Revert --live-stream to just fix one issue * Support multiple line input and indented text * Updated the package-lock.json by updating dependencies.. * Use let instead of var * Updated test.ts to pass checks -> fix ```Import may be converted to a default import``` error * Revert package and package-lock.json * Fix lint errors * Revert * Select the correct python path if no workspace path is available microsoft/vscode-python#18482 * Remove old news * More testing and return an empty string if no python path is available.. * New tests * Removed unused dependencies as stated in microsoft/vscode-python#16840 * Revert * Removed unused dependencies with depcheck * Brung back the loaders in order to load tests and webpack * Installed more for tests * Installed webpack-cli * Uninstalled webpack so only webpack-cli is installed * Update package-lock.json * Removed more dependecies * Install rxjs-compat * Revert * Cleanup * Installed webpack * Revert * Revert * Removed gulp-rename, sourcemaps, gunzip, chmod and unicode * Reinstated gulp * Brang back unicode * Update package-lock.json * Remove the vscode-debugadapter and the vscode-debugadapter-testsupport * Removed vscode telemetries. * Revert before Merge * Revert * Merge * Made changes as requested * Updated ts-check * Revert Select the Correct Python Path if no workspace path is available. * Revert * Update workspaceFolderUri type after reverting PR * Revert vscode packages in use * Merged Changes and Added Back untildify * Revert * Revert to PR * Update package-lock.json * Added unicode * Added unicode * Revert * Removed the Unused Dependecies, Typescript Char and Typescript Formatter from the Package and Package-lock.json * Update news * Update news entry Co-authored-by: Kim-Adeline Miguel <kimiguel@microsoft.com>
Issue Type: Bug
Behaviour
Expected vs. Actual
In the latest version as of 06.02.2022 which is V2022.0.1786462952 when I right-click on workspace and select 'sort imports', I get a popup in the lower right saying 'Invalid patch string:' and imports don't sort. This doesn't happen when I downgrade to the previous version. I use autopep8 but this behaviour happens regardless of formatter. I have also disabled all other extensions.
Diagnostic data
python.languageServer
setting: PylanceUser Settings
Extension version: 2022.0.1786462952
VS Code version: Code 1.64.0 (5554b12acf27056905806867f251c859323ff7e9, 2022-02-03T04:22:20.678Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No
System Info
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: