Thanks to visit codestin.com
Credit goes to github.com

Skip to content

请问在执行的过程中,对于syntax_correct的问题如何修改rtl_generator.py? #17

@ddppt-yy

Description

@ddppt-yy
INFO     RTL generation Error: Json Decode Error: Expecting value: line 1 column 1 (char 0), drop this response
Traceback (most recent call last):
  File "~/my_script/MAGE2/MAGE/tests/test_rtl_generator.py", line 105, in <module>
    main()
  File "~/my_script/MAGE2/MAGE/tests/test_rtl_generator.py", line 91, in main
    is_pass, code = rtl_gen.chat(
                    ^^^^^^^^^^^^^
  File "~/miniconda3/envs/mage/lib/python3.11/site-packages/mage/rtl_generator.py", line 249, in chat
    return (syntax_correct, rtl_code)
            ^^^^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'syntax_correct' where it is not associated with a value
(mage)

请问在执行的过程中,对于syntax_correct的问题如何修改rtl_generator.py?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions