Tagged: STM32CubeIDE workspace
June 14, 2022 at 11:30 am #681489
After an update 2 days ago my STM32CubeIDE always starts with an empty workspace, not even the last one I’ve used. The dialog to select the workspace also doesn’t appear on startup. The workspace can be switched later.
I tried to disable the custom workspace selector option and then enable it again. It just doesn’t work either way. Totally broken.
However, when I select “Switch workspace” from the menu, the custom dialog appears and works correctly, it just doesn’t work on startup.June 15, 2022 at 2:53 am #681503
I got the latest DevStyle Update yesterday and can confirm the issue, HTD reported. I also use the latest STM32CubeIDE 1.9.0 on a actual Windows 10 Enterprise 20H2. HTD did mention it but probably not clear enough, if the Startup Experience is deactivated, it is expected to see the native Eclipse workspace selection dialog at startup. Neither the native nor the DevStyle Dialog appears at startup.
Thanks a lot in investigating and repairing this issue.
Best regards!June 15, 2022 at 8:46 am #681508
Thank you for your reports – we have been able to replicate the issue with the latest DevStyle release and STM32CubeIDE 1.9.0 as well. Due to the nature of the problem, the preference to disable the custom startup doesn’t have any effect either, unfortunately. We’ve run several additional tests, and the issue appears to be specific to this version of STM32CubeIDE.
For now, we’d like to recommend either of the following workarounds:
1) Use the
-dataargument to hard-code the workspace you really want to use. You can add the
-dataswitch to your
stm32cubeide.inifile, (anywhere before the
... -data c:\workspaces\myworkspace ...
Or use it as a command line argument when starting the IDE:
stm32cubeide.exe -data c:\workspaces\myworkspace
2) Uninstall DevStyle, and install the prior version.
First, you will need to turn of the DevStyle auto-update. With the IDE shut down, create this file if it doesn’t exist:
and add this property
Next, uninstall DevStyle and install the prior version from this update site:
Apologies for the inconvenience caused, do let us know if these instructions do not work for you.June 23, 2022 at 1:18 pm #681676
I uninstalled previous version.
I installed the version from the provided link: http://downloads.genuitec.com/downloads/products/devstyle/updates/ds20210526.
I changed com.genuitec.eclipse.webclipse.evergreen.prefs file, added autoUpdateEnabled=false.
After restarting IDE the startup experience appeared.
I got following error message when trying to start my workspace:
An error has occurred. See the log file
!ENTRY org.eclipse.osgi 4 0 2022-06-23 20:15:26.757
!MESSAGE Application error
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
I guess it’s because I used the new themes not available in old version. I think the software should just reset the settings to default, not crash.
Still, I created a new workspace and imported the project I was working on. Now I just have to spend some time on restoring my previous settings by copying all directories from the .settings directory of my backup except the DevStyle settings and it should work.
What I suspect about the startup issue – it might be a dependency on the new version of the Marketplace Client that is incompatible with STM32CubeIDE 1.9.0, that is my current and latest available version.
Can we expect a new version with those issues fixed in the nearest future?
June 23, 2022 at 2:39 pm #681680
- This reply was modified 3 days, 3 hours ago by HTD.
BTW, the update thing… It failed completely. The extension was constantly nagging about updates, despite the change in the configuration I made. Eventually – it updated itself forcibly, despite me explicitly cancelled it and disabled update site in option. On the next start of STM32CubeIDE I got a message telling me the DevStyle was updated! So much time wasted, I got back to square one, so now I will try to use second workaround with a command shortcut for opening my project, this should probably work for now.June 23, 2022 at 8:31 pm #681690
Me and several others on my team also received the automatic update a few days ago which caused the same issue. This issue isn’t isolated to STM32CubeIDE. We are running SpringToolSuite4 for Eclipse and this update broke us as well. Please look into this and advise. Very frustrating to say the least.June 23, 2022 at 8:38 pm #681691
Thanks for confirming the broader scope. We will work on an update to fix this. Definitely not an intended behavior.June 24, 2022 at 2:26 am #681698
Thanks for confirming, I was pretty tired yesterday and I wasn’t completely sure whether I accidentally triggered the update somehow, also too tired to doublecheck, but it seems like I didn’t. Well, so far I found only 1 major issue with the current version, the command line workaround should probably work (I’ll try to test it when I’ll be back later today), and we can relax and wait for the next update 😉 The “Windows 11” theme from the current version is cool, matches the Windows 11 dark theme pretty seamless. There’s still one minor issue left: when the code completion suggestion appear – the background for the selection is probably not set by the theme so it’s nearly invisible. (Probably applies to all dark themes). It was in both previous and current version. My workaround for it is to just type more characters to make the completion list shorter. Also, I avoid to have mouse pointer over the completion list, because it highlights the item under mouse cursor with a clearly visible color so it seems selected, since in fact it isn’t. The actual selected item is highlighted in virtually invisible background.