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

D standard library not detected if I select "Release" as the current build configuration #251

Open
dlangBugzillaToGithub opened this issue May 31, 2019 · 15 comments

Comments

@dlangBugzillaToGithub
Copy link
Collaborator

x13989 reported this on 2019-05-31T09:21:23Z

Transfered from https://issues.dlang.org/show_bug.cgi?id=19927

CC List

  • r.sagitario

Description

D Win32 project, VD 0.49.2, VS 16.1.1.
If I select the Debug or Release (either x86 or x64) build configuration, everything works properly. But if I switch the build configuration to Debug LDC/Release LDC, the auto-completion and go-to-definition function of the standard library won't work. It would say "No definition found for 'writeln'", and there are nothing but keywords in the completion list. These issues would no longer occur if I switch back to Debug/Release. I suspect that Visual D's not identifying LDC's standard library files lead to this problem. Please fix this!

!!!There are attachements in the bugzilla issue that have not been copied over!!!

@dlangBugzillaToGithub
Copy link
Collaborator Author

r.sagitario commented on 2019-05-31T17:14:20Z

When trying to reproduce this, it doesn't seem to fail in general, but switching between LDC and DMD seems to freeze the semantic engine by some mixin handling. The issue goes away if I disable "mixin analysis". Is this the case for you, too?

BTW: what project type do you use, visualdproj or vcxproj?

@dlangBugzillaToGithub
Copy link
Collaborator Author

x13989 commented on 2019-06-01T02:13:18Z

visualdproj

@dlangBugzillaToGithub
Copy link
Collaborator Author

x13989 commented on 2019-06-01T02:17:02Z

I don’t know why the stdlib gets undetected when I switch the build config to LDC. I’ve tried to add ldc\bin to Path, but it doesn’t helps.

@dlangBugzillaToGithub
Copy link
Collaborator Author

x13989 commented on 2019-06-01T02:19:49Z

Disabling mixin analysis seems to work.

@dlangBugzillaToGithub
Copy link
Collaborator Author

x13989 commented on 2019-06-01T04:51:17Z

Is it possible to bring this problem a full fix?

@dlangBugzillaToGithub
Copy link
Collaborator Author

x13989 commented on 2019-06-01T06:23:44Z

I have attempted and disabling mixin analysis won’t help fixing this issue.

@dlangBugzillaToGithub
Copy link
Collaborator Author

x13989 commented on 2019-06-01T06:28:05Z

I found that Debug LDC works fine, but Release LDC is bugged as I described.

@dlangBugzillaToGithub
Copy link
Collaborator Author

x13989 commented on 2019-06-01T06:33:27Z

Sorry, I’ve described the condition wrongly. It should be: The problem only occurs in Release/Release LDC, and doesn’t occurs under Debug/Debug LDC. It isn’t related with LDC, I’m sorry for my wrong description before.

@dlangBugzillaToGithub
Copy link
Collaborator Author

x13989 commented on 2019-06-01T06:40:47Z

Created attachment 1749
Debug

@dlangBugzillaToGithub
Copy link
Collaborator Author

x13989 commented on 2019-06-01T06:41:45Z

Created attachment 1750
Debug

@dlangBugzillaToGithub
Copy link
Collaborator Author

x13989 commented on 2019-06-01T06:44:56Z

Created attachment 1751
Debug LDC

@dlangBugzillaToGithub
Copy link
Collaborator Author

x13989 commented on 2019-06-01T06:47:08Z

Created attachment 1752
Release

@dlangBugzillaToGithub
Copy link
Collaborator Author

x13989 commented on 2019-06-01T06:51:43Z

Created attachment 1753
Release LDC

@dlangBugzillaToGithub
Copy link
Collaborator Author

x13989 commented on 2019-06-01T06:52:17Z

Added some images to describe the bug

@dlangBugzillaToGithub
Copy link
Collaborator Author

r.sagitario commented on 2020-03-15T08:20:13Z

Does this also happen with the dmd based engine?

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

No branches or pull requests

1 participant