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

Infinite Loop When Asking For .gitignore example in C# #1516

Open Christopher-Loyd opened 2 months ago

Christopher-Loyd commented 2 months ago

When asking CoPilot: "example .gitignore file for C# project" CoPilot will begin building the .gitignore file in chat but then put itself in an infinite loop somewhere in the file creation, continually reproducing the same line. This has been reproducible on my machine. I needed to kill VSCode and start a new chat to get CoPilot working again each time.

Steps to Reproduce:

  1. Ask "example .gitignore file for C# project"
  2. Wait for infinite loop output
  3. ????
  4. Don't Profit

Below is one of the examples it spit out, however, where it decides to enter its infinite loop changed each time I ran it:

# Ignore Visual Studio temporary files, build results, and
# files generated by popular Visual Studio add-ons.

# User-specific files
*.rsuser
*.suo
*.user
*.userosscache
*.sln.docstates

# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs

# Mono Auto Generated Files
mono_crash.*

# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
[Aa][Rr][Mm]/
[Aa][Rr][Mm]64/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/
[Ll]ogs/

# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/

# Uncomment if you have tasks that create the project's static files in dist
#dist/

# Uncomment if you have tasks that create the project's static files in public
#public/

# Uncomment if you have tasks that create the project's static files in out
#out/

# Uncomment if you have tasks that create the project's static files in build
#build/

# Uncomment if you have tasks that create the project's static files in dist
#dist/

# Uncomment if you have tasks that create the project's static files in public
#public/

# Uncomment if you have tasks that create the project's static files in out
#out/

# Uncomment if you have tasks that create the project's static files in build
#build/

# Visual Studio 2019
.vscode/
.vscode-test/

# Rider
.idea/
.idea_modules/
.idea_modules.xml
.idea_modules.iml
.idea_modules.iml
.idea_modules.iml
.idea_modules.iml
.idea_modules.iml
.idea_modules.iml
vs-code-engineering[bot] commented 2 months ago

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.

Happy Coding!

bhavyaus commented 2 months ago

@joyceerhl @digitarald I can also reproduce this issue in the chat-panel without using /new.

nabeel-at-intel commented 3 weeks ago

I have been able to reproduce it as well