fbpx
Welcome, Guest
Username: Password: Remember me
Welcome to the XSharp forum!

Tell us and our members who you are, what you like and why you became a member of this site.
We welcome all new members and hope to see you around a lot!
  • Page:
  • 1

TOPIC: XSCompiler.exe - System Warn... "Unknown Hard Error"

XSCompiler.exe - System Warn... "Unknown Hard Error" 04 Mar 2019 15:48 #7497

  • kitz's Avatar

  • kitz

  • Topic Author


  • Posts: 26
  • Hello!
    This dialog window arises when I try to build a console project VS2017 15.9.7 XS2.0.0.9
    followed by another on (see attachment).
    Error list is empty,
    Output is this:
    " XSharp Compilation time: 00:08:22.2190926
    Done building project "Prim.xsproj" -- FAILED.
    0 Warning(s), 0 Error(s)

    Build FAILED.
    ========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped =========="
    Project attacked, too.

    How can this be avoided?
    SORRY, wrong forum :-(
    Can it be moved?
    BR Kurt
    Attachments:

    Please Log in or Create an account to join the conversation.

    Last edit: by kitz.

    XSCompiler.exe - System Warn... "Unknown Hard Error" 04 Mar 2019 16:15 #7498

  • Chris's Avatar

  • Chris


  • Posts: 1938
  • Hi Kurt,

    It's a compiler bug, an internal error happens when it tries to compile this line:
    console.WriteLine(uiInx:tostring + ":  " + uiprim1[uiInx]:ToString() + "  ---  " + uiPrim2[uiInx]:Tostring())

    Notice the missing "()" from the first "tostring" call, add the parens and it will compile fine. Will log this problem for Robert to look into (so the compiler reports an error instead of crashing) , thanks for your report!
    XSharp Development Team
    chris(at)xsharp.eu

    Please Log in or Create an account to join the conversation.

    XSCompiler.exe - System Warn... "Unknown Hard Error" 04 Mar 2019 17:29 #7500

  • Jamal's Avatar

  • Jamal


  • Posts: 198
  • Hi Chris,

    FWIW, VB.NET allows ToString() without parenthesis. C# complains about at compile time.

    If X# is going to handle it like C#, which I think it should, a compile time error should be reported like you said.

    Jamal

    Please Log in or Create an account to join the conversation.

    XSCompiler.exe - System Warn... "Unknown Hard Error" 04 Mar 2019 17:57 #7501

  • lumberjack's Avatar

  • lumberjack


  • Posts: 683
  • Jamal wrote: FWIW, VB.NET allows ToString() without parenthesis. C# complains about at compile time.
    If X# is going to handle it like C#, which I think it should, a compile time error should be reported like you said.

    I agree, compile time Error, ToString should be handled as a Property, hence no such property exist to be thrown as error.

    My 2c.
    ______________________
    Johan Nel
    George, South Africa

    Please Log in or Create an account to join the conversation.

    XSCompiler.exe - System Warn... "Unknown Hard Error" 04 Mar 2019 20:58 #7505

  • Chris's Avatar

  • Chris


  • Posts: 1938
  • Hi Jamal,

    Jamal wrote: Hi Chris,

    FWIW, VB.NET allows ToString() without parenthesis. C# complains about at compile time.

    If X# is going to handle it like C#, which I think it should, a compile time error should be reported like you said.

    Jamal


    Yeah, absolutely! Btw, I just realized that I had already logged this issue last week and Robert I think has already fixed it! Somebody had reported it last week already, but I managed to forget that :)

    Chris
    XSharp Development Team
    chris(at)xsharp.eu

    Please Log in or Create an account to join the conversation.

    XSCompiler.exe - System Warn... "Unknown Hard Error" 05 Mar 2019 08:17 #7510

  • robert's Avatar

  • robert


  • Posts: 1731
  • Chris,
    This is new for me. But I'll fix it anyway.

    Robert
    XSharp Development Team
    The Netherlands

    Please Log in or Create an account to join the conversation.

    XSCompiler.exe - System Warn... "Unknown Hard Error" 05 Mar 2019 08:26 #7511

  • kitz's Avatar

  • kitz

  • Topic Author


  • Posts: 26
  • Chris,
    I just "wrote along" and as the error occurred I didn't change anything, because such errors may be hard to reproduce. Glad it helped to find it :-)
    BR Kurt

    Please Log in or Create an account to join the conversation.

    XSCompiler.exe - System Warn... "Unknown Hard Error" 06 Mar 2019 09:46 #7522

  • George's Avatar

  • George


  • Posts: 94
  • I think is the same issue with Trim() without parenthesis we discussed last week.

    George

    Please Log in or Create an account to join the conversation.

    XSCompiler.exe - System Warn... "Unknown Hard Error" 06 Mar 2019 13:42 #7525

  • robert's Avatar

  • robert


  • Posts: 1731
  • George,

    Yes and it is fixed in our internal build.

    Robert
    XSharp Development Team
    The Netherlands

    Please Log in or Create an account to join the conversation.

    XSCompiler.exe - System Warn... "Unknown Hard Error" 06 Mar 2019 15:36 #7526

  • George's Avatar

  • George


  • Posts: 94
  • Thank you Robert

    George

    Please Log in or Create an account to join the conversation.

    • Page:
    • 1