question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Set default active workspace in workspace settings

See original GitHub issue

Brief Issue Summary

I have a workspace file that contains 3 folders, only one of them is a cmake project the second one is a cmake folder that gets included as external. autoSelectActiveFolder doesn’t help me here since it might be that I don’t have any file open at the moment that I open vs code and press the build button.

  • main_project
    • CMakeLists.txt (includes add_subdirectory(../common EXTERNAL_COMMON))
  • common
    • CMakeLists.txt (should not build, but cmake tools tries to, doesn’t contain project())
  • other_project (not cmake, but cmake tools still asks which kit I want to use)

Expected:

I would like to see that I can set the default active folder in my project, so that I know that pressing build will actually build the default project.

Apparent Behavior:

Depending on what cmake tools chooses, it might be that I get an error, because it cannot find a CMakeLists.txt or it find one in another folder, which is actually an external folder and therefore it is not a root CMakeLists.txt. You get an error that it cannot find project() for example. I just don’t want this project to build at all.

Platform and Versions

  • Operating System: Windows 10
  • CMake Version: 3.16.0
  • VSCode Version: 1.42.1
  • CMake Tools Extension Version: 1.3.0
  • Compiler/Toolchain: QNX custom toolchain

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
bobbrowcommented, Feb 20, 2020

That’s fair. I’ll change this into a feature request. I don’t think we’d want to add a setting for the current active folder, but rather the default active folder when no other folder is set as active.

4reactions
pkral78commented, Sep 29, 2020

Using multi root project should not mean, that all folders automatically contains standalone top level projects. CMakeLists.txt in these folders can be included using add(...) directive from “main” project folder CMakeLists.txt and are not means to be configured as self-contained.

There should be option to exclude configuration of that folders.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Embedded Active Workspace Settings and Location
Default Setting Values Settings and Locations Visualization in Active Workspace. Use %TCICV5_DIR%\env\aw_config.properties file to configure Active ...
Read more >
Active Admin Configuration |Active Workspace| Teamcenter
Topics coveredActive Workspace Configuration - What is Active Admin Workspace and how to enable it.✓ Subscribe to always get my latest ...
Read more >
Active Workspace Configuration | Create Custom Theme
Topics coveredHow to create custom Theme in Active Workspace ✓ Subscribe to always get my latest videos. Click ' ' icon for...
Read more >
Setting General Workspace Options - PTC Support
Access the Edit Workspace Options for workspace <workspace name> page by selecting Edit Preferences from the workspace actions menu or by clicking the...
Read more >
User and Workspace Settings - Visual Studio Code
The gear icon (More Actions... Shift+F9) opens a context menu with options to reset the setting to its default value as well as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found