Enhancing Python compiler error messages via Stack Overflow
Background: Compilers tend to produce cryptic and uninformative error messages, leaving programmers confused and requiring them to spend precious time to resolve the underlying error. To find help, programmers often take to online question-and-answer forums such as Stack Overflow to start discussion...
Saved in:
Main Authors: | , |
---|---|
Format: | text |
Language: | English |
Published: |
Institutional Knowledge at Singapore Management University
2019
|
Subjects: | |
Online Access: | https://ink.library.smu.edu.sg/sis_research/8832 https://ink.library.smu.edu.sg/context/sis_research/article/9835/viewcontent/esem19.pdf |
Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
Institution: | Singapore Management University |
Language: | English |
id |
sg-smu-ink.sis_research-9835 |
---|---|
record_format |
dspace |
spelling |
sg-smu-ink.sis_research-98352024-06-06T09:08:08Z Enhancing Python compiler error messages via Stack Overflow THISELTON, Emillie TREUDE, Christoph Background: Compilers tend to produce cryptic and uninformative error messages, leaving programmers confused and requiring them to spend precious time to resolve the underlying error. To find help, programmers often take to online question-and-answer forums such as Stack Overflow to start discussion threads about the errors they encountered.Aims: We conjecture that information from Stack Overflow threads which discuss compiler errors can be automatically collected and repackaged to provide programmers with enhanced compiler error messages, thus saving programmers' time and energy.Method: We present Pycee, a plugin integrated with the popular Sublime Text IDE to provide enhanced compiler error messages for the Python programming language. Pycee automatically queries Stack Overflow to provide customised and summarised information within the IDE. We evaluated two Pycee variants through a think-aloud user study during which 16 programmers completed Python programming tasks while using Pycee.Results: The majority of participants agreed that Pycee was helpful while completing the study tasks. When compared to a baseline relying on the official Python documentation to enhance compiler error messages, participants generally preferred Pycee in terms of helpfulness, citing concrete suggestions for fixes and example code as major benefits.Conclusions: Our results confirm that data from online sources such as Stack Overflow can be successfully used to automatically enhance compiler error messages. Our work opens up venues for future work to further enhance compiler error messages as well as to automatically reuse content from Stack Overflow for other aspects of programming. 2019-09-01T07:00:00Z text application/pdf https://ink.library.smu.edu.sg/sis_research/8832 info:doi/10.1109/ESEM.2019.8870155 https://ink.library.smu.edu.sg/context/sis_research/article/9835/viewcontent/esem19.pdf http://creativecommons.org/licenses/by-nc-nd/4.0/ Research Collection School Of Computing and Information Systems eng Institutional Knowledge at Singapore Management University Compiler errors Stack Overflow think-aloud Software Engineering |
institution |
Singapore Management University |
building |
SMU Libraries |
continent |
Asia |
country |
Singapore Singapore |
content_provider |
SMU Libraries |
collection |
InK@SMU |
language |
English |
topic |
Compiler errors Stack Overflow think-aloud Software Engineering |
spellingShingle |
Compiler errors Stack Overflow think-aloud Software Engineering THISELTON, Emillie TREUDE, Christoph Enhancing Python compiler error messages via Stack Overflow |
description |
Background: Compilers tend to produce cryptic and uninformative error messages, leaving programmers confused and requiring them to spend precious time to resolve the underlying error. To find help, programmers often take to online question-and-answer forums such as Stack Overflow to start discussion threads about the errors they encountered.Aims: We conjecture that information from Stack Overflow threads which discuss compiler errors can be automatically collected and repackaged to provide programmers with enhanced compiler error messages, thus saving programmers' time and energy.Method: We present Pycee, a plugin integrated with the popular Sublime Text IDE to provide enhanced compiler error messages for the Python programming language. Pycee automatically queries Stack Overflow to provide customised and summarised information within the IDE. We evaluated two Pycee variants through a think-aloud user study during which 16 programmers completed Python programming tasks while using Pycee.Results: The majority of participants agreed that Pycee was helpful while completing the study tasks. When compared to a baseline relying on the official Python documentation to enhance compiler error messages, participants generally preferred Pycee in terms of helpfulness, citing concrete suggestions for fixes and example code as major benefits.Conclusions: Our results confirm that data from online sources such as Stack Overflow can be successfully used to automatically enhance compiler error messages. Our work opens up venues for future work to further enhance compiler error messages as well as to automatically reuse content from Stack Overflow for other aspects of programming. |
format |
text |
author |
THISELTON, Emillie TREUDE, Christoph |
author_facet |
THISELTON, Emillie TREUDE, Christoph |
author_sort |
THISELTON, Emillie |
title |
Enhancing Python compiler error messages via Stack Overflow |
title_short |
Enhancing Python compiler error messages via Stack Overflow |
title_full |
Enhancing Python compiler error messages via Stack Overflow |
title_fullStr |
Enhancing Python compiler error messages via Stack Overflow |
title_full_unstemmed |
Enhancing Python compiler error messages via Stack Overflow |
title_sort |
enhancing python compiler error messages via stack overflow |
publisher |
Institutional Knowledge at Singapore Management University |
publishDate |
2019 |
url |
https://ink.library.smu.edu.sg/sis_research/8832 https://ink.library.smu.edu.sg/context/sis_research/article/9835/viewcontent/esem19.pdf |
_version_ |
1814047569582489600 |