Closed nwn closed 11 months ago
Take a look at https://github.com/ament/ament_lint/pull/459
Closing this since it was solved with #459
When will this make it into humble binaries? This bug is preventing me from passing tests in launch_ros
.
$ apt show ros-humble-ament-flake8
Package: ros-humble-ament-flake8
Version: 0.12.9-1jammy.20231117.163433
Priority: optional
Section: misc
Maintainer: Michael Jeronimo <michael.jeronimo@openrobotics.org>
Installed-Size: 62.5 kB
Depends: python3-flake8, ros-humble-ament-lint, ros-humble-ros-workspace
Download-Size: 15.4 kB
APT-Manual-Installed: no
APT-Sources: http://packages.ros.org/ros2/ubuntu jammy/main amd64 Packages
Description: The ability to check code for style and syntax conventions with flake8.
Looks like @clalancette only updated rosdistro for rolling. https://github.com/ros/rosdistro/pull/39385
@Ryanf55 Check the latest commit from the humble
branch https://github.com/ament/ament_lint/commits/humble/
The change is already there, but it's not tagged. So, it's probably not released, but I don't know how often releases are performed.
@Ryanf55 Check the latest commit from the
humble
branch https://github.com/ament/ament_lint/commits/humble/The change is already there, but it's not tagged. So, it's probably not released, but I don't know how often releases are performed.
Yep. I tried spinning the release myself but hit problems with bloom. Hopefully a maintainer can make a release soon.
After upgrading to flake8 version 6.0.0, we see the following error when running
ament_flake8
:The problem comes from this initializer, which doesn't include the new
formatter_names
parameter added in version 6.0.0. It shouldn't be too difficult to fix this in a version dependent way as is already done in that function. However, there may be more breakages that appear beyond this point.For now, sticking with flake8 version 5.0.4 resolves the issue.