Skip to content

update the connection code to be flexible on the prompt characters#47

Open
RobertBlackhart wants to merge 2 commits intovshymanskyy:mainfrom
RobertBlackhart:aiorepl
Open

update the connection code to be flexible on the prompt characters#47
RobertBlackhart wants to merge 2 commits intovshymanskyy:mainfrom
RobertBlackhart:aiorepl

Conversation

@RobertBlackhart
Copy link
Copy Markdown
Contributor

Fixes #30

The code will now look for 3 possible prompt values:

  • The >>> standard MicroPython prompt
  • The --> aiorepl prompt
  • Any custom prompt the user has set on sys.ps1

Here's a connection to a board with no customized prompt (same behavior as before the change):
image

Here's a connection to a board that has the aiorepl demo script in its main.py:
image

If ViperIDE detects the user has a custom prompt, it will log that fact:
image

@ThomasFarstrike
Copy link
Copy Markdown

May I ask why this hasn't been merged? With https://MicroPythonOS.com we also bumped into this issue because we also use aiorepl, and spent time investigating and fixing it, before landing here...

Anyway, awesome project, ViperIDE!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Errors when attempting connect to board running aiorepl

2 participants