Hi Karlo On Sat, 2024-10-19 at 08:36 -0700, Karlo Strize via Lists.Yoctoproject.Org wrote: > > > Hi Adrian, > > My entire bare metal embedded career I was using close source IDEs > that were based on Eclipse, GCC and GDB. > To me it was ridiculous that the most important 90% of the stack was > open source, but I had to use outdated proprietary Eclipse package > because of a few Register View windows. > Probably now for consumer ARM processors things have changed for the > better. > > As you can see I had an itch to scratch :-) > > My repo supports Yocto projects, Linux kernel only, C/C++ user > applications and bare metal projects using 100% open source stack. > > I didn't know devtool ide-sdk existed. > It makes Visual Studio Code integration convenient and I wish this > had existed when I was starting my journey. > > I really think this is great work, but it heavily depends on close > source Microsoft CPP extension (I understand the implementation is of > vscode plugin). > Also oe-setup-vscode inserts settings for yocto-bitbake extension. > yocto-bitbake extension is a great piece of work that brings an > amazing set of features to the table, but my understanding is that it > relays on Microsoft close source stuff (please correct me if I'm > wrong).
The intention is to support different IDEs with different devtool ide- sdk plugins. The plugins are here: https://git.yoctoproject.org/poky/tree/scripts/lib/devtool/ide_plugins. The design of ide-sdk would allow to implement an ide_vscodium.py plugin which relies and recommends only open source plugins. The generated configuration would than look like the one in your repository. What devtool ide-sdk does by default depends on the IDEs which are available on the machine on which it is running. If an executable named code is available, the ide_code.py plugin gets priority. Otherwise devtool ide-sdk falls back to ide_none.py. Overriding the auto detection and priorities is possible by passing the parameter --ide. > > As you can see from the beginning of my post, I'm really happy that > we can build a product using only open source software like Linux > kernel, u-boot, openSSL. > Building and maintaining a product with this complexity is hard so > this was made easier with bitbake that is also open source. > > So riding on all this open source wave, its not my thing to add > reliance on the close source tools. > I'm not too excited to spend my free time by making openOCD work > easier with Microsoft's CPP debugger. > Probably most people don't care, but I guess this is my thing: > Making open source product with pure open source tools. I know your are not alone with this motivation. So it would be interesting to start an ide_vscodium.py plugin and see how good it works. The starting point could be: 1. Copy this file https://git.yoctoproject.org/poky/tree/scripts/lib/devtool/ide_plugins/ide_code.py to ide_vscodium.py. 2. Delete all the code which relies on closed plugins. 3. Add alternative implementations e.g. for clangd. Additionally it would then also be interesting to get a variant of the yocto-bitbake VSCode plugin which is usable with VSCodium. Currently the yocto-bitbake plugin supports devtool ide-sdk. But devtool ide-sdk should be usable without having the yocto-bitbake plugin installed. > > I don't want to say that reliance on Microsoft's extensions is bad. > All the mentioned work brings ease of use and functionality that > wasn't there before and that is amazing. > Again, I just prefer making a setup that uses only open source tools. > > Not sure if there is an interest to make devtool ide-sdk (and oe- > setup-vscode) setup that will support only VSCodium with only 100% > open source extensions, but I would be interested in that. > If there is interest: I have more technical comments about the > implementation, but I guess this post is long enough for now. I guess most Yocto users would prefer an open implementation if it is good enough. Best regrads, Adrian > > Best regards, > Karlo
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#64053): https://lists.yoctoproject.org/g/yocto/message/64053 Mute This Topic: https://lists.yoctoproject.org/mt/109085158/21656 Mute #github:https://lists.yoctoproject.org/g/yocto/mutehashtag/github Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-