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 integration #41

Merged

Conversation

deribaucourt
Copy link
Member

No description provided.

@deribaucourt deribaucourt force-pushed the devtool-ide-sdk branch 7 times, most recently from 6f40e60 to 24d8618 Compare January 3, 2024 15:56
@deribaucourt deribaucourt marked this pull request as ready for review January 3, 2024 15:56
@deribaucourt deribaucourt force-pushed the devtool-ide-sdk branch 2 times, most recently from a920053 to c289258 Compare January 4, 2024 11:13
This command allows to configure a devtool workspace for cross-compilation
and debugging.
We don't provide a "Don't show again" option for this error, as it
can only be started by explicit manual user action.
The SSH target configuration is now a single string instead of an object.
We'll rely on the user's SSH configuration file to define additional
options.

devtool has other configs, but we may define them later if needed with a
separate bitbake.sshOptions settings object
The new parameter for bitbake tasks will allow running devtool eSDK
commands from external workspaces for application developpers.

I would have preferred not exposing the use of such custom commands but
writing the command assembly logic seems overkill here. The
documentation states that this configuration is intended for internal
use by the extension.
This command will allow users who don't have the `devtool ide-sdk`
poky command, or use recipe classes which are not yet supported.

The generated tasks.json will use `devtool build` and `devtool
deploy-target` instead of `devtool ide-sdk`. This will be slower, and
not provide advanced features such as debugging and linting, but will
still allow users to build and deploy their recipes.
Our Jest tests usually take 2-3minutes so they timed out through the
jest extension watcher.
This allows users to identify spawn errors because the workingDirectory
is not set correctly.
This mode will disable the features using bitbake, but keep the devtool
features enabled.
bitbake won't be available in eSDK mode. Disable some related features.
In eSDK mode, we don't have access to the full bitbake environment, but
some features can still be useful with some adaptations.
Even though bitbake is available in these workspace's configurations,
we don't want to do a bitbake scan and have bitbake features enabled.
The devtool build/clean commands replace bitbake in the case we are
using an eSDK.
Copy link
Member

@idillon-sfl idillon-sfl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I find this a bit hard to review. I am not very familiar with the behaviors of Devtool.

I am under the impression some "any" could have been avoidable, but at the same time I know this is the type returned by some used apis and I don't know what have been the challenges.

So I guess this is fine.

@deribaucourt
Copy link
Member Author

The any are always justified I think. It's always when the code is guaranteed to output the expected type, but Typescript can't detect it.
Except in Mock tests where I use it to simplify writing mocks with just the few properties that will be called. If the API changes, we'll automatically detect it through a CI error.

@deribaucourt deribaucourt merged commit 94d5c78 into yoctoproject:staging-next Jan 5, 2024
1 check passed
@deribaucourt deribaucourt deleted the devtool-ide-sdk branch January 5, 2024 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants