Skip to content
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

CMakeLists.txt not detected #5

Open
johann-cm opened this issue Oct 17, 2024 · 7 comments
Open

CMakeLists.txt not detected #5

johann-cm opened this issue Oct 17, 2024 · 7 comments

Comments

@johann-cm
Copy link

Since I've recently updated zed, the CMakeLists.txt no longer gets properly recognized as a cmake source file.
Instead, it gets recognized as a plain text file, and I have to manually select the language.
.cmake files are still being automatically recognized.

My zed version: 0.157.4

@k0tran
Copy link
Owner

k0tran commented Oct 18, 2024

Can confirm on 0.157.5
Not sure why it's happening though
At first though that the problem that it is matching whole filename, but zed-make works just fine

@k0tran
Copy link
Owner

k0tran commented Nov 6, 2024

Related issue in the upstream zed-industries/zed#20291
@johann-cm Until it is resolved you can fix this issue by adding these lines to your Zed settings (inside brackets):

"file_types": {
    "CMake": [
      "CMakeLists.txt"
    ],
}

This fixed issue for me.

@notpeter
Copy link

notpeter commented Nov 26, 2024

@regisx001
Copy link

there is another issue with the with Cmake extension.
when changing manually to the cmake filetype. and write some cmake command (add_executable or something in the CMakeLists.txt file) it seem to remove the added file and reset it to the previous state .

@Camille019
Copy link

there is another issue with the with Cmake extension. when changing manually to the cmake filetype. and write some cmake command (add_executable or something in the CMakeLists.txt file) it seem to remove the added file and reset it to the previous state .

@regisx001 can you open a dedicated issue for this ?

@regisx001
Copy link

there is another issue with the with Cmake extension. when changing manually to the cmake filetype. and write some cmake command (add_executable or something in the CMakeLists.txt file) it seem to remove the added file and reset it to the previous state .

@regisx001 can you open a dedicated issue for this ?

Sure !

@k0tran
Copy link
Owner

k0tran commented Jan 14, 2025

there is another issue with the with Cmake extension. when changing manually to the cmake filetype. and write some cmake command (add_executable or something in the CMakeLists.txt file) it seem to remove the added file and reset it to the previous state .

I'm a bit late, sorry. If the issue is still there, please open another one in this repo. Personally I was unable to reproduce this bug, so no fix yet

Keeping this one open until it is fixed in zed. It will be easier for newcomers this way

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants