From 45d9bab5cea745573be7112d7130089c596c88fa Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Mon, 4 Sep 2023 11:01:37 -0700 Subject: fix: :bug: traceback fixes, remove replicate from hiddenimports --- continuedev/src/continuedev/plugins/steps/on_traceback.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'continuedev') diff --git a/continuedev/src/continuedev/plugins/steps/on_traceback.py b/continuedev/src/continuedev/plugins/steps/on_traceback.py index 6b75d726..13d7aa38 100644 --- a/continuedev/src/continuedev/plugins/steps/on_traceback.py +++ b/continuedev/src/continuedev/plugins/steps/on_traceback.py @@ -55,17 +55,10 @@ class DefaultOnTracebackStep(Step): await sdk.run_step(SolvePythonTracebackStep(output=self.output)) return - tb = extract_traceback_str(self.output) - - tb_first_last_lines = ( - ("\n".join(tb.split("\n")[:3]) + "\n...\n" + "\n".join(tb.split("\n")[-3:])) - if len(tb.split("\n")) > 6 - else tb - ) + tb = extract_traceback_str(self.output) or self.output[-8000:] await sdk.run_step( UserInputStep( - description=f"""I got the following error, can you please help explain how to fix it?\n\n{tb_first_last_lines}""", user_input=f"""I got the following error, can you please help explain how to fix it?\n\n{tb}""", ) ) @@ -171,7 +164,6 @@ class SolvePythonTracebackStep(Step): await sdk.run_step( UserInputStep( - description="Solving stack trace", user_input=prompt, ) ) -- cgit v1.2.3-70-g09d2