-
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
"Wrong type argument: hash-table-p, nil" when opening non-CMake files #143
Comments
I also encountered the same problem. |
Could you test with my fork of cmake-ide ? I have maybe fixed this ... |
Alright this issue has been introduced in 99bfce8 apparently and @dlyr your PR seems to fix it, although a bunch of weird messages are logged:
Plus this happens when I
But that's another issue. |
Yeah the locate message are for debug purpose (I will remove them soon I hope). |
By the way what did you expect from rtags ? |
To jump to the symbol under the point, which works indeed but then that error appears. You need to install |
(rtags works well for me with an cmake-ide project) |
@dlyr it's performed automatically and it works with master. Here's the stack trace:
(Feel free to move this thread to a new issue if you want.) |
hum, I don't know and it work on my project, could you post a minimal example to reproduce the bug ? |
I just noticed that this happens the first time only. |
bad fix for atilaneves#55 atilaneves#143 By the way there is still warning that should raise other issues : cmake-ide.el:1147:1:Warning: the following functions are not known to be defined: rtags-executable-find, string-empty-p, irony-cdb-json-add-compile-commands-path, flycheck-clear, subseq, distance
Yeps. |
When i include subr-x yes (and update rtags rdm to last version) ... i have update my pr to load subr-x if available, but not deepl tested yet.
++ david
… Le 12 déc. 2017 à 15:06, Andrea Cardaci ***@***.***> a écrit :
it works right ?
Yeps.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Just for the record: This also happens if you use in-source-build. I.e. |
I kind of lost track of this... but it seems that the original error ("Wrong type argument: hash-table-p, nil") does not happen anymore. Can you confirm? |
@juergenhoetzel See PR #185 for the problem that happens if a build exists in the source directory. |
This is still a problem when following the installation and usage manual. My impression so far from using rtags + cmake-ide is that it works less than half of the time and every almost every time I open a source file, I get this error because it can't find the compilation DB, so why doesn't it just fail silently and let me work? |
@skrat I'd fix it if I knew what was going on. I haven't been able to reproduce it. |
@atilaneves I'm more than happy to assist, I'm on Emacs 27, this is the stack trace:
|
@skrat Thanks, that helps but I still don't know how to reproduce it. It'd be easier if someone who can would debug. |
Just open a standalone C file and the following happens:
IMHO
cmake-ide
should do nothing at all (especially startingrdm
and creating build directories) if it cannot find a suitable environment first.This seems related to: #93 and #111.
Relevant configuration:
cmake-ide
from MELPAThe text was updated successfully, but these errors were encountered: