-
Notifications
You must be signed in to change notification settings - Fork 92
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
error in process sentinel: cide--idb-file-to-obj: Wrong type argument: hash-table-p, nil #203
Comments
I've seen that error before. Does it always happen? Normally it's because there's an issue with the compilation database. |
It reports error everytime I open .cpp file. |
On a non-cmake project? |
Yes. Maybe cmake-ide need to add condtion detect? |
Hi, @atilaneves sorry for bothering you. Is there any update on this issue? Still seeing this error message. |
Do you have a minimal repro I can use? |
When I try to create an reproduce environment, I figured out why now, The CMakeLists.txt file is empty. This caused the problem. After I write it up. The problem is gone. |
Yeah, I guess so. I do wonder how to detect that though; obviously a completely empty CMakeLists.txt is a problem, but it could be faulty in other ways. |
Elisp can read and detect whether CMakeLists.txt is empty. (with-temp-buffer
(insert-file-contents "CMakeLists.txt")
(let ((content (buffer-substring-no-properties (point-min) (point-max))))
(when (string-empty-p content)
...))) This detection is very strict, only when |
Right. What I meant by "obviously a completely empty CMakeLists.txt is a problem" is that this is an easy case to check, but that's a particular example that doesn't generalise. For instance, a non-empty file with a line containing "42" isn't empty, but it might as well be from cmake's perspective. |
Does CMake provide some parser command or lint command? I checked |
I got error on opening C++ source code file.
And here is my config:
The text was updated successfully, but these errors were encountered: