-
Notifications
You must be signed in to change notification settings - Fork 12
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
Mcu Support? #60
Comments
Hi ;) I have one question: what's a problem to set the e.g.: Why we need in qbs.buildDirectory and the qbs.selectedProductDirectory? |
Also, what do you think, maybe it is better to implement these addition properties as By analogy with the |
Think about what Qbs names its products build directories. It always includes some hash values (
You mean having a way to change Qbs settings to solve this issue? I think command variables is a better way. Before I came to the solution with the command variables I thought configuring the install root would be a viable idea. But this has different problems:
|
A more interesting question is: currently only target bin filepath and build directory can be queried. What about Should I address this issue in the documentation? |
Ahhhh.. Seems I understand the issue.. Seems that the other extensions (like cortex-debug) use the `executable' property for own purposes (yes?) and in our case this property is empty (or it is hard to specify it due to a hash-like paths).. ;)
No, I thought to use just a new
not as a command.. But, seems, this will not work, because the other extension does not known about the value of that substitution.. yes? |
But we can specify the environment in the UPD: Can we take something from the CMake extension (by analogy)? https://github.com/microsoft/vscode-cmake-tools/blob/main/docs/cmake-settings.md |
True. This (qbs settings) substitution is only done in this extension. No other extension nor the
Exactly. But I doubt that any other extension will call
The problem is that we don't know which env variables will be available. We could create a Best we could do is a env variable selector command. Imagine the following env configuration in "environment": [
{ "name": "FONTCONFIG_PATH", "value": "${command:qbs.selectEnvironmentVariable}" },
{ "name": "ANOTHER_VAR", "value": "${command:qbs.selectEnvironmentVariable}" },
{ "name": "HELLO_WORLD", "value": "${command:qbs.selectEnvironmentVariable}" }
] The
Yes but beware: I talk only about the command variables which only takes place in As you see CMake currently has no solution to the library paths problem. The cmake extension only provides paths and the names of the target, build type, build kit ect. But with cmake someone could already add something like I could try to mirror this cmake commands and its behavior. |
Hmm.. ok, seems, I understand.. Let's then keep the EVN problem in the mind (maybe it can be resolved by Qbs itself, maybe we can set the desired env variables from Qbs like Ok, I will merge then your request, many thanks! |
Aloha :)
The extension need a way to play nicely with something like https://marketplace.visualstudio.com/items?itemName=marus25.cortex-debug. Currently the Qbs extensions assumes that all binaries are native. Even working around this by using the plaint "run/debug" feature of vscode is not really possible since Qbs puts its build artifacts in directories with hashes (?) in the name. So setting a fixed progam path in
launch.json
is not possible.I think the easy way to fix this would be to make it possible to configure the
qbs.installRoot
. For this to work with multiple build configurations vscodes predefines variables should be usable inqbs-configurations.json
.A better way would be to have a vscode variable containing the path to the binary. So someone could just use this variable for the
program
key inlaunch.json
.I don't know if that is possible, as I don't know that much about vs codes extension api. Maybe with https://code.visualstudio.com/docs/editor/variables-reference#_command-variables?Like the (legacy) node extension does in https://github.com/microsoft/vscode-node-debug/blob/d19af1bcdffead99709ad404318a15ca879e4a75/src/node/extension/processPicker.ts#L101.The hardest way to fix this issue would be to extend the Qbs run command (with finding debugger informations and stuff). But I think this would be too hard to implement and maintain.
The text was updated successfully, but these errors were encountered: