2023-06-08 12:13 AM
Hi,
I am using
UBUNTU 23.04 and
VS Code 1.78.2
Trying to import a project and cannot get either the click of "Import a local Project" or the command Shift+Ctrl P don't do anything.
Wondering if I need STM32CubeIDE installed? If so it relies on libpython7 which is not available on Ubuntu 23.04
I have install STM32CubeMX STMCUFInder stm32cubeclt but nothing at all happens in VS Code.
VS Code has always had issues with focus and prompting for open file dialog but thought I might ask here.
Thanks,
2023-06-10 04:00 AM - edited 2023-11-20 03:40 AM
So new Machine fresh install of 23.04 and we now get prompted when we
press the import button
But the filter on the open file dialog is ST projects. Which I had no idea what the prompt meant as the project created in STM32CubeMX has the extension .ioc and this is not correct.
Than I remembered there was a video on how to use the extension found https://www.youtube.com/watch?v=Yhqsh8h_meE
So I am looking for .cproject. This leads me back to STM32CubeIDE.
I attempt to install it but it insists I need the 3 year old dead project libPython 2.7. I manually build Python 2.7 but the install clearly wants the dpkg and not just the software.
So I install the non debian package en.st-stm32cubeide_1.12.1_16088_20230420_1057_amd64.sh.zip on my ubuntu and this does install but this crashes when you start it with an error
Reported here
https://community.st.com/s/question/0D53W00002ByOp1SAF/error-trying-to-launch-stm32cubeide-on-linux
And here
https://github.com/eclipse-platform/eclipse.platform.swt/issues/158
Guess it is an issue with wrong version of java/eclipse.
My next approach will be to look at the stm32cubeide.ini and see if I can use a different version of eclipse.
This has turned out to be really hard to do for STM32. Far harder than ESP32 or the Nano boards. Mainly because they have software but it just maybe needs some polish.
I can write Make files, and comfortable with CMake but would prefer a better solution than this. Hope this will at least let others know there are issues. Most people do not have a lot of free time so getting going makes the product far more appealing.
If I can something to work I will report it here.
If people know of something to convert .ioc to .cproject that would be helpful.
2023-06-10 05:47 PM
As promised here is the issue and the fix. I merely pass this on, it was the good folks on the internet which provided this to me.
Looking at
https://github.com/adoptium/adoptium-support/issues/785
found it was the same as my issue
Compiled method (nm) 14684 4635 n 0 org.eclipse.swt.internal.C::strlen (native)
Been here before an depressed so did not read the whole thing but this worked for me. Thanks to https://github.com/TheWeirdDev
mkdir /tmp/SWT-GDBusServer
Now the software starts. Not sure if it works on my stm32 as I will be re-installing my Ubuntu to be it's pristine condition it was before all of this.