mirror of
https://github.com/cline/cline.git
synced 2026-09-24 23:20:16 +08:00
Use the correct binary path for cline-core (#6065)
Binaries will be the cwd. When tools fail with an error, log the exception to the console. This makes debugging cline-core easier. # Conflicts: # src/services/ripgrep/index.ts # src/standalone/cline-core.ts
This commit is contained in:
@@ -247,6 +247,7 @@ export class ToolExecutor {
|
||||
* Handles errors during tool execution
|
||||
*/
|
||||
private async handleError(action: string, error: Error, block: ToolUse): Promise<void> {
|
||||
console.log(error)
|
||||
const errorString = `Error ${action}: ${error.message}`
|
||||
await this.say("error", errorString)
|
||||
|
||||
|
||||
@@ -111,7 +111,7 @@ export async function regexSearchFiles(
|
||||
try {
|
||||
output = await execRipgrep(args)
|
||||
} catch (error) {
|
||||
throw Error("Error calling ripgrep", error)
|
||||
throw Error("Error calling ripgrep", { cause: error })
|
||||
}
|
||||
const results: SearchResult[] = []
|
||||
let currentResult: Partial<SearchResult> | null = null
|
||||
|
||||
@@ -45,7 +45,7 @@ function setupHostProvider() {
|
||||
const getCallbackUri = (): Promise<string> => {
|
||||
return AuthHandler.getInstance().getCallbackUri()
|
||||
}
|
||||
const getBinaryLocation = async (name: string): Promise<string> => path.join(".", name)
|
||||
const getBinaryLocation = async (name: string): Promise<string> => path.join(process.cwd(), name)
|
||||
|
||||
HostProvider.initialize(
|
||||
createWebview,
|
||||
|
||||
Reference in New Issue
Block a user