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

We encourage new members to introduce themselves here. Get to know one another and share your interests.
Post Reply
kitz
Posts: 87
Joined: Wed Nov 29, 2017 8:56 am

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

Post 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
Attachments
Prim_errorwindows.rtf
(498.66 KiB) Downloaded 174 times
prim.zip
(12.07 KiB) Downloaded 169 times
User avatar
Chris
Posts: 4906
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

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

Post 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!
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
Jamal
Posts: 315
Joined: Mon Jul 03, 2017 7:02 pm

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

Post 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
User avatar
lumberjack
Posts: 727
Joined: Fri Sep 25, 2015 3:11 pm
Location: South Africa

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

Post 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.
______________________
Johan Nel
Boshof, South Africa
User avatar
Chris
Posts: 4906
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

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

Post 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
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
User avatar
robert
Posts: 4520
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

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

Post by robert »

Chris,
This is new for me. But I'll fix it anyway.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
kitz
Posts: 87
Joined: Wed Nov 29, 2017 8:56 am

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

Post 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
George
Posts: 106
Joined: Thu Nov 05, 2015 9:17 am

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

Post by George »

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

George
User avatar
robert
Posts: 4520
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

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

Post by robert »

George,

Yes and it is fixed in our internal build.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
George
Posts: 106
Joined: Thu Nov 05, 2015 9:17 am

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

Post by George »

Thank you Robert

George
Post Reply