You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constformattedError=`File does not exist at path: ${absolutePath}\n\n<error_details>\nThe specified file could not be found. Please verify the file path and try again.\n</error_details>`
1610
-
awaitthis.say("error",formattedError)
1611
-
pushToolResult(formattedError)
1612
-
break
1613
-
}
1614
-
1615
-
letparsedOperations: Array<{
1616
-
start_line: number
1617
-
content: string
1618
-
}>
1619
-
1620
-
try{
1621
-
parsedOperations=JSON.parse(operations)
1622
-
if(!Array.isArray(parsedOperations)){
1623
-
thrownewError("Operations must be an array")
1624
-
}
1625
-
}catch(error){
1626
-
this.consecutiveMistakeCount++
1627
-
awaitthis.say("error",`Failed to parse operations JSON: ${error.message}`)
`The user made the following updates to your content:\n\n${userEdits}\n\n`+
1706
-
`The updated content, which includes both your original modifications and the user's edits, has been successfully saved to ${relPath.toPosix()}. Here is the full, updated content of the file:\n\n`+
constformattedError=`File does not exist at path: ${absolutePath}\n\n<error_details>\nThe specified file could not be found. Please verify the file path and try again.\n</error_details>`
55
+
awaitcline.say("error",formattedError)
56
+
pushToolResult(formattedError)
57
+
return
58
+
}
59
+
60
+
letparsedOperations: Array<{
61
+
start_line: number
62
+
content: string
63
+
}>
64
+
65
+
try{
66
+
parsedOperations=JSON.parse(operations)
67
+
if(!Array.isArray(parsedOperations)){
68
+
thrownewError("Operations must be an array")
69
+
}
70
+
}catch(error){
71
+
cline.consecutiveMistakeCount++
72
+
awaitcline.say("error",`Failed to parse operations JSON: ${error.message}`)
`The user made the following updates to your content:\n\n${userEdits}\n\n`+
148
+
`The updated content, which includes both your original modifications and the user's edits, has been successfully saved to ${relPath.toPosix()}. Here is the full, updated content of the file:\n\n`+
0 commit comments