You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your enhancement proposal related to a problem? Please describe.
PR #27617 introduced support for detecting the version of the installed Segger J-Link Commander in order to pass -nogui 1 command line parameter to supported versions (> 6.80) for suppressing GUI windows showing flash progress.
The check introduced, however, does not work with Segger J-Link Commander on Microsoft Windows.
Describe the solution you'd like
Find out why the introduced check does not work on Windows and fix it.
Describe alternatives you've considered
Accept the Segger J-Link Commander on Windows present... windows ... when flashing.
The text was updated successfully, but these errors were encountered:
Version string for this version of JLink Commander has a space instead of the digit expected by the regex which parses it (from jlink.py): \s+V([.0-9]+)[a-zA-Z]*\s+
This results in "7." being matched which does not conform to the PEP440 format expected by the packaging python library; so this code results in the "7." falling back to a type of packaging.version.LegacyVersion instead of packaging.version.Version
def supports_nogui(self):
ver = self.read_version()
# -nogui was introduced in J-Link Commander v6.80
return version.parse(ver) >= version.parse("6.80")
Which, when compared, are subject to the following stanza in the packaging documentation:
This class implements the previous de facto sorting algorithm used by setuptools, however it will always sort as less than a Version instance.
Is your enhancement proposal related to a problem? Please describe.
PR #27617 introduced support for detecting the version of the installed Segger J-Link Commander in order to pass
-nogui 1
command line parameter to supported versions (> 6.80) for suppressing GUI windows showing flash progress.The check introduced, however, does not work with Segger J-Link Commander on Microsoft Windows.
Describe the solution you'd like
Find out why the introduced check does not work on Windows and fix it.
Describe alternatives you've considered
Accept the Segger J-Link Commander on Windows present... windows ... when flashing.
The text was updated successfully, but these errors were encountered: