Roast the Errors
Your code made a mistake. Let it get roasted.
Roast the Errors is a Visual Studio Code extension that turns common programming errors into funny roast messages.
Instead of staring at another boring error message, let your code get judged.
Features
- Funny roast messages for common programming errors
- Works directly inside Visual Studio Code
- Detects supported error types from selected text
- Lightweight and fast
- Simple command-based interface
- More error types and smarter detection planned
How It Works
- Select an error message in VS Code.
- Open the Command Palette.
- Run Roast the Error.
- Get a roast for your error.
If no error text is selected, the extension allows you to enter the error manually.
Example
TypeError
TypeError: Cannot read properties of undefined
Roast:
You expected one thing and got absolute nonsense.
ReferenceError
ReferenceError: x is not defined
Roast:
You called a variable that doesn't even know you.
ModuleNotFoundError
ModuleNotFoundError: No module named 'something'
Roast:
That module saw your project and chose not to show up.
HTTP 404
HTTP 404 Not Found
Roast:
The server looked everywhere. Still couldn't find it.
Supported Errors
The current version includes roast messages for:
- SyntaxError
- ReferenceError
- TypeError
- NullPointerError
- UndefinedError
- ImportError
- ModuleNotFoundError
- NameError
- AttributeError
- IndexError
- KeyError
- ValueError
- IndentationError
- TabError
- JSONDecodeError
- PermissionError
- FileNotFoundError
- ConnectionError
- TimeoutError
- OverflowError
- ZeroDivisionError
- RecursionError
- MemoryError
- AssertionError
- RuntimeError
- BuildError
- CompileError
- CircularDependencyError
- GitConflict
- MergeConflict
- CORS Error
- HTTP 400
- HTTP 401
- HTTP 403
- HTTP 404
- HTTP 500
- InfiniteLoop
- Deadlock
- UnhandledPromiseRejection
- MissingBracket
- UnexpectedToken
- VariableAlreadyDeclared
- DuplicateFunction
- MissingSemicolon
- InvalidArgument
- UnsupportedOperation
- DatabaseConnectionError
- SQLSyntaxError
- AuthenticationError
- TokenExpired
- EnvironmentVariableMissing
- PortAlreadyInUse
- PackageNotFound
- DependencyConflict
- VersionMismatch
Usage
Using the Command Palette
Open the Command Palette:
Ctrl + Shift + P
Search for:
Roast the Error
Select the command.
Selecting an Error
Select an error message in your editor before running the command.
For example:
ReferenceError: username is not defined
The extension detects:
ReferenceError
and returns its corresponding roast.
Entering an Error Manually
If no text is selected, the extension will ask you to enter an error message.
For example:
TypeError: Cannot read properties of undefined
Requirements
- Visual Studio Code
- VS Code version 1.134.0 or later
Current Limitations
The current version uses known error names to identify errors.
If an error type is not included in the roast database, the extension may not recognize it.
Smarter context-aware error detection is planned for future versions.
Future Plans
Planned features include:
- Automatic error detection
- Context-aware roasting
- One-click error copying
- Improved roast interface
- Error statistics
- Support for additional programming languages
- Different roast intensity levels
- Custom roast modes
- Helpful fixes alongside the roast
Packaging
To create a VS Code extension package:
npx vsce package
This generates a .vsix file that can be installed locally in Visual Studio Code.
Technology
- TypeScript
- Visual Studio Code Extension API
- esbuild
- ESLint
License
This project is licensed under the MIT License.
Project Status
Roast the Errors is currently under active development.
The initial version focuses on error recognition and roast generation. More advanced error detection and developer-focused features will be added in future releases.
Philosophy
Errors are inevitable.
Debugging is part of development.
Roast the Errors simply makes the experience a little more entertaining.