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

devtool ide-sdk appear to be not available therefore I get the scarthgap version of bitbake i.e. 2.8.0 #392

Closed
antoine-mecaoctet opened this issue Feb 3, 2025 · 4 comments · Fixed by #393
Labels
bug Something isn't working

Comments

@antoine-mecaoctet
Copy link

Describe the bug
When I try to generate sdk with Devtool : Configure VSCode SDK, i get the following error :

Your version of devtool does not seem to support the ide-sdk command.

I have check the version of bitbake which is 2.8.0 on scarthgap and devtool --help shows correctly the ide-sdk option. This feature was working before the update of january.

When i am looking at the commit of january, It appears that the function to detect the version of devtool have been changed so i can imagine that i am in the side effect of the 2.8.0 version that is the limit.

@antoine-mecaoctet antoine-mecaoctet added the bug Something isn't working label Feb 3, 2025
@deribaucourt
Copy link
Member

deribaucourt commented Feb 3, 2025

Hello, it's nice to see people using this feature 😄

Yes, I did change the detection of ide-sdk in a2c780e "Refactor: Use bitbake version to detect devtool ide-sdk".
I wonder what version is detected in your case by our code. Could you provide us with the logs of the extension during a project scan?

  1. Go to File->Preferences->Settings and set bitbake.loggingLevel to debug (info is also enough but less complete)
  2. Run the command "Bitbake: Rescan Projects"
  3. Go to Output->Bitbake and attach the logs to this issue
  4. They should contain either "Bitbake version: x.y.z" or "Failed to find bitbake version". The extension accepts 2.8.0 or above to enable the ide-sdk feature.

In the meantime, you can workaround by installing the previous version of the extension or enter the devtool ide-sdk command into the Bitbake terminal profile.

Edit: silly me, I put a strict version comparison check instead of "greater or equal". I'll push a PR for that. You may use the .vsce generated by the CI until we publish the next release.

@deribaucourt deribaucourt linked a pull request Feb 3, 2025 that will close this issue
@antoine-mecaoctet
Copy link
Author

Thanks you for your quick answer. I can confirm that this feature is really great for complex cmake project !! I did not get the version log you ask, there is two many lines on the output but i think that your edit is the reason for. I see the CI of the PR failed, maybe I should wait for cross reading complete ?

@deribaucourt
Copy link
Member

@antoine-mecaoctet Thanks for your feedback!
I think the commit I pushed should work, we won't need your logs.
The CI fails because the Github runner's ubuntu version was updated and breaks poky

       08:48:44.286 [Debug] ERROR: User namespaces are not usable by BitBake, possibly due to AppArmor.
      See https://discourse.ubuntu.com/t/ubuntu-24-04-lts-noble-numbat-release-notes/39890#unprivileged-user-namespace-restrictions for more information.

I'll fix it and then you can download a .vsce from there.

@deribaucourt
Copy link
Member

deribaucourt commented Feb 4, 2025

And done, you can download, install and test the .vsix at https://github.com/yoctoproject/vscode-bitbake/actions/runs/13132220948?pr=393
(Under Artifacts->vscode-bitbake)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants