microsoft / vscode-copilot-release

Feedback on GitHub Copilot Chat UX in Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=GitHub.copilot-chat
Creative Commons Attribution 4.0 International
346 stars 37 forks source link

Using @workspace results in `(intermediate value)(intermediate value)(intermediate value)?.map is not a function` #2493

Open LiChiaTing opened 2 weeks ago

LiChiaTing commented 2 weeks ago

Type: Bug

(intermediate value)(intermediate value)(intermediate value)?.map is not a function

Extension version: 0.22.2 VS Code version: Code - Insiders 1.96.0-insider (9b365cafae763d229e999f353831458761aff1cd, 2024-11-11T05:05:11.976Z) OS version: Darwin arm64 24.1.0 Modes: Remote OS version: Linux x64 6.5.0-1025-azure

System Info |Item|Value| |---|---| |CPUs|Apple M2 (8 x 2400)| |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
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off| |Load (avg)|2, 2, 2| |Memory (System)|8.00GB (0.08GB free)| |Process Argv|--crash-reporter-id f736c1c6-efb9-4ad3-ad35-0b854e6a0d89| |Screen Reader|no| |VM|0%| |Item|Value| |---|---| |Remote|Codespaces: orange cod| |OS|Linux x64 6.5.0-1025-azure| |CPUs|AMD EPYC 7763 64-Core Processor (4 x 0)| |Memory (System)|15.61GB (7.30GB free)| |VM|0%|
TylerLeonhardt commented 2 weeks ago

@LiChiaTing where do you see this?

Can you open the Output pane (ctrl+shift+u) and click the drop down on the right and try selecting:

mengld commented 2 weeks ago

@TylerLeonhardt I encountered the same problem These are my copilot chat outputs:

2024-11-13 20:25:47.301 [error] TypeError: (intermediate value)(intermediate value)(intermediate value)?.map is not a function
    at F0.z (file:///Applications/Visual%20Studio%20Code%20-%20Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:109:48522)
    at F0.findFiles2 (file:///Applications/Visual%20Studio%20Code%20-%20Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:109:48394)
    at Object.findFiles2 (file:///Applications/Visual%20Studio%20Code%20-%20Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:156:51072)
    at Xk.findFiles (/Users/mengld/.vscode-insiders/extensions/github.copilot-chat-0.22.2/dist/extension.js:1109:20945)
    at Xk._findFilesWithDefaultExcludesAndExcludes (/Users/mengld/.vscode-insiders/extensions/github.copilot-chat-0.22.2/dist/extension.js:408:11503)
    at Xk.findFilesWithDefaultExcludes (/Users/mengld/.vscode-insiders/extensions/github.copilot-chat-0.22.2/dist/extension.js:408:11199)
    at eR.addWorkspace (/Users/mengld/.vscode-insiders/extensions/github.copilot-chat-0.22.2/dist/extension.js:1111:10272)
    at /Users/mengld/.vscode-insiders/extensions/github.copilot-chat-0.22.2/dist/extension.js:1111:9877
    at eR.init (/Users/mengld/.vscode-insiders/extensions/github.copilot-chat-0.22.2/dist/extension.js:1111:9894)
    at /Users/mengld/.vscode-insiders/extensions/github.copilot-chat-0.22.2/dist/extension.js:1817:4566
    at n.invokeFunction (/Users/mengld/.vscode-insiders/extensions/github.copilot-chat-0.22.2/dist/extension.js:276:941)
    at QHe (/Users/mengld/.vscode-insiders/extensions/github.copilot-chat-0.22.2/dist/extension.js:1817:4537)
    at qPt (/Users/mengld/.vscode-insiders/extensions/github.copilot-chat-0.22.2/dist/extension.js:1817:3867)
    at Function.kb (file:///Applications/Visual%20Studio%20Code%20-%20Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:15216)
    at Function.jb (file:///Applications/Visual%20Studio%20Code%20-%20Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:14923)
    at file:///Applications/Visual%20Studio%20Code%20-%20Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:13081
    at z0.n (file:///Applications/Visual%20Studio%20Code%20-%20Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:4450)
    at z0.m (file:///Applications/Visual%20Studio%20Code%20-%20Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:4413)
    at z0.l (file:///Applications/Visual%20Studio%20Code%20-%20Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:3869)
Sylicium commented 2 weeks ago

I encouter the same problem, perhaps it is linked with VSCode Insider version ? However i don't see where i can find the error stack, i only have this error:

(intermediate value)(intermediate value)(intermediate value)?.map is not a function
TylerLeonhardt commented 2 weeks ago

@mjbvz giving this to you to see if this is maybe a codesearch bug, but I have a feeling this is a search bug...

lukemurraynz commented 6 days ago

I have the same issue as well, within a Codespace, and using @workspace.

2024-11-21 04:24:53.375 [error] TypeError: (intermediate value)(intermediate value)(intermediate value)?.map is not a function
    at O0.z (file:///vscode/bin/linux-x64/8d1d1373cd9b8408222b51958e9688827a9e27ce-insider/out/vs/workbench/api/node/extensionHostProcess.js:109:48522)
    at O0.findFiles2 (file:///vscode/bin/linux-x64/8d1d1373cd9b8408222b51958e9688827a9e27ce-insider/out/vs/workbench/api/node/extensionHostProcess.js:109:48394)
    at Object.findFiles2 (file:///vscode/bin/linux-x64/8d1d1373cd9b8408222b51958e9688827a9e27ce-insider/out/vs/workbench/api/node/extensionHostProcess.js:156:51340)
    at Xk.findFiles (/home/vscode/.vscode-remote/extensions/github.copilot-chat-0.22.4/dist/extension.js:1109:20945)
    at Xk._findFilesWithDefaultExcludesAndExcludes (/home/vscode/.vscode-remote/extensions/github.copilot-chat-0.22.4/dist/extension.js:408:11503)
    at Xk.findFilesWithDefaultExcludes (/home/vscode/.vscode-remote/extensions/github.copilot-chat-0.22.4/dist/extension.js:408:11199)
    at eR.addWorkspace (/home/vscode/.vscode-remote/extensions/github.copilot-chat-0.22.4/dist/extension.js:1111:10272)
    at /home/vscode/.vscode-remote/extensions/github.copilot-chat-0.22.4/dist/extension.js:1111:9877
    at eR.init (/home/vscode/.vscode-remote/extensions/github.copilot-chat-0.22.4/dist/extension.js:1111:9894)
    at /home/vscode/.vscode-remote/extensions/github.copilot-chat-0.22.4/dist/extension.js:1817:4566
    at n.invokeFunction (/home/vscode/.vscode-remote/extensions/github.copilot-chat-0.22.4/dist/extension.js:276:941)
    at QHe (/home/vscode/.vscode-remote/extensions/github.copilot-chat-0.22.4/dist/extension.js:1817:4537)
    at qPt (/home/vscode/.vscode-remote/extensions/github.copilot-chat-0.22.4/dist/extension.js:1817:3867)
    at Function.kb (file:///vscode/bin/linux-x64/8d1d1373cd9b8408222b51958e9688827a9e27ce-insider/out/vs/workbench/api/node/extensionHostProcess.js:118:15216)
    at Function.jb (file:///vscode/bin/linux-x64/8d1d1373cd9b8408222b51958e9688827a9e27ce-insider/out/vs/workbench/api/node/extensionHostProcess.js:118:14923)
    at file:///vscode/bin/linux-x64/8d1d1373cd9b8408222b51958e9688827a9e27ce-insider/out/vs/workbench/api/node/extensionHostProcess.js:118:13081
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at V0.n (file:///vscode/bin/linux-x64/8d1d1373cd9b8408222b51958e9688827a9e27ce-insider/out/vs/workbench/api/node/extensionHostProcess.js:114:4450)
    at V0.m (file:///vscode/bin/linux-x64/8d1d1373cd9b8408222b51958e9688827a9e27ce-insider/out/vs/workbench/api/node/extensionHostProcess.js:114:4413)
    at V0.l (file:///vscode/bin/linux-x64/8d1d1373cd9b8408222b51958e9688827a9e27ce-insider/out/vs/workbench/api/node/extensionHostProcess.js:114:3869)