Skip to content

Commit

Permalink
Add bolt samples for 954 and 955
Browse files Browse the repository at this point in the history
  • Loading branch information
Domiii committed Jan 24, 2025
1 parent 80479a8 commit 115757e
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 7 deletions.
Empty file.
29 changes: 29 additions & 0 deletions replay_benchmarks/bolt/954/prompt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# User requirements:

1. Fix "Parser error." - The parser must succeed.
2. IMPORTANT: As you inspect the bug, YOU MUST find out exactly which AST node it failed to parse and, more IMPORTANTLY, which node it parsed PREVIOUSLY. Understanding parser problems requires understanding which production rule we are in and that requires knowing the current as well as previous tokens. Only once you fully understand the failing context, propose a fix.


## Supplementary Information
Here are all caught and uncaught errors in the recording. Maybe you can use them:
```js
[
{
"point": "16550446236665572707685049477103635",
"error": `Expected number, identifier, '(', or '[', got equals
at parseFactor (http://localhost:5173/src/parser/parseFactor.ts:23:11)
at parseTerm (http://localhost:5173/src/parser/parseTerm.ts:4:14)
at parseExpression (http://localhost:5173/src/parser/parseExpression.ts:4:14)
at parseStatement (http://localhost:5173/src/parser/parseStatement.ts:44:10)
at parseBlock (http://localhost:5173/src/parser/parseBlock.ts:31:23)
at parseFunctionDeclaration (http://localhost:5173/src/parser/parseFunctionDeclaration.ts:50:16)
at parseStatement (http://localhost:5173/src/parser/parseStatement.ts:29:12)
at parseProgram (http://localhost:5173/src/parser/parseProgram.ts:22:23)
at Parser.parse (http://localhost:5173/src/parser/parser.ts:41:19)
at Parser.step (http://localhost:5173/src/parser/parser.ts:52:12)`
}
]
```


Bug recording: https://app.replay.io/recording/98d54a0b-bf17-443d-b819-ff0496487a0a?point=16550446236665572707685049477103635
Binary file added replay_benchmarks/bolt/954/source_code.zip
Binary file not shown.
3 changes: 3 additions & 0 deletions replay_benchmarks/bolt/955/prompt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
After entering Debug Mode, the `Info Panel` always shows "Move mouse over canvas".

Bug recording: https://app.replay.io/recording/localhost5173--66ae7539-a7d9-455c-8717-bfcf7446fb72?point=24987928631798923478451981991804943&primaryPanel=comments&secondaryPanel=console&time=10272.391981449624
Binary file added replay_benchmarks/bolt/955/source_code.zip
Binary file not shown.
7 changes: 0 additions & 7 deletions replay_benchmarks/bolt/run-bolt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,3 @@ cd $OH_ROOT
set -x
poetry run python -m openhands.core.main -t "$PROMPT_ONELINE" >"${LOG_FILE}" 2>&1
set +x


# Log the relevant diff.
echo "Diff:"
pushd $WORKSPACE_ROOT > /dev/null
git --no-pager diff | grep -C 5 "map\.setView"
popd > /dev/null

0 comments on commit 115757e

Please sign in to comment.