Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions e2e-tests/snapshots/problems.spec.ts_problems---fix-all-1.aria.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,58 @@
- 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
- 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=*]]"
- img
- text: Auto-fix3 problems
- img
- img
- text: file1.txt
- img
- text: file1.txt
- paragraph: More EOM
- paragraph: "[[dyad-dump-path=*]]"
- button "Retry":
- img
17 changes: 17 additions & 0 deletions e2e-tests/snapshots/problems.spec.ts_problems---fix-all-1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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.
1 change: 1 addition & 0 deletions shared/tsc_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export interface Problem {
column: number;
message: string;
code: number;
snippet: string;
}

export interface ProblemReport {
Expand Down
Loading
Loading