OpenHands icon indicating copy to clipboard operation
OpenHands copied to clipboard

FileWriteAction.init() got an unexpected keyword argument 'file'

Open raymond-etet opened this issue 1 year ago • 4 comments

Describe the bug I wrote to the file src/pages/Home/components/VipIconCarousel.tsx. assistant avatar I've created the initial VipIconCarousel component to extract the vipIcons data and rendering logic from index.tsx. Next, I should continue working on extracting the NewsCarousel component for the groupNews data.

Oops. Something went wrong: FileWriteAction.init() got an unexpected keyword argument 'file'

Steps to Reproduce 1.always when writting code, half part code ,stop error 2. 3.

Expected behavior

Actual behavior

Additional context

raymond-etet avatar Mar 29 '24 03:03 raymond-etet

That's a bad LLM response. We should be try/excepting that error

rbren avatar Mar 29 '24 14:03 rbren

@raymond-etet Can you copy paste the entire error including traceback?

goudbor avatar Mar 29 '24 17:03 goudbor

I've been getting this error lately. The LLM does recover and set path properly on the following action.

We might want to hack in support for file though. I do this for contents->content already

rbren avatar Mar 29 '24 19:03 rbren

I wonder if this has something to do with it. We add "file" in event and add to monologue, which we then send to the LLM to condense. Is there a reason why we can't name it "path"?

But I didn't get this error myself and might well be missing something. I'd watch if this still happens after #359 gets merged.

enyst avatar Mar 30 '24 00:03 enyst

Oh I bet that's definitely it! Just merged #359, let's hope it works

rbren avatar Mar 30 '24 14:03 rbren

Gonna close this for now but let's reopen if it reappears.

rbren avatar Mar 30 '24 14:03 rbren