www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12155] New: Better line and column numbers for missing semicolon

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12155

           Summary: Better line and column numbers for missing semicolon
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc



D forces on the programmer the burden to end lines of code with a semicolon
(unline Scala, Go and other language), this is supposed to offer better error
messages. But if I forget a semicolon in this code:


import std.stdio;
void main() {
    writeln("hello ")
    /*
    ...
    */
    // ...
    writeln("world");
}


Using the -vcolumns dmd switch I receive this error message:

test.d(8,5): Error: found 'writeln' when expecting ';' following statement

In such cases I'd like the compiler to give an error message with line number
and column number closer to where the semicolon should go, to help me fix the
code faster:

test.d(3,21): Error: found 'writeln' when expecting ';' following statement

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 13 2014
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12155


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich gmail.com
         Resolution|                            |DUPLICATE



01:56:42 PST ---
*** This issue has been marked as a duplicate of issue 8102 ***

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 14 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12155


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies gmail.com



Bearophile - the only person around who constantly re-reports their own bugs.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 15 2014
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12155




07:55:14 PST ---

 Bearophile - the only person around who constantly re-reports their own bugs.
So much so that I have a special entry for his bugs in my speed dial in my browser. :P -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 15 2014