https://github.com/remorses/fixpls
Fix your compiler errors automatically with GPT
https://github.com/remorses/fixpls
Last synced: 9 months ago
JSON representation
Fix your compiler errors automatically with GPT
- Host: GitHub
- URL: https://github.com/remorses/fixpls
- Owner: remorses
- Created: 2023-04-17T15:48:36.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-04T13:50:24.000Z (over 2 years ago)
- Last Synced: 2025-04-23T01:18:16.545Z (9 months ago)
- Language: TypeScript
- Homepage:
- Size: 63.5 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
fixpls
Fix your compiler errors automatically with GPT
## Installation
```sh
# install fixpls
npm i -g fixpls
fixpls login
```
## Usage
```
fixpls -- tsc
```
Fixpls will try to run the command and if it fails it will parse the compiler errors and try to fix them with `code-davinci-edit-001`.
It will then try to run again the compiler until it exits with a 0 exit code.
> Warning: The AI could become conscient and take over the world, keep an eye on your screen just to make sure
## Supported tools
- `tsc`
To add a compiler you will need to add a file like [`tsc.ts`](./fixpls/src/fixers/tsc.ts) that is able to parse your compiler errors and create a prompt
It should be easy to add new compiler like `rustc`, `pylint` and many others (even using stack traces as errors to fix runtime crashes)
## Sponsors
[**Notaku**](https://notaku.so)
[](https://notaku.so)