microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.41k stars 29.33k forks source link

.py and .ipynb files cannot be deleted. #135342

Closed prsmendonca closed 3 years ago

prsmendonca commented 3 years ago

Issue Type: Bug

I have created a new directory to work with, and the first file I tried to add to it was a newly created python script. However, the file could not be saved, and it couldn't be deleted either. I've tried to delete it with PowerShell, cmd, even ubuntu. This problems has occurred twice, and only with python files created (or which I attempted to create) using VSCode.

VS Code version: Code - Insiders 1.62.0-insider (729d81623815a428160b93e930054a1a2a5403ef, 2021-10-18T05:21:09.596Z) OS version: Windows_NT x64 10.0.22471 Restricted Mode: No

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i9-7920X CPU @ 2.90GHz (24 x 2904)| |GPU Status|2d_canvas: enabled
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| |Load (avg)|undefined| |Memory (System)|63.73GB (30.05GB free)| |Process Argv|--crash-reporter-id 9c60c0a3-6f43-4399-b363-777c2706e13e| |Screen Reader|no| |VM|0%|
Extensions (70) Extension|Author (truncated)|Version ---|---|--- vscode-research|alb|201021.0.1 argutec-azure-repos|arg|1.2007.15 code-gnu-global|aus|0.2.2 armview|ben|0.4.5 doxdocgen|csc|1.3.2 vscode-markdownlint|Dav|0.44.4 vscode-eslint|dba|2.2.1 githistory|don|0.6.18 brackethighlighter|Dur|2.2.4 gitlens|eam|11.6.1 texlab|efo|3.2.0 json-tools|eri|1.0.2 prettier-vscode|esb|9.0.0 matlab|Gim|2.2.0 codespaces|Git|1.2.2 vscode-pull-request-github|Git|0.31.0 cmake-integration-vscode|go2|0.7.1 latex-workshop|Jam|8.20.2 better-cpp-syntax|jef|1.15.10 language-julia-insider|jul|1.4.3 python-sphinx-highlight|leo|0.1.0 vsls-whiteboard|los|0.0.12 devinsights|Mic|2021.10.7-1 tdpcode|Mic|1.9.2 vscode-azdo-codereview|Mic|0.0.6 vscode-nmake-tools|Mic|4.0.210802003 prettify-json|moh|0.0.3 selected-character-count|mou|0.0.1 azure-pipelines|ms-|1.191.0 vscode-azureappservice|ms-|0.23.0 vscode-azurefunctions|ms-|1.5.2 vscode-azureresourcegroups|ms-|0.4.0 vscode-azurestorage|ms-|0.12.1 vscode-azurevirtualmachines|ms-|0.4.1 vscode-bicep|ms-|0.4.1008 vscode-cosmosdb|ms-|0.18.1 vscode-docker|ms-|1.17.0 csharp|ms-|1.23.16 vscode-dotnet-runtime|ms-|1.3.0 python|ms-|2021.10.1336267007 vscode-pylance|ms-|2021.10.1 jupyter|ms-|2021.10.1001353885 jupyter-keymap|ms-|1.0.0 jupyter-renderers|ms-|1.0.3 remote-containers|ms-|0.202.4 remote-ssh|ms-|0.65.8 remote-ssh-edit|ms-|0.65.8 remote-wsl|ms-|0.58.2 azure-account|ms-|0.9.9 azurecli|ms-|0.5.0 cmake-tools|ms-|1.9.0 cpptools|ms-|1.7.0 cpptools-extension-pack|ms-|1.0.0 powershell-preview|ms-|2021.9.2 vscode-node-azure-pack|ms-|0.2.1 vsliveshare|ms-|1.0.4991 vsliveshare-audio|ms-|0.1.91 vsliveshare-pack|ms-|0.4.0 azurerm-vscode-tools|msa|0.15.4 autodocstring|njp|0.5.4 vetur|oct|0.35.0 bib|phr|0.3.0 extension-update-reporter|ryu|1.0.3 partial-diff|ryu|1.4.3 code-spell-checker|str|2.0.10 bibmanager|twd|2.0.0 cmake|twx|0.0.17 highlight-matching-tag|vin|0.10.1 vscodeintellicode|Vis|1.2.14 markdown-all-in-one|yzh|3.4.0 (1 theme extensions excluded)
A/B Experiments ``` vsins829:30139715 vsliv368cf:30146710 vsreu685:30147344 vspor879:30202332 vspor708:30202333 vspor363:30204092 vshan820:30294714 vscod805cf:30301675 bridge0708:30335490 bridge0723:30353136 vsqsis300:30381676 vsaa593:30376534 ```
bpasero commented 3 years ago

I wonder if this issue is being caused by an installed extension. Can you try to run VS Code without extensions? From the command line (NOT the integrated terminal in Code), execute: code --disable-extensions and try your steps again to see if it reproduces. If you see it is an issue with the extension, please file it against the extension repository itself.