You do not have a CMakeLists.txt
See original GitHub issueBrief Issue Summary
vscode-cmake-tools generates “You do not have a CMakeLists.txt” errors when there is a CMakeLists.txt at the root directory.
This seems to happen at random, including on older projects which were developed with vscode-cmake-tools to begin with.
Expected:
- Load CMake project in VSCode
- Start compile
- vscode-cmake-tools launches build via cmake
Apparent Behavior:
Pop-up message that says ‘You do not have a CMakeLists.txt’ appears. Build doesn’t start.
CMake Tools Log
Nothing shows up in the CMake/Build log.
Developer Tools Log
[Extension Host] [CMakeTools] 2018-05-17T03:01:46.733Z [debug] [main] Safe constructing new CMakeTools instance
console.ts:136 [Extension Host] [CMakeTools] 2018-05-17T03:01:46.735Z [debug] [kit] Constructing KitManager
console.ts:136 [Extension Host] [CMakeTools] 2018-05-17T03:01:46.737Z [debug] [variant] Constructing VariantManager
console.ts:136 [Extension Host] [CMakeTools] 2018-05-17T03:01:46.738Z [debug] [main] Constructing new CMakeTools instance
console.ts:136 [Extension Host] [CMakeTools] 2018-05-17T03:01:46.740Z [debug] [main] Starting CMakeTools second-phase init
console.ts:136 [Extension Host] [CMakeTools] 2018-05-17T03:01:46.741Z [debug] [rollbar] Checking Rollbar permissions
console.ts:136 [Extension Host] [CMakeTools] 2018-05-17T03:01:46.741Z [debug] [rollbar] Rollbar enabled? true
console.ts:136 [Extension Host] [CMakeTools] 2018-05-17T03:01:47.077Z [info] [variant] Loaded new set of variants
console.ts:136 [Extension Host] [CMakeTools] 2018-05-17T03:01:47.105Z [debug] [kit] Second phase init for KitManager
console.ts:136 [Extension Host] [CMakeTools] 2018-05-17T03:01:47.108Z [debug] [kit] Re-read kits file from prior session
console.ts:136 [Extension Host] [CMakeTools] 2018-05-17T03:01:47.133Z [debug] [kit] Reading kits file C:\Users\nuno\AppData\Roaming\CMakeTools\cmake-kits.json
console.ts:136 [Extension Host] [CMakeTools] 2018-05-17T03:01:47.231Z [info] [kit] Successfully loaded 14 kits from C:\Users\nuno\AppData\Roaming\CMakeTools\cmake-kits.json
console.ts:136 [Extension Host] [CMakeTools] 2018-05-17T03:01:47.254Z [debug] [kit] Not reading non-existent kits file: c:\Users\nuno\ola\.vscode\cmake-kits.json
console.ts:136 [Extension Host] [CMakeTools] 2018-05-17T03:01:47.263Z [debug] [kit] Active kit set to Visual Studio Professional 2017 - amd64
console.ts:136 [Extension Host] [CMakeTools] 2018-05-17T03:01:47.319Z [debug] [main] CMakeTools instance initialization complete.
console.ts:136 [Extension Host] [CMakeTools] 2018-05-17T03:07:20.092Z [debug] [extension] [1130] cmake.build started
console.ts:136 [Extension Host] [CMakeTools] 2018-05-17T03:07:20.093Z [debug] [main] Saving open files before configure/build
console.ts:136 [Extension Host] [CMakeTools] 2018-05-17T03:07:20.095Z [debug] [main] Starting new CMake driver
console.ts:136 [Extension Host] [CMakeTools] 2018-05-17T03:07:20.095Z [debug] [main] Starting CMake driver
console.ts:136 [Extension Host] [CMakeTools] 2018-05-17T03:07:20.151Z [debug] [driver] CMakeDriver Kit set to Visual Studio Professional 2017 - amd64
console.ts:136 [Extension Host] [CMakeTools] 2018-05-17T03:07:20.818Z [debug] [cms-client] Started new CMake Server instance with PID 3580
console.ts:136 [Extension Host] [CMakeTools] 2018-05-17T03:07:21.821Z [debug] [driver] Trying to detect generator supported by system
console.ts:136 [Extension Host] [CMakeTools] 2018-05-17T03:07:21.874Z [info] [cms-client] Configuring using the "Ninja" CMake generator
console.ts:136 [Extension Host] [CMakeTools] 2018-05-17T03:07:21.877Z [debug] [driver] Setting new variant , Emit debug information without performing optimizations
console.ts:136 [Extension Host] [CMakeTools] 2018-05-17T03:07:21.957Z [debug] [cms-client] Started new CMake Server instance with PID 7316
console.ts:136 [Extension Host] [CMakeTools] 2018-05-17T03:07:22.958Z [debug] [driver] Trying to detect generator supported by system
console.ts:136 [Extension Host] [CMakeTools] 2018-05-17T03:07:23.009Z [info] [cms-client] Configuring using the "Ninja" CMake generator
console.ts:136 [Extension Host] [CMakeTools] 2018-05-17T03:07:23.013Z [debug] [main] Saving open files before configure/build
console.ts:136 [Extension Host] [CMakeTools] 2018-05-17T03:07:23.014Z [debug] [driver] Runnnig pre-configure checks and steps
notificationsAlerts.ts:39 You do not have a CMakeLists.txt
e.onDidNotificationChange @ notificationsAlerts.ts:39
console.ts:136 [Extension Host] [CMakeTools] 2018-05-17T03:07:23.015Z [debug] [driver] No configuring: There is no c:/users/nuno/ola/cmakelists.txt
Platform and Versions
- Operating System: Windows
- CMake Version: 3.11.1
- VSCode Version: 1.23.1
- CMake Tools Extension Version: 0.11.1
- Compiler/Toolchain: VS2017/VS2015
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Have CMake execute a file which is not CMakeLists.txt
My situation is as follows: The project leader wants to have a certain CMakeLists.txt file run in the CI workflow and another when...
Read more >[problems in installing] no CMakeLists.txt - ROOT Forum
Hi, if I downloaded .dmg file for OSX, do I have to download .tar file, too? ... does not appear to contain CMakeLists.txt....
Read more >CMakeLists.txt | CLion Documentation - JetBrains
When you create a new project, CLion generates CMakeLists.txt file automatically ... You can edit CMakeLists.txt files right in the Editor.
Read more >Problem about modifying CMakeList.txt to add library
I think that there is an easier way to do this. More exactly: armadillo should not be a target since we don't have...
Read more >Failed to build CMake project under WSL - /CMakeLists.txt ...
Hello, the two issues are similar but not same, your issue is caused by the path "rootfs". The issue should disappear when you...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This turns out to be caused by https://github.com/Microsoft/WSL/issues/2937 and is not a vscode issue.
FWIW, the workaround is to remount all drvfs mounts in WSL with ‘case=off’.
Actually… I’m seeing some other bizarre filesystem behavior during builds that is unrelated to vscode (compiler not finding local headers and the like when building well-known libraries, e.g., GLFW). Seems related to WSL.
This started after an upgrade to RS4. Downgrading makes both the vscode issues and this particular compiler problem go away. Not sure if they’re related yet.
I’ll try to dig in to the compile failures first. For reference, this is being tracked here: https://github.com/Microsoft/WSL/issues/3180