Show code snippet in fix problems (#745)
This commit is contained in:
@@ -5,11 +5,34 @@
|
||||
- img
|
||||
- text: "src/bad-file.ts Summary: This will get a TypeScript error."
|
||||
- paragraph: EOM
|
||||
- img
|
||||
- text: Auto-fix5 problems
|
||||
- img
|
||||
- img
|
||||
- text: file1.txt
|
||||
- img
|
||||
- text: file1.txt
|
||||
- paragraph: More EOM
|
||||
- paragraph: "[[dyad-dump-path=*]]"
|
||||
- img
|
||||
- text: Auto-fix5 problems
|
||||
- img
|
||||
- img
|
||||
- text: file1.txt
|
||||
- img
|
||||
- text: file1.txt
|
||||
- paragraph: More EOM
|
||||
- paragraph: "[[dyad-dump-path=*]]"
|
||||
- paragraph: "Fix these 3 TypeScript compile-time errors:"
|
||||
- list:
|
||||
- listitem: src/bad-file.tsx:2:1 - Cannot find name 'nonExistentFunction1'. (TS2304)
|
||||
- code: const App = () => <div>Minimal imported app</div>; nonExistentFunction1(); // <-- TypeScript compiler error here nonExistentFunction2();
|
||||
- list:
|
||||
- listitem: src/bad-file.tsx:3:1 - Cannot find name 'nonExistentFunction2'. (TS2304)
|
||||
- code: nonExistentFunction1(); nonExistentFunction2(); // <-- TypeScript compiler error here nonExistentFunction3();
|
||||
- list:
|
||||
- listitem: src/bad-file.tsx:4:1 - Cannot find name 'nonExistentFunction3'. (TS2304)
|
||||
- code: nonExistentFunction2(); nonExistentFunction3(); // <-- TypeScript compiler error here
|
||||
- paragraph: Please fix all errors in a concise way.
|
||||
- img
|
||||
- text: file1.txt
|
||||
@@ -17,5 +40,23 @@
|
||||
- text: file1.txt
|
||||
- paragraph: More EOM
|
||||
- paragraph: "[[dyad-dump-path=*]]"
|
||||
- img
|
||||
- text: Auto-fix3 problems
|
||||
- img
|
||||
- img
|
||||
- text: file1.txt
|
||||
- img
|
||||
- text: file1.txt
|
||||
- paragraph: More EOM
|
||||
- paragraph: "[[dyad-dump-path=*]]"
|
||||
- img
|
||||
- text: Auto-fix3 problems
|
||||
- img
|
||||
- img
|
||||
- text: file1.txt
|
||||
- img
|
||||
- text: file1.txt
|
||||
- paragraph: More EOM
|
||||
- paragraph: "[[dyad-dump-path=*]]"
|
||||
- button "Retry":
|
||||
- img
|
||||
@@ -3,7 +3,24 @@ role: user
|
||||
message: Fix these 3 TypeScript compile-time errors:
|
||||
|
||||
1. src/bad-file.tsx:2:1 - Cannot find name 'nonExistentFunction1'. (TS2304)
|
||||
```
|
||||
const App = () => <div>Minimal imported app</div>;
|
||||
nonExistentFunction1(); // <-- TypeScript compiler error here
|
||||
nonExistentFunction2();
|
||||
```
|
||||
|
||||
2. src/bad-file.tsx:3:1 - Cannot find name 'nonExistentFunction2'. (TS2304)
|
||||
```
|
||||
nonExistentFunction1();
|
||||
nonExistentFunction2(); // <-- TypeScript compiler error here
|
||||
nonExistentFunction3();
|
||||
```
|
||||
|
||||
3. src/bad-file.tsx:4:1 - Cannot find name 'nonExistentFunction3'. (TS2304)
|
||||
```
|
||||
nonExistentFunction2();
|
||||
nonExistentFunction3(); // <-- TypeScript compiler error here
|
||||
```
|
||||
|
||||
|
||||
Please fix all errors in a concise way.
|
||||
@@ -417,5 +417,9 @@ role: user
|
||||
message: Fix these 1 TypeScript compile-time error:
|
||||
|
||||
1. src/main.tsx:1:1 - Cannot find name 'finalMainTsxFileWithError'. (TS2304)
|
||||
```
|
||||
finalMainTsxFileWithError(); // <-- TypeScript compiler error here
|
||||
```
|
||||
|
||||
|
||||
Please fix all errors in a concise way.
|
||||
@@ -426,6 +426,10 @@ role: user
|
||||
message: Fix these 1 TypeScript compile-time error:
|
||||
|
||||
1. src/main.tsx:1:1 - Cannot find name 'finalMainTsxFileWithError'. (TS2304)
|
||||
```
|
||||
finalMainTsxFileWithError(); // <-- TypeScript compiler error here
|
||||
```
|
||||
|
||||
|
||||
Please fix all errors in a concise way.
|
||||
|
||||
@@ -449,5 +453,9 @@ role: user
|
||||
message: Fix these 1 TypeScript compile-time error:
|
||||
|
||||
1. src/main.tsx:1:1 - Cannot find name 'finalMainTsxFileWithError'. (TS2304)
|
||||
```
|
||||
finalMainTsxFileWithError(); // <-- TypeScript compiler error here
|
||||
```
|
||||
|
||||
|
||||
Please fix all errors in a concise way.
|
||||
@@ -436,6 +436,15 @@ role: user
|
||||
message: Fix these 2 TypeScript compile-time errors:
|
||||
|
||||
1. src/bad-file.ts:1:30 - Cannot find module 'non-existent-class' or its corresponding type declarations. (TS2307)
|
||||
```
|
||||
import NonExistentClass from 'non-existent-class'; // <-- TypeScript compiler error here
|
||||
```
|
||||
|
||||
2. src/bad-file.ts:4:3 - Property 'nonExistentMethod' does not exist on type 'Object'. (TS2339)
|
||||
```
|
||||
const x = new Object();
|
||||
x.nonExistentMethod(); // <-- TypeScript compiler error here
|
||||
```
|
||||
|
||||
|
||||
Please fix all errors in a concise way.
|
||||
@@ -438,7 +438,16 @@ role: user
|
||||
message: Fix these 2 TypeScript compile-time errors:
|
||||
|
||||
1. src/bad-file.ts:1:30 - Cannot find module 'non-existent-class' or its corresponding type declarations. (TS2307)
|
||||
```
|
||||
import NonExistentClass from 'non-existent-class'; // <-- TypeScript compiler error here
|
||||
```
|
||||
|
||||
2. src/bad-file.ts:4:3 - Property 'nonExistentMethod' does not exist on type 'Object'. (TS2339)
|
||||
```
|
||||
const x = new Object();
|
||||
x.nonExistentMethod(); // <-- TypeScript compiler error here
|
||||
```
|
||||
|
||||
|
||||
Please fix all errors in a concise way.
|
||||
|
||||
@@ -462,5 +471,10 @@ role: user
|
||||
message: Fix these 1 TypeScript compile-time error:
|
||||
|
||||
1. src/bad-file.ts:6:3 - Property 'nonExistentMethod2' does not exist on type 'Object'. (TS2339)
|
||||
```
|
||||
const x = new Object();
|
||||
x.nonExistentMethod2(); // <-- TypeScript compiler error here
|
||||
```
|
||||
|
||||
|
||||
Please fix all errors in a concise way.
|
||||
@@ -438,9 +438,37 @@ role: user
|
||||
message: Fix these 5 TypeScript compile-time errors:
|
||||
|
||||
1. src/bad-file.ts:1:30 - Cannot find module 'non-existent-class' or its corresponding type declarations. (TS2307)
|
||||
```
|
||||
import NonExistentClass from 'non-existent-class'; // <-- TypeScript compiler error here
|
||||
import NonExistentClass2 from 'non-existent-class';
|
||||
```
|
||||
|
||||
2. src/bad-file.ts:2:31 - Cannot find module 'non-existent-class' or its corresponding type declarations. (TS2307)
|
||||
```
|
||||
import NonExistentClass from 'non-existent-class';
|
||||
import NonExistentClass2 from 'non-existent-class'; // <-- TypeScript compiler error here
|
||||
import NonExistentClass3 from 'non-existent-class';
|
||||
```
|
||||
|
||||
3. src/bad-file.ts:3:31 - Cannot find module 'non-existent-class' or its corresponding type declarations. (TS2307)
|
||||
```
|
||||
import NonExistentClass2 from 'non-existent-class';
|
||||
import NonExistentClass3 from 'non-existent-class'; // <-- TypeScript compiler error here
|
||||
import NonExistentClass4 from 'non-existent-class';
|
||||
```
|
||||
|
||||
4. src/bad-file.ts:4:31 - Cannot find module 'non-existent-class' or its corresponding type declarations. (TS2307)
|
||||
```
|
||||
import NonExistentClass3 from 'non-existent-class';
|
||||
import NonExistentClass4 from 'non-existent-class'; // <-- TypeScript compiler error here
|
||||
import NonExistentClass5 from 'non-existent-class';
|
||||
```
|
||||
|
||||
5. src/bad-file.ts:5:31 - Cannot find module 'non-existent-class' or its corresponding type declarations. (TS2307)
|
||||
```
|
||||
import NonExistentClass4 from 'non-existent-class';
|
||||
import NonExistentClass5 from 'non-existent-class'; // <-- TypeScript compiler error here
|
||||
```
|
||||
|
||||
|
||||
Please fix all errors in a concise way.
|
||||
@@ -442,10 +442,38 @@ role: user
|
||||
message: Fix these 5 TypeScript compile-time errors:
|
||||
|
||||
1. src/bad-file.ts:1:30 - Cannot find module 'non-existent-class' or its corresponding type declarations. (TS2307)
|
||||
```
|
||||
import NonExistentClass from 'non-existent-class'; // <-- TypeScript compiler error here
|
||||
import NonExistentClass2 from 'non-existent-class';
|
||||
```
|
||||
|
||||
2. src/bad-file.ts:2:31 - Cannot find module 'non-existent-class' or its corresponding type declarations. (TS2307)
|
||||
```
|
||||
import NonExistentClass from 'non-existent-class';
|
||||
import NonExistentClass2 from 'non-existent-class'; // <-- TypeScript compiler error here
|
||||
import NonExistentClass3 from 'non-existent-class';
|
||||
```
|
||||
|
||||
3. src/bad-file.ts:3:31 - Cannot find module 'non-existent-class' or its corresponding type declarations. (TS2307)
|
||||
```
|
||||
import NonExistentClass2 from 'non-existent-class';
|
||||
import NonExistentClass3 from 'non-existent-class'; // <-- TypeScript compiler error here
|
||||
import NonExistentClass4 from 'non-existent-class';
|
||||
```
|
||||
|
||||
4. src/bad-file.ts:4:31 - Cannot find module 'non-existent-class' or its corresponding type declarations. (TS2307)
|
||||
```
|
||||
import NonExistentClass3 from 'non-existent-class';
|
||||
import NonExistentClass4 from 'non-existent-class'; // <-- TypeScript compiler error here
|
||||
import NonExistentClass5 from 'non-existent-class';
|
||||
```
|
||||
|
||||
5. src/bad-file.ts:5:31 - Cannot find module 'non-existent-class' or its corresponding type declarations. (TS2307)
|
||||
```
|
||||
import NonExistentClass4 from 'non-existent-class';
|
||||
import NonExistentClass5 from 'non-existent-class'; // <-- TypeScript compiler error here
|
||||
```
|
||||
|
||||
|
||||
Please fix all errors in a concise way.
|
||||
|
||||
@@ -464,9 +492,37 @@ role: user
|
||||
message: Fix these 5 TypeScript compile-time errors:
|
||||
|
||||
1. src/bad-file.ts:1:30 - Cannot find module 'non-existent-class' or its corresponding type declarations. (TS2307)
|
||||
```
|
||||
import NonExistentClass from 'non-existent-class'; // <-- TypeScript compiler error here
|
||||
import NonExistentClass2 from 'non-existent-class';
|
||||
```
|
||||
|
||||
2. src/bad-file.ts:2:31 - Cannot find module 'non-existent-class' or its corresponding type declarations. (TS2307)
|
||||
```
|
||||
import NonExistentClass from 'non-existent-class';
|
||||
import NonExistentClass2 from 'non-existent-class'; // <-- TypeScript compiler error here
|
||||
import NonExistentClass3 from 'non-existent-class';
|
||||
```
|
||||
|
||||
3. src/bad-file.ts:3:31 - Cannot find module 'non-existent-class' or its corresponding type declarations. (TS2307)
|
||||
```
|
||||
import NonExistentClass2 from 'non-existent-class';
|
||||
import NonExistentClass3 from 'non-existent-class'; // <-- TypeScript compiler error here
|
||||
import NonExistentClass4 from 'non-existent-class';
|
||||
```
|
||||
|
||||
4. src/bad-file.ts:4:31 - Cannot find module 'non-existent-class' or its corresponding type declarations. (TS2307)
|
||||
```
|
||||
import NonExistentClass3 from 'non-existent-class';
|
||||
import NonExistentClass4 from 'non-existent-class'; // <-- TypeScript compiler error here
|
||||
import NonExistentClass5 from 'non-existent-class';
|
||||
```
|
||||
|
||||
5. src/bad-file.ts:5:31 - Cannot find module 'non-existent-class' or its corresponding type declarations. (TS2307)
|
||||
```
|
||||
import NonExistentClass4 from 'non-existent-class';
|
||||
import NonExistentClass5 from 'non-existent-class'; // <-- TypeScript compiler error here
|
||||
```
|
||||
|
||||
|
||||
Please fix all errors in a concise way.
|
||||
Reference in New Issue
Block a user