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.
Comment #3 by r.sagitario — 2013-09-24T12:07:29Z
Comment #4 by r.sagitario — 2013-09-25T23:55:17Z
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 #6 by r.sagitario — 2013-10-03T10:47:58Z
I have added an option to display the reason for rebuilding (see the project option page), please try http://www.dsource.org/projects/visuald/browser/downloads/VisualD-v0.3.37rc4.exe to see why it happens.
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.
Comment #8 by r.sagitario — 2013-10-03T11:58:19Z
Comment #9 by r.sagitario — 2013-10-18T10:26:54Z
The bug fix for __main is in dmd 2.064beta, do you still run into issues?
Comment #10 by verylonglogin.reg — 2013-10-18T11:44:45Z
Everything is working now. Sorry, I thought it has already been resolved.