MarlinFirmware / MarlinFirmware/AutoBuildMarlin

Auto Build Marlin doesn't run Platformio in builds in Linux VSCode

Open
#99 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
285
Forks
70
PR merge metrics
No merged PRs in 30d

Description

I'm running Zorin 18, VSCode installed via flatpak. Brand new installation.

I installed Auto Build Marlin. It installed the Platformio IDE extension successfully. When I select a workspcae through the ABM panel and click on Build, I got an error that platformio wasn't installed, and to install via apt. After running `sudo apt-get install platformio` and completing successfully, I restarted VS Code and tried building again, which now produces the following error:

me@mypc:~/V1Marlin$ platformio run --silent -e BIGTREE_SKR_PRO ; echo "done" >"/tmp/ipc"
Traceback (most recent call last):
File "/usr/bin/platformio", line 33, in
sys.exit(load_entry_point('platformio==4.3.4', 'console_scripts', 'platformio')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/bin/platformio", line 25, in importlib_load_entry_point
return next(matches).load()
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 205, in load
module = import_module(match.group('module'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 995, in exec_module
File "", line 488, in _call_with_frames_removed
File "/usr/lib/python3/dist-packages/platformio/__main__.py", line 66, in
@cli.resultcallback()
^^^^^^^^^^^^^^^^^^
AttributeError: 'PlatformioCLI' object has no attribute 'resultcallback'. Did you mean: 'result_callback'?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Auto Build Marlin build command shown in the report from the ABM panel in Linux VSCode with the PlatformIO installation described. Investigate why `platformio run --silent -e BIGTREE_SKR_PRO` reaches the Python `resultcallback` error, and consider the build fixed when the command completes without that traceback.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, python, vscode
Domain
build-system, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.