Merge branch 'release/v6.1.3'

This commit is contained in:
Ivan Kravets
2022-07-18 20:48:22 +03:00
5 changed files with 18 additions and 12 deletions

View File

@ -13,6 +13,11 @@ PlatformIO Core 6
**A professional collaborative platform for declarative, safety-critical, and test-driven embedded development.** **A professional collaborative platform for declarative, safety-critical, and test-driven embedded development.**
6.1.3 (2022-07-18)
~~~~~~~~~~~~~~~~~~
* Fixed a regression bug when opening device monitor without any filters (`issue #4363 <https://github.com/platformio/platformio-core/issues/4363>`_)
6.1.2 (2022-07-18) 6.1.2 (2022-07-18)
~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~

2
docs

Submodule docs updated: 0a58185b4a...beb6d196ea

View File

@ -14,7 +14,7 @@
import sys import sys
VERSION = (6, 1, 2) VERSION = (6, 1, 3)
__version__ = ".".join([str(s) for s in VERSION]) __version__ = ".".join([str(s) for s in VERSION])
__title__ = "platformio" __title__ = "platformio"

View File

@ -32,7 +32,7 @@ def validate_username(value, field="username"):
def validate_email(value): def validate_email(value):
value = str(value).strip() value = str(value).strip()
if not re.match(r"^[a-z\d_.+-]+@[a-z\d\-]+\.[a-z\d\-.]+$", value, flags=re.I): if not re.match(r"^[a-z\d_\.\+\-]+@[a-z\d\-]+\.[a-z\d\-\.]+$", value, flags=re.I):
raise click.BadParameter("Invalid email address") raise click.BadParameter("Invalid email address")
return value return value

View File

@ -139,15 +139,16 @@ def device_monitor_cmd(**options):
) )
# check for unknown filters # check for unknown filters
known_filters = set(get_available_filters()) if options["filters"]:
unknown_filters = set(options["filters"]) - known_filters known_filters = set(get_available_filters())
if unknown_filters: unknown_filters = set(options["filters"]) - known_filters
options["filters"] = list(known_filters & set(options["filters"])) if unknown_filters:
click.secho( options["filters"] = list(known_filters & set(options["filters"]))
("Warning! Skipping unknown filters `%s`. Known filters are `%s`") click.secho(
% (", ".join(unknown_filters), ", ".join(sorted(known_filters))), ("Warning! Skipping unknown filters `%s`. Known filters are `%s`")
fg="yellow", % (", ".join(unknown_filters), ", ".join(sorted(known_filters))),
) fg="yellow",
)
start_terminal(options) start_terminal(options)