vscode icon indicating copy to clipboard operation
vscode copied to clipboard

copilot chat prompt agent mode: create a.txt file

Open Coops9 opened this issue 7 months ago • 2 comments

Type: Bug

copilot chat prompt agent mode: create a.txt file

2025-05-22 15:21:17.947 [error] [Window] [LanguageModelToolsService#invokeTool] Error from tool copilot_createFile with parameters {"content":"This is a sample text file.","filePath":"c:\Users\pcooper\my-vue-app\a.txt"}: cannot open file:///c%3A/Users/pcooper/my-vue-app/a.txt. Detail: Unable to read file 'c:\Users\pcooper\my-vue-app\a.txt' (Error: Unable to resolve nonexistent file 'c:\Users\pcooper\my-vue-app\a.txt'): CodeExpectedError: cannot open file:///c%3A/Users/pcooper/my-vue-app/a.txt. Detail: Unable to read file 'c:\Users\pcooper\my-vue-app\a.txt' (Error: Unable to resolve nonexistent file 'c:\Users\pcooper\my-vue-app\a.txt') at GUe.$tryOpenDocument (vscode-file://vscode-app/c:/Users/pcooper/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1283:8666)

VS Code version: Code - Insiders 1.101.0-insider (1d7ad01f171443c8b2401f031c2e8f686121515c, 2025-05-22T05:04:08.035Z) OS version: Windows_NT x64 10.0.26100 Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i7-7800X CPU @ 3.50GHz (12 x 3504)
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
webnn: disabled_off
Load (avg) undefined
Memory (System) 31.71GB (11.51GB free)
Process Argv --crash-reporter-id 3340185b-c917-43ac-9846-e8bee4165ac7
Screen Reader no
VM 0%
Extensions (3)
Extension Author (truncated) Version
copilot Git 1.323.0
copilot-chat Git 0.28.2025052101
volar Vue 2.2.10
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt551cf:31249598
vscod805cf:30301675
vscaat:30438846
c4g48928:30535728
962ge761:30841072
dsvsc014:30777825
dsvsc015:30821418
h48ei257:31000450
pythontbext0:30879054
cppperfnew:30980852
dwnewjupytercf:31046870
pythonrstrctxt:31093868
nativeloc1:31118317
e80f6927:31120813
dwcopilot:31158714
c3hdf307:31184662
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
hdaa2157:31222309
copilot_t_ci:31222730
g012b348:31231168
pythoneinst12:31251391
bgtreat:31252123
c7cif404:31309980
pythonpulldiag:31287486
6gi0g917:31259950
61ibe868:31282443
996jf627:31264550
pythonrdcb7:31268811
usemplatestapi:31297334
e6194696:31309975
747dc170:31275146
pythonfullctx:31296836
6518g693:31302842
pylancecolor:31288664
generatesymbolt:31280541
convertfstringf:31280702
gendocf:31280703
pylancequickfixt:31311477
923gi514:31310909
j97ad248:31306657
gg03i777:31307743
convertlamdat:31311571
17c0b288:31313419

Coops9 avatar May 22 '25 14:05 Coops9

Other devs on my team have reported similar bugs with the same console/window output as shown above

Coops9 avatar May 22 '25 15:05 Coops9

I have the same problem. I can create and edit files manually via the VS Code interface and terminal, but any attempt to create or edit a file using the extension/API fails with the following error: Error: Unable to resolve nonexistent file 'c:\Users\i_yangirov\Desktop\logs\created_by_ai.txt'

irekxf avatar May 22 '25 15:05 irekxf

This is fixed in the latest Insiders

roblourens avatar May 23 '25 16:05 roblourens