Page 1 of 1
XSCompiler.exe - System Warn... "Unknown Hard Error"
Posted: Mon Mar 04, 2019 2:48 pm
by kitz
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
XSCompiler.exe - System Warn... "Unknown Hard Error"
Posted: Mon Mar 04, 2019 3:15 pm
by Chris
Hi Kurt,
It's a compiler bug, an internal error happens when it tries to compile this line:
Code: Select all
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!
XSCompiler.exe - System Warn... "Unknown Hard Error"
Posted: Mon Mar 04, 2019 4:29 pm
by Jamal
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
XSCompiler.exe - System Warn... "Unknown Hard Error"
Posted: Mon Mar 04, 2019 4:57 pm
by lumberjack
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.
XSCompiler.exe - System Warn... "Unknown Hard Error"
Posted: Mon Mar 04, 2019 7:58 pm
by Chris
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
XSCompiler.exe - System Warn... "Unknown Hard Error"
Posted: Tue Mar 05, 2019 7:17 am
by robert
Chris,
This is new for me. But I'll fix it anyway.
Robert
XSCompiler.exe - System Warn... "Unknown Hard Error"
Posted: Tue Mar 05, 2019 7:26 am
by kitz
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
XSCompiler.exe - System Warn... "Unknown Hard Error"
Posted: Wed Mar 06, 2019 8:46 am
by George
I think is the same issue with Trim() without parenthesis we discussed last week.
George
XSCompiler.exe - System Warn... "Unknown Hard Error"
Posted: Wed Mar 06, 2019 12:42 pm
by robert
George,
Yes and it is fixed in our internal build.
Robert
XSCompiler.exe - System Warn... "Unknown Hard Error"
Posted: Wed Mar 06, 2019 2:36 pm
by George
Thank you Robert
George