Bug 11115 – VisualD rebuilds project even if nothing changed
Status
RESOLVED
Resolution
INVALID
Severity
major
Priority
P2
Component
visuald
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-09-24T01:40:00Z
Last change time
2013-10-18T11:44:45Z
Assigned to
nobody
Creator
verylonglogin.reg
Comments
Comment #0 by verylonglogin.reg — 2013-09-24T01:40:08Z
Every Debug+Run command causes some projects to rebuild (~10 seconds). Looks like VisualD has some false positives about changed dependencies. This is a very old problem. It would be good to have at least a workaround to force the IDE to rebuild only on source files change as now users are forced to disable "buid on run" and build solution manually after code change.
Comment #1 by r.sagitario — 2013-09-24T11:59:07Z
I guess you are using dmd 2.064alpha built from git-HEAD.
What's causing the rebuild is a dependency generated by dmd to the pseudo module __entrypoint.d. I'd say this is a regression in dmd.
Comment #2 by verylonglogin.reg — 2013-09-24T12:00:21Z
(In reply to comment #1)
> I guess you are using dmd 2.064alpha built from git-HEAD.
>
> What's causing the rebuild is a dependency generated by dmd to the pseudo
> module __entrypoint.d. I'd say this is a regression in dmd.
So file an issue please.
Kenji has made the fix in dmd, is the dependency detection by Visual D now ok for your projects?
Comment #5 by verylonglogin.reg — 2013-09-30T08:35:35Z
I was unable to check the project because of dmd regression and thought it is invalid as Rainer told. I checked another project now and unfortunately it is still valid.
Comment #7 by verylonglogin.reg — 2013-10-03T11:24:49Z
(In reply to comment #6)
> I have added an option to display the reason for rebuilding (see the project
> option page)
Thanks! So it's `__main.d` generated because of `-main` switch in library unittest build.