Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot paste multiple statements into the console #516

Closed
iamdefinitelyahuman opened this issue May 12, 2020 · 1 comment · Fixed by #519
Closed

Cannot paste multiple statements into the console #516

iamdefinitelyahuman opened this issue May 12, 2020 · 1 comment · Fixed by #519
Labels
bug Something isn't working

Comments

@iamdefinitelyahuman
Copy link
Member

What was wrong?

Pasting multiple lines into the console at once results in a SyntaxError:

>>> b = 123 
c = 338                                                                                                             
  File "<console>", line 1,
    b = 123
           ^
SyntaxError: multiple statements found while compiling a single statement

This issue didn't exist prior to adding prompt_toolkit so I think it must have something to do with PromptSession

How can it be fixed?

Allow multiple statements to be pasted in at once. The behavior in brownie console in this regard should be the same as that of a regular python interpreter.

@iamdefinitelyahuman iamdefinitelyahuman added the bug Something isn't working label May 12, 2020
@iamdefinitelyahuman
Copy link
Member Author

Possibly relevant - prompt-toolkit/python-prompt-toolkit#519

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant