Explain your error message in plain English using ChatGPT. Just run your file with the explain
command.
You can install explain
with pip:
$ pip3 install explain
Running a file with explain
is just as easy as running it normally:
$ explain [file_path]
This will execute the file and, if an error is thrown, send the stack trace to ChatGPT and display its explanation in your terminal.
Note that when you first use explain
, you'll be asked to enter your OpenAI credentials.
Supported file types: Python, Node.js, Ruby, Golang, and Java.