Thread overview
[Issue 11143] New: Error highlighting incorrect
Sep 30, 2013
Manu
Sep 30, 2013
Manu
Sep 30, 2013
Manu
Oct 03, 2013
Rainer Schuetze
Oct 04, 2013
Manu
September 30, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11143

           Summary: Error highlighting incorrect
           Product: D
           Version: D2
          Platform: All
        OS/Version: Windows
            Status: NEW
          Severity: minor
          Priority: P2
         Component: VisualD
        AssignedTo: nobody@puremagic.com
        ReportedBy: turkeyman@gmail.com


--- Comment #0 from Manu <turkeyman@gmail.com> 2013-09-29 21:37:49 PDT ---
Paste into VS with Visual-D installed.

private template getComponent(char c, alias v)
{
    static if(c == 'x')        alias getComponent = v.x;
    else static if(c == 'y')    alias getComponent = v.y;
    else static if(c == 'z')    alias getComponent = v.z;
    else static if(c == 'w')    alias getComponent = v.w;
    else static if(c == '0')    float getComponent = 0;
    else static if(c == '1')    float getComponent = 1;
    else static if(c == '2')    float getComponent = 2;
    else static assert(false, "Invalid swizzle component: '" ~ c ~ "'");
}

Note the first '=' underlines red, and then every 'else' that follows.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 30, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11143



--- Comment #1 from Manu <turkeyman@gmail.com> 2013-09-29 22:15:27 PDT ---
This seems to be fixed, but a new issue has taken it's place; if there is an error in the opDispatch, or even in it's constraint, it will silently fail and produce the error "No property: blah", as if there were no opDispatch at all.

Ie, it no longer gives compile errors within opDispatch, and compile errors are useful :)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 30, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11143



--- Comment #2 from Manu <turkeyman@gmail.com> 2013-09-29 22:16:04 PDT ---
(In reply to comment #1)
> This seems to be fixed, but a new issue has taken it's place; if there is an error in the opDispatch, or even in it's constraint, it will silently fail and produce the error "No property: blah", as if there were no opDispatch at all.
> 
> Ie, it no longer gives compile errors within opDispatch, and compile errors are useful :)

Oops! Bloody bugzilla! Posted on the wrong bug!

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 03, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11143


Rainer Schuetze <r.sagitario@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |r.sagitario@gmx.de


--- Comment #3 from Rainer Schuetze <r.sagitario@gmx.de> 2013-10-03 10:59:29 PDT ---
(In reply to comment #0)
> Paste into VS with Visual-D installed.
> [...]
> Note the first '=' underlines red, and then every 'else' that follows.

Works for me. Have you tried it with 0.3.37rc3? I have uploaded an rc4 just now, please try that: http://www.dsource.org/projects/visuald/browser/downloads/VisualD-v0.3.37rc4.exe

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


Manu <turkeyman@gmail.com> changed:

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


--- Comment #4 from Manu <turkeyman@gmail.com> 2013-10-03 19:26:45 PDT ---
Okay, updated to latest.
It's fine. Sorry!

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