Thread overview
[Issue 3711] New: Ddoc does not generate nothing if std.stdio is imported
Jan 16, 2010
Igor Lesik
Jan 16, 2010
Igor Lesik
Feb 04, 2010
Igor Lesik
January 16, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3711

           Summary: Ddoc does not generate nothing if std.stdio is
                    imported
           Product: D
           Version: 2.038
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: curoles@yahoo.com


--- Comment #0 from Igor Lesik <curoles@yahoo.com> 2010-01-15 23:30:52 PST ---
Steps to Reproduce:

Create file ddoc_bug1.d:
1 /// comment out the line below to see this 2.039
2 import std.stdio;
3 void main(){}

call dmd -D ddoc_bug1.d

Result:

"body" is empty in the generated html file.

<html><head>
...
    <h1>ddoc_bug1</h1>
    <!-- Generated by Ddoc from ddoc_bug1.d -->
<br><br>
<hr><small>Page generated by <a
...

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 16, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3711


Igor Lesik <curoles@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |curoles@yahoo.com


--- Comment #1 from Igor Lesik <curoles@yahoo.com> 2010-01-16 01:46:27 PST ---
Ok. I see what happend: "Documentation comments not associated with a declaration are ignored". Seems that comments can't be associated with ImportDeclaration.

If it is a feature, then it is kind of confusing one, because if there is no ModuleDeclaration then all comments preceding ImportDeclaration disapper, instead of being applied to the entire module.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 04, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3711


Igor Lesik <curoles@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------