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 fixes #2

Closed
wants to merge 13 commits into from
Closed

devtool-ide fixes #2

wants to merge 13 commits into from

Commits on Oct 5, 2023

  1. devtool: ide: add install dependency before gdbserver task

    On VSCode, when running the debugger through launch.json, the program is
    recompiled, gdbserver is started, and connected to. However, the task to
    install the program on the target is not run, so the program is not
    updated on the target.
    
    Adding a dependency to the `install && deploy-target` task fixes this.
    deribaucourt committed Oct 5, 2023
    Configuration menu
    Copy the full SHA
    4e720d9 View commit details
    Browse the repository at this point in the history
  2. devtool: ide: remove editorconfig extension recommendation

    Most packages do not provide a .editorconfig file. In those cases, the
    recommended VSCode extension EditorConfig has no effect. Since devtool
    ide is not producing a .editorconfig, it is not within our scope to
    recommend this extension.
    deribaucourt committed Oct 5, 2023
    Configuration menu
    Copy the full SHA
    29bb20b View commit details
    Browse the repository at this point in the history
  3. devtool: ide: recommend vscode cpp extension for meson

    Just like CMake, Meson is usually used for C++ projects. We also
    generate a c_cpp_properties.json file for Meson projects, so we should
    recommend the C++ extension for VSCode.
    deribaucourt committed Oct 5, 2023
    Configuration menu
    Copy the full SHA
    40001b0 View commit details
    Browse the repository at this point in the history
  4. devtool: ide: enable CMake configureOnOpen

    In VSCode, the CMake extension must be configured for the intelliSense
    engine to work. The user could already manually start this configuration
    through the command palette.
    deribaucourt committed Oct 5, 2023
    Configuration menu
    Copy the full SHA
    ee1d6d6 View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2023

  1. devtool: ide: check that gdbserver is installed

    The VSCode debugging configuration launches gdbserver on the target.
    Warn the user if gdbserver is not installed in the image.
    This reproduces the behavior without IMAGE_GEN_DEBUGFS.
    deribaucourt committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    2c75fdd View commit details
    Browse the repository at this point in the history
  2. docs: sdk: list devtool ide dependencies

    `devtool ide` requires specific packages and image configurations to be
    installed. Document them in the SDK manual. devtool will also produce
    warnings if the user tries to run `devtool ide` without the necessary
    dependencies.
    deribaucourt committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    2a1cda6 View commit details
    Browse the repository at this point in the history
  3. selftest: cpp-example: return 1 on failure

    Running the test with ctest simply checks the return value of the
    program.
    deribaucourt committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    92f4489 View commit details
    Browse the repository at this point in the history
  4. devtool: ide: update CmakeUserPresets.json

    The file was overwritten unlike .vscode/*.json files which were merged
    with what the original recipe provided, or user modifications.
    However, the python dict.update() function does not merge nested
    dictionaries, so some configurations will still be lost.
    deribaucourt committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    3130fe6 View commit details
    Browse the repository at this point in the history
  5. selftest: devtool: update ide cmake test strings

    It seems that CMake logs with Yocto nambield are different. oe-selftest
    ensure that the commands are run by looking for specific words in the
    CMake output. I updated the test strings to match the new ones.
    deribaucourt committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    9f70c3e View commit details
    Browse the repository at this point in the history
  6. selftest: devtool: fix IMAGE_INSTALL for devtool ide tests

    The IMAGE_INSTALL variable is now overriden in the image recipe
    (oe-selftest-image.bb). We now use core-image-minimal as the base
    like is done in othe SSH selftests like gcc.py and glibc.py.
    deribaucourt committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    889163e View commit details
    Browse the repository at this point in the history
  7. devtool: ide: remove unused vscode_intelli_sense_mode()

    This function is never called. The IntelliSense mode is configured
    through configProvider in the c_cpp_properties.json file for CMake and
    Meson classes.
    
    This code could be usefull for future classes, but it is dead code for
    now.
    deribaucourt committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    d074abe View commit details
    Browse the repository at this point in the history
  8. selftest: devtool: improve SSH and qemu arguments

    selftest/gcc.py and glibc.py provide great examples on how to make
    qemu testing more reliable, notably on headless machines. This patch
    applies the same logic to the devtool tests.
    deribaucourt committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    5cee27e View commit details
    Browse the repository at this point in the history
  9. devtool: ide: remove oe-local-files from vscode excludes

    With the cmake-example recipe, the oe-local-files directory is
    actually used when browsing or debugging the source code. The reason
    is that VSCode automatically dereferences the symlinks present in the
    workspace. Since the user will often be opening the symlinks and the
    hard files, we should let him freely navigate them.
    deribaucourt committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    f3610aa View commit details
    Browse the repository at this point in the history