-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Open
Labels
Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.New issue. Needs quick review to confirm validity and assign labels.bugSomething isn't workingSomething isn't working
Description
Problem (one or two sentences)
The command generated with&&resulted in execution failure, operating system Window 10, command content:
cd e:/Python/workspace/ocr/test && python -c "
import sys
import traceback
try:
from svtr import test_svtrv2_onnx
result = test_svtrv2_onnx('tiny', (1, 3, 32, 128), 'test_svtrv2.onnx')
print(f'Result: {result}')
except Exception as e:
print(f'Error: {e}')
traceback.print_exc()
"output:
所在位置 行:1 字符: 33
+ cd e:/Python/workspace/ocr/test && python -c "
+ ~~
标记“&&”不是此版本中的有效语句分隔符。
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : InvalidEndOfLine
Context (who is affected and when)
In code mode, this error is encountered when roo code executes commands
Reproduction steps
1)Environment:
OS: Windows 10
IDE: vscode 1.106.3
Roo code: v3.36.2
Python: miniconda3 & python 3.12.11
2) none action
3) error output:
(py312) PS E:\Python\workspace\ocr\test> cd e:/Python/workspace/ocr/test && python -c "
>> import sys
>> import traceback
>> try:
>> from svtr import test_svtrv2_onnx
>> result = test_svtrv2_onnx('tiny', (1, 3, 32, 128), 'test_svtrv2.onnx')
>> print(f'Result: {result}')
>> except Exception as e:
>> print(f'Error: {e}')
>> traceback.print_exc()
>> "
所在位置 行:1 字符: 33
+ cd e:/Python/workspace/ocr/test && python -c "
+ ~~
标记“&&”不是此版本中的有效语句分隔符。
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : InvalidEndOfLine
Expected result
Independently execute multiple commands connected to&&
Actual result
Directly execute command, execution failed
Variations tried (optional)
No response
App Version
v3.36.2
API Provider (optional)
Not Applicable / Other
Model Used (optional)
kimi-for-coding
Roo Code Task Links (optional)
No response
Relevant logs or errors (optional)
(py312) PS E:\Python\workspace\ocr\test> cd e:/Python/workspace/ocr/test && python -c "from svtr import test_svtrv2_onnx; test_svtrv2_onnx('tiny', (1, 3, 32, 128), 'test_svtrv2.onnx')"
所在位置 行:1 字符: 33
+ cd e:/Python/workspace/ocr/test && python -c "from svtr import test_s ...
+ ~~
标记“&&”不是此版本中的有效语句分隔符。
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
(py312) PS E:\Python\workspace\ocr\test> cd e:/Python/workspace/ocr/test && python -c "
>> import sys
>> import traceback
>> try:
>> from svtr import test_svtrv2_onnx
>> result = test_svtrv2_onnx('tiny', (1, 3, 32, 128), 'test_svtrv2.onnx')
>> print(f'Result: {result}')
>> except Exception as e:
>> print(f'Error: {e}')
>> traceback.print_exc()
>> "
所在位置 行:1 字符: 33
+ cd e:/Python/workspace/ocr/test && python -c "
+ ~~
标记“&&”不是此版本中的有效语句分隔符。
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : InvalidEndOfLineMetadata
Metadata
Assignees
Labels
Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.New issue. Needs quick review to confirm validity and assign labels.bugSomething isn't workingSomething isn't working
Type
Projects
Status
Triage