-
Notifications
You must be signed in to change notification settings - Fork 0
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
Commits on Oct 5, 2023
-
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.
Configuration menu - View commit details
-
Copy full SHA for 4e720d9 - Browse repository at this point
Copy the full SHA 4e720d9View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 29bb20b - Browse repository at this point
Copy the full SHA 29bb20bView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 40001b0 - Browse repository at this point
Copy the full SHA 40001b0View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for ee1d6d6 - Browse repository at this point
Copy the full SHA ee1d6d6View commit details
Commits on Oct 9, 2023
-
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.
Configuration menu - View commit details
-
Copy full SHA for 2c75fdd - Browse repository at this point
Copy the full SHA 2c75fddView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 2a1cda6 - Browse repository at this point
Copy the full SHA 2a1cda6View commit details -
selftest: cpp-example: return 1 on failure
Running the test with ctest simply checks the return value of the program.
Configuration menu - View commit details
-
Copy full SHA for 92f4489 - Browse repository at this point
Copy the full SHA 92f4489View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 3130fe6 - Browse repository at this point
Copy the full SHA 3130fe6View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 9f70c3e - Browse repository at this point
Copy the full SHA 9f70c3eView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 889163e - Browse repository at this point
Copy the full SHA 889163eView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for d074abe - Browse repository at this point
Copy the full SHA d074abeView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 5cee27e - Browse repository at this point
Copy the full SHA 5cee27eView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for f3610aa - Browse repository at this point
Copy the full SHA f3610aaView commit details