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
338 stars 36 forks source link

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

Open LiChiaTing opened 2 days ago

LiChiaTing commented 2 days 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 days 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 22 hours 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 14 hours 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 12 hours 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...