Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing and using Configurator in parallel with PlatformIO IDE/VS Code #373

Closed
fiechr opened this issue Aug 9, 2022 · 1 comment
Closed
Labels
question Further information is requested

Comments

@fiechr
Copy link

fiechr commented Aug 9, 2022

I'm running Manjaro Linux.

I'm using PlatformIO IDE (the plugin) for Visual Studio Code for development of different platforms, like ESP8266/ESP32 and RP2040 with the Arduino framework.

screenshot_20220809_100352

I've also ExpressLRS Configurator 1.4.2 installed to build firmware for different RXs and TXs using the following AUR package:
https://aur.archlinux.org/packages/expresslrs-configurator
(This version is outdated, but I updated the PKGBUILD file manually to 1.4.2.)

$ which expresslrs-configurator
/usr/bin/expresslrs-configurator

screenshot_20220809_102145

The problem is, that these both applications somehow(TM) influence each other. I've tried to figure this out by myself, but just don't get my head around how it actually works.

Inside VS Code and PlatformIO IDE, I've selected the builtin Python and builtin PlatformIO. So I was thinking this should prevent any influence from the "outside", but it doesn't. Both apps seem to use the same virtual environment in ~/.platformio.

screenshot_20220809_015541

If I click on "Clear PlatformIO Dependencies" inside the Configurator, all my platforms in PlatformIO IDE are gone, too. Although, I could swear that I did that a few months with a different result. Also, I get warning messages of missing compilers inside PlatformIO IDE or messages that there is another outdated core installed and I should remove it.

After that most of the platforms got automatically reinstalled because of the platformio.ini files. But, for example, a ESC32-C3 board didn't worked and PlatformIO IDE said, it wasn't supported by the Arduino framework (which is wrong, it worked perfectly fine last week). I then started up the ExpressLRS Configuration, built the firmware for a random ESP32 RXs (which worked), went back to PlatformIO IDE and then suddenly the ESC32-C3 worked again, too. So something is going on here I don't understand.

I wonder, how to solve this? I guess I need to figure out which app uses which PlatformIO and then I need to decide either to use one core for both or separate them in a way they don't influence each other anymore.

There seems to be an installation of PlatformIO in my local python environment:

$ python --version
Python 3.10.5
$ which python
/usr/bin/python
$ pip list | grep platformio
platformio             6.1.3
$ which platformio
/home/cf/.local/bin/platformio
$ platformio --version
PlatformIO Core, version 6.1.3

(I get the exact same results inside the Visual Studio Code Terminal, so this seems to be the Python and PlatformIO Core used, although I checked the "user builtin..." options.)

Any ideas how to figure this out?

@fiechr fiechr added the question Further information is requested label Aug 9, 2022
@jurgelenas
Copy link
Member

This will be fixed in 1.4.4 release.

See details in #362 and #367

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants