arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.01020cs.SE
收藏

探索AI结对编程的问题、成因与解决方案:一项基于GitHub和Stack Overflow的研究

Exploring the Problems, their Causes and Solutions of AI Pair Programming: A Study on GitHub and Stack Overflow

Xiyu Zhou, Peng Liang, Beiqi Zhang, Zengyang Li, Aakash Ahmad, Mojtaba Shahin, Muhammad Waseem

AI总结:

本文通过分析GitHub和Stack Overflow上的用户反馈,系统揭示了AI结对编程工具Copilot的常见问题、成因及解决方案,并为用户、开发团队和研究者提供改进建议。

摘要:

随着人工智能(AI)和大语言模型(LLMs)的近期发展,基于AI的代码生成工具已成为软件开发的一种实用解决方案。GitHub Copilot这一AI结对编程器,利用在大量代码片段语料库上训练的机器学习模型,通过自然语言处理生成代码建议。尽管它在软件开发中广受欢迎,但关于使用Copilot的从业者实际体验的实证证据仍然有限。为此,我们开展了一项实证研究,以了解从业者在使用Copilot时遇到的问题、其根本原因及潜在解决方案。我们收集了473个GitHub issues、706个GitHub discussions和142个Stack Overflow帖子的数据。我们的结果揭示:(1)操作问题和兼容性问题是Copilot用户面临的最常见问题,(2)Copilot内部错误、网络连接错误和编辑器/IDE兼容性问题被识别为最频繁的原因,(3)由Copilot修复Bug、修改配置/设置以及使用合适版本是主要的解决方案。基于这些结果,我们讨论了Copilot可增强的潜在领域,并为Copilot用户、Copilot团队和研究人员提供了启示。

英文摘要:

With the recent advancement of Artificial Intelligence (AI) and Large Language Models (LLMs), AI-based code generation tools become a practical solution for software development. GitHub Copilot, the AI pair programmer, utilizes machine learning models trained on a large corpus of code snippets to generate code suggestions using natural language processing. Despite its popularity in software development, there is limited empirical evidence on the actual experiences of practitioners who work with Copilot. To this end, we conducted an empirical study to understand the problems that practitioners face when using Copilot, as well as their underlying causes and potential solutions. We collected data from 473 GitHub issues, 706 GitHub discussions, and 142 Stack Overflow posts. Our results reveal that (1) Operation Issue and Compatibility Issue are the most common problems faced by Copilot users, (2) Copilot Internal Error, Network Connection Error, and Editor/IDE Compatibility Issue are identified as the most frequent causes, and (3) Bug Fixed by Copilot, Modify Configuration/Setting, and Use Suitable Version are the predominant solutions. Based on the results, we discuss the potential areas of Copilot for enhancement, and provide the implications for the Copilot users, the Copilot team, and researchers.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑