Skip to content

Commit 4b3f2e1

Browse files
committed
Merge branch 'release/v5.0.3'
2 parents 7292024 + f4dba7a commit 4b3f2e1

File tree

19 files changed

+129
-55
lines changed

19 files changed

+129
-55
lines changed

HISTORY.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@ PlatformIO Core 5
88

99
**A professional collaborative platform for embedded development**
1010

11+
5.0.3 (2020-11-12)
12+
~~~~~~~~~~~~~~~~~~
13+
14+
- Added an error selector for `Sublime Text <https://docs.platformio.org/page/integration/ide/sublimetext.html>`__ build runner (`issue #3733 <https://github.com/platformio/platformio-core/issues/3733>`_)
15+
- Generate a working "projectEnvName" for PlatformIO IDE's debugger for VSCode
16+
- Force VSCode's intelliSenseMode to "gcc-x64" when GCC toolchain is used
17+
- Print ignored test suites and environments in the test summary report only in verbose mode (`issue #3726 <https://github.com/platformio/platformio-core/issues/3726>`_)
18+
- Fixed an issue when the package manager tries to install a built-in library from the registry (`issue #3662 <https://github.com/platformio/platformio-core/issues/3662>`_)
19+
- Fixed an issue when `pio package pack <https://docs.platformio.org/page/core/userguide/package/cmd_pack.html>`__ ignores some folders (`issue #3730 <https://github.com/platformio/platformio-core/issues/3730>`_)
20+
1121
5.0.2 (2020-10-30)
1222
~~~~~~~~~~~~~~~~~~
1323

docs

platformio/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import sys
1616

17-
VERSION = (5, 0, 2)
17+
VERSION = (5, 0, 3)
1818
__version__ = ".".join([str(s) for s in VERSION])
1919

2020
__title__ = "platformio"

platformio/app.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,8 @@ def get_cid():
255255
uid = None
256256
if os.getenv("C9_UID"):
257257
uid = os.getenv("C9_UID")
258+
elif os.getenv("GITPOD_GIT_USER_NAME"):
259+
uid = os.getenv("GITPOD_GIT_USER_NAME")
258260
elif os.getenv("CHE_API", os.getenv("CHE_API_ENDPOINT")):
259261
try:
260262
uid = json.loads(

platformio/commands/project.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -149,15 +149,19 @@ def project_init(
149149
):
150150
if not silent:
151151
if project_dir == os.getcwd():
152-
click.secho("\nThe current working directory", fg="yellow", nl=False)
153-
click.secho(" %s " % project_dir, fg="cyan", nl=False)
154-
click.secho("will be used for the project.", fg="yellow")
152+
click.secho("\nThe current working directory ", fg="yellow", nl=False)
153+
try:
154+
click.secho(project_dir, fg="cyan", nl=False)
155+
except UnicodeEncodeError:
156+
click.secho(json.dumps(project_dir), fg="cyan", nl=False)
157+
click.secho(" will be used for the project.", fg="yellow")
155158
click.echo("")
156159

157-
click.echo(
158-
"The next files/directories have been created in %s"
159-
% click.style(project_dir, fg="cyan")
160-
)
160+
click.echo("The next files/directories have been created in ", nl=False)
161+
try:
162+
click.secho(project_dir, fg="cyan")
163+
except UnicodeEncodeError:
164+
click.secho(json.dumps(project_dir), fg="cyan")
161165
click.echo(
162166
"%s - Put project header files here" % click.style("include", fg="cyan")
163167
)

platformio/commands/test/command.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def cli( # pylint: disable=redefined-builtin
177177
if without_testing:
178178
return
179179

180-
print_testing_summary(results)
180+
print_testing_summary(results, verbose)
181181

182182
command_failed = any(r.get("succeeded") is False for r in results)
183183
if command_failed:
@@ -222,7 +222,7 @@ def print_processing_footer(result):
222222
)
223223

224224

225-
def print_testing_summary(results):
225+
def print_testing_summary(results, verbose=False):
226226
click.echo()
227227

228228
tabular_data = []
@@ -236,6 +236,8 @@ def print_testing_summary(results):
236236
failed_nums += 1
237237
status_str = click.style("FAILED", fg="red")
238238
elif result.get("succeeded") is None:
239+
if not verbose:
240+
continue
239241
status_str = "IGNORED"
240242
else:
241243
succeeded_nums += 1

platformio/ide/tpls/emacs/.ccls.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
% cxx_stds = STD_RE.findall(cxx_flags)
55
%
66
%
7-
clang
7+
{{ cxx_path }}
88

99
% if cc_stds:
1010
{{"%c"}} -std=c{{ cc_stds[-1] }}

platformio/ide/tpls/qtcreator/platformio.pro.tpl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
% import re
2+
%
3+
% cpp_standards_remap = {
4+
% "0x": "11",
5+
% "1y": "14",
6+
% "1z": "17",
7+
% "2a": "20",
8+
% "2b": "23"
9+
% }
10+
111
win32 {
212
HOMEDIR += $$(USERPROFILE)
313
}
@@ -27,3 +37,9 @@ HEADERS += {{file}}
2737
SOURCES += {{file}}
2838
% end
2939
% end
40+
41+
% STD_RE = re.compile(r"\-std=[a-z\+]+(\w+)")
42+
% cxx_stds = STD_RE.findall(cxx_flags)
43+
% if cxx_stds:
44+
CONFIG += c++{{ cpp_standards_remap.get(cxx_stds[-1], cxx_stds[-1]) }}
45+
% end
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
% import re
2+
% STD_RE = re.compile(r"\-std=[a-z\+]+(\w+)")
3+
% cc_stds = STD_RE.findall(cc_flags)
4+
% cxx_stds = STD_RE.findall(cxx_flags)
5+
%
6+
%
7+
{{ cxx_path }}
8+
9+
% if cc_stds:
10+
{{"%c"}} -std=c{{ cc_stds[-1] }}
11+
% end
12+
% if cxx_stds:
13+
{{"%cpp"}} -std=c++{{ cxx_stds[-1] }}
14+
% end
15+
16+
% for include in filter_includes(includes):
17+
-I{{ include }}
18+
% end
19+
20+
% for define in defines:
21+
-D{{ define }}
22+
% end

0 commit comments

Comments
 (0)