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
324 stars 29 forks source link

infinite loop #1559

Closed Nicolas5150 closed 3 weeks ago

Nicolas5150 commented 4 weeks ago

Type: Bug

Copiliot went on an infiite loop

Extension version: 0.20.0 VS Code version: Code 1.93.0 (Universal) (4849ca9bdf9666755eb463db297b69e5385090e3, 2024-09-04T13:02:38.431Z) OS version: Darwin arm64 23.5.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Apple M3 Pro (11 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)|3, 3, 3| |Memory (System)|36.00GB (1.60GB free)| |Process Argv|--crash-reporter-id 305c8cb8-adbd-433f-9064-b390f6e8218a --crash-reporter-id 305c8cb8-adbd-433f-9064-b390f6e8218a| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805:30301674 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonnoceb:30805159 asynctok:30898717 pythonmypyd1:30879173 h48ei257:31000450 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 da93g388:31013173 a69g1124:31058053 dvdeprecation:31068756 dwnewjupyter:31046869 2f103344:31071589 impr_priority:31102340 refactort:31108082 pythonrstrctxt:31112756 flighttreat:31119336 wkspc-onlycs-t:31132770 wkspc-ranged-t:31125599 fje88620:31121564 ```
Nicolas5150 commented 4 weeks ago

Copilot input: /fix Type '{ label: string; value: Date | null; onChange: (newValue: Date | null) => void; renderInput: (params: any) => Element; }' is not assignable to type 'IntrinsicAttributes & DatePickerProps<Date, false> & RefAttributes'. Property 'renderInput' does not exist on type 'IntrinsicAttributes & DatePickerProps<Date, false> & RefAttributes'.

Copilot Output: To fix the error, you need to replace renderInput with renderInput prop with renderInput prop with renderInput prop with renderInput prop with renderInput prop with renderInput prop with renderInput prop with renderInput prop with renderInput prop with renderInput prop with renderInput prop with renderInput prop with renderInput prop with renderInput prop with renderInput prop with renderInput prop with renderInput prop with renderInput prop with renderInput prop with renderInput prop with renderInput prop with renderInput prop with renderInput prop with renderInput...

aeschli commented 4 weeks ago

@mjbvz Is it possible that the linkifier is causing the repeat? I don't believe the fix intent can cause this, but I rewrote the code that emits the first sentence to make sure it cannot hang: https://github.com/microsoft/vscode-copilot/pull/8097

mjbvz commented 4 weeks ago

Can you share have a repository and steps to reproduce the issue?

It could be linkification but it also could be unrelated

vs-code-engineering[bot] commented 3 weeks ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!