-
Notifications
You must be signed in to change notification settings - Fork 7
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
[bug] export compile commands pop up not working #40
Comments
Hi @jdekarske, thank you! I'll have a look at this soon, hopefully this evening. In the past we needed the vscode workspace to include the build directory in order to access the |
So, I just checked my prior presumptions by opening a package folder What kind of problems did you run into when trying this? |
I might be having a different issue then. Is this no longer true from the readme?
The setup works if my only workspace folder is ~/cakin_ws. However, I get the following error if I only have the ~/catkin_ws/src/pkg_a folder open in my workspace. This hangs:
and (consequently?):
|
You're right, we should update the readme now that the extension always activates. (Once we have solved this issue.)
Could you please check the logs to see if there are any identifiable issues?
Maybe we can find a way to replicate this on my setup? |
Developer tools helped! I think the issue is with the popup to add the
Then I clicked the popup to add the compile_commands arg, then the popup to rebuild to find the compile_commands.json. In the console I get:
I think this is the problem line, which should append the Using I'm not well versed in developing extensions, but I'd be happy to test out a patch. |
Ah, great catch and sorry for the delay. I'll post a pre-release soon and would be glad if you could test that! |
Here's the test release: https://github.com/betwo/vscode-catkin-tools/releases/tag/v3.3.6-alpha |
I think we're close. After clicking the update workspace button to add the compile_commands arg I get this error:
In the console I have:
Note:
And this is the resulting
If you're interested I'm using a devcontainer here. If you want to use it, you'll need to change |
Everything works! Awesome! Thanks for your help with this 😄 |
Great! Thank you for testing! |
Hi! Great tool!
Instead of requiring a workspace to have a .catkin_tools directory, can you add an optional setting to specify the one you want to use? for example:
I'd like my workspace to be
~/catkin_ws/src/pkg_a
and I can set the.catkin_tools
location to${workspaceFolder}/../..
Or better yet, automatically traverse higher directories until
.catkin_tools
is found.Thanks!
The text was updated successfully, but these errors were encountered: