Closed burner closed 1 year ago
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?
visualdproj
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.
Disabling mixin analysis seems to work.
Is it possible to bring this problem a full fix?
I have attempted and disabling mixin analysis won’t help fixing this issue.
I found that Debug LDC works fine, but Release LDC is bugged as I described.
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.
Created attachment 1749 Debug
Created attachment 1750 Debug
Created attachment 1751 Debug LDC
Created attachment 1752 Release
Created attachment 1753 Release LDC
Added some images to describe the bug
Does this also happen with the dmd based engine?
x13989 reported this on 2019-05-31T09:21:23Z
Transfered from https://issues.dlang.org/show_bug.cgi?id=19927
CC List
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!!!