microsoft / vscode

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

setting.json无法写入 #219837

Open w569638598 opened 2 weeks ago

w569638598 commented 2 weeks ago

Type: Bug

setting.json无法写入 未能保存“settings.json”: 无法写入文件"vscode-userdata:/c:/Users/w5696/AppData/Roaming/Code/User/settings.json"(NoPermissions (FileSystemError): Error: EPERM: operation not permitted, rename 'c:\Users\w5696\AppData\Roaming\Code\User\settings.json.vsctmp' -> 'c:\Users\w5696\AppData\Roaming\Code\User\settings.json')

VS Code version: Code 1.90.2 (5437499feb04f7a586f677b155b039bc2b3669eb, 2024-06-18T22:34:26.404Z) OS version: Windows_NT x64 10.0.22631 Modes:

System Info |Item|Value| |---|---| |CPUs|12th Gen Intel(R) Core(TM) i5-1235U (12 x 2496)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|7.68GB (0.50GB free)| |Process Argv|--crash-reporter-id fe42e8e7-4241-4ffb-9be7-a316d4b2c221| |Screen Reader|no| |VM|36%|
Extensions (14) Extension|Author (truncated)|Version ---|---|--- tongyi-lingma|Ali|1.3.1 unocss|ant|0.61.0 gitlens|eam|15.1.0 EditorConfig|Edi|0.16.4 prettier-vscode|esb|10.4.0 easy-less|mrc|2.0.0 vscode-language-pack-zh-hans|MS-|1.90.2024061209 smartinputlinux|rn-|0.0.2 vue-helper|she|4.0.0 open-in-browser|tec|2.0.0 vscode-icons|vsc|12.8.0 volar|Vue|2.0.8 region-highlighter|Wie|1.0.1 markdown-all-in-one|yzh|3.6.2
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492cf:30256860 vstes627:30244334 vscoreces:30445986 vscod805:30301674 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 a9j8j154:30646983 962ge761:30959799 pythongtdpath:30769146 pythonnoceb:30805159 asynctok:30898717 pythonregdiag2:30936856 pythonmypyd1:30879173 h48ei257:31000450 pythontbext0:30879054 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 jchc7451:31067544 dsvsc021:30996838 jg8ic977:31013176 pythoncenvpt:31062603 a69g1124:31058053 dvdeprecation:31068756 dwnewjupyter:31046869 legacy_priority:31082724 ```
w569638598 commented 2 weeks ago

无法保存

rzhao271 commented 1 week ago

@sandy081 the rename is blocked even though the vsctmp file was created successfully in AppData. Are there some steps the user can take in this case to successfully save their user settings?

sandy081 commented 1 week ago

Probably user does not have permissions to rename/delete file in AppData.

@w569638598 Can you please check if you can rename the file manually?

w569638598 commented 1 week ago

微信截图_20240712110840 可以,没问题。