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

Doc comment display - not working for functions declarations #177

Closed
ghost opened this issue Dec 1, 2014 · 5 comments
Closed

Doc comment display - not working for functions declarations #177

ghost opened this issue Dec 1, 2014 · 5 comments
Labels
Milestone

Comments

@ghost
Copy link

ghost commented Dec 1, 2014

I have this simple file, under windows, called sample.d:

/// comment
uint aa(){return 0;}

I run this commands:

echo off
start dcd-server
dcd-client -d -c 20 sample.d > temp.txt
type temp.txt
erase temp.txt
pause

I get no result.

And DCD-server tells me:

[info ] Getting doc comment
[error] Could not find declaration of uint from position 20
[error] Could not find symbol
[info ] Request processed in 0.485199 milliseconds

If I replace aa return type by void it works.
and the file contains, as expected _comment_ and DCD-server tells me

[info ] Getting doc comment
[info ] Request processed in 0.362165 milliseconds

@Zalastax
Copy link

I have this problem too.
My system is Windows 8 x64

@ghost
Copy link
Author

ghost commented Dec 19, 2014

Hi, Zalastax. The problem is a simplification of why
https://github.com/BBasile/Coedit/blob/master/src/ce_main.pas#L931
is commented.

@ghost
Copy link
Author

ghost commented Dec 20, 2014

Oops soory Zalastax I didn't meant to be so self-centered, actually you pushed the topic and it may be usefull. B.Shott has updated libdparse since two days and I hope it could fix the issue.

@Hackerpilot
Copy link
Collaborator

My recent updates to libdparse involve fixing bugs that you will probably never trigger. (I've been testing the parser against a random code generator.)

@Hackerpilot
Copy link
Collaborator

This was a bug in DCD's expression detection code, and not a problem with libdparse.

@Hackerpilot Hackerpilot added the bug label Jan 4, 2015
@Hackerpilot Hackerpilot added this to the 0.4.1 milestone Jan 4, 2015
Hackerpilot added a commit that referenced this issue Jan 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants