# BUG: in CMakePresets.json, when a file can't be found, the offending file name is not reported.

**URL:** https://discourse.cmake.org/t/bug-in-cmakepresets-json-when-a-file-cant-be-found-the-offending-file-name-is-not-reported/9076
**Category:** Usage
**Created:** [September 25, 2023, 2:58am UTC](https://discourse.cmake.org/t/bug-in-cmakepresets-json-when-a-file-cant-be-found-the-offending-file-name-is-not-reported/9076 "2023-09-25T02:58:14Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![burtonrodman](https://discourse.cmake.org/user_avatar/discourse.cmake.org/burtonrodman/32/3866_2.png) [@burtonrodman](https://discourse.cmake.org/u/burtonrodman)
#### Post date: [September 25, 2023, 2:58am UTC](https://discourse.cmake.org/t/bug-in-cmakepresets-json-when-a-file-cant-be-found-the-offending-file-name-is-not-reported/9076/1 "2023-09-25T02:58:14Z")

</div>

in CMakePresets.json, if one adds an include that references a file that can’t be found, the error message is simple “File not found”.

Please list the name of the missing file.

cmake --list-presets  
CMake Error: Could not read presets from /workspaces/nf-interpreter: File not found

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [September 25, 2023, 3:45pm UTC](https://discourse.cmake.org/t/bug-in-cmakepresets-json-when-a-file-cant-be-found-the-offending-file-name-is-not-reported/9076/2 "2023-09-25T15:45:48Z")

</div>

This seems like a straightforward issue that should be fixed. Can you please [file one](https://gitlab.kitware.com/cmake/cmake/-/issues)?

Cc: @kyle.edwards

---

<div class="post-metadata">

### Author: ![burtonrodman](https://discourse.cmake.org/user_avatar/discourse.cmake.org/burtonrodman/32/3866_2.png) [@burtonrodman](https://discourse.cmake.org/u/burtonrodman)
#### Post date: [September 27, 2023, 2:00am UTC](https://discourse.cmake.org/t/bug-in-cmakepresets-json-when-a-file-cant-be-found-the-offending-file-name-is-not-reported/9076/3 "2023-09-27T02:00:16Z")

</div>

tested with 3.27.6. offending file name is reported. Thanks!

root@cf94f58e0754:/workspaces/nf-interpreter# cmake --list-presets  
CMake Error: Could not read presets from /workspaces/nf-interpreter:  
File not found: /workspaces/nf-interpreter/CMake/xtensa-esp32c3.jsonn
