-
Notifications
You must be signed in to change notification settings - Fork 71
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
Could not find declaration or Could not find symbol #153
Comments
|
This is going to sound like a dumb question, but did you import std.stdio? DCD filters its autocomplete list based on the import statements in the file. |
|
One other thing. Try changing: to DCD looks for imports the way DMD does. If you tell it to import "std.stdio" with that include path it will try "/usr/include/dmd/std/stdio.d", which doesn't exist. |
|
;) I did import that file yes, by the way I forgot to ask I've installed all emacs reqs (popwin, autocomplete, yasnippet) but when I open a .d file which minor modes should then be running ? edit: i've changed those lines, it doesn't look like it changed anything though, when I start the dcd-server I see all the [info] getting symbols, (for the same files as before) but the 'could not find declaration/symbol problem' still persists. |
|
I don't even know what a minor mode is. |
|
changing the conf lines did do something though, I managed to jump to the definition of writefln ! I still don't know why the autocompletion is not showing, and I also don't get the same jumping to definition working for the derelictSDL import . progress though cool |
|
the issue was the derelictSDL path wasn't deep enough (like the dmd one) now my conf file is and I can jump to all definitions, now that's something! |
Clarify documentation as a result of #153
|
I've updated the readme to make DCD's handling of import directories more clear. |
|
cool, so my nooby questions actually lead to some use for others!, speaking about nooby questions, now it's safe to assume the definitions and symbols can be found (since I can goto them via Cc. ); have you got an idea why the autocompletion isn't kicking in ? I've installed all requirements (auto-complete package. yasnippet and popwin ), but the autcomplete popup never shows, when I trigger it to come up manually wih auto-complete-mode, ac-start, it's not shown either. |
|
enabling autocomplete mode and then writing 'SDL_' then I call the autocomplete command manually it gives me this feedback : |
|
I've tried to get autocompletion going as described here #106 but this [info] getting completions is not triggered anyway from within emacs.. |
|
Pardon me for jumping in. I'm one of the maintainers of emacs integration. to and |
|
@tsukimizake I've got autocompletion woohoo, and a haunting 'Exit the snippet first'.. :) (add-hook 'd-mode-hook 'yas-minor-mode-on) |
|
@NikkiKoole |
I am trying to get DCD working together with emacs24, (in debian wheezy)
I followed all steps in both setups:
that file is :
/usr/include/dmd/
/home/nikki/projects/d/DerelictSDL2/
it gets found because the first line on dcd-server says:
[info ] Loading configuration from /home/nikki/.config/dcd/dcd.conf,
when I run dcd-server on the terminal I see its loading symbols .
I am starting the server from the terminal, I see all loading symbols and all is green, but when I actually open a file in emacs, and try any of the C-c .?, functions I just see messages like
[error] Could not find declaration of DerelictSDL2 from position 636
[error] Could not find symbol
[error] Could not find declaration of writefln from position 1122
[error] Could not find symbol
I believe I am just missing one detail, but I don't know which one ;)
could someone point me in the right direction ?
The text was updated successfully, but these errors were encountered: