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" 9 months 1 day ago #7497

  kitz's Avatar Topic Author kitz Offline Posts: 19
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" 9 months 1 day ago #7498

  Chris's Avatar Chris Offline Posts: 1505
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" 9 months 1 day ago #7500

  Jamal's Avatar Jamal Offline Posts: 184
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" 9 months 1 day ago #7501

  lumberjack's Avatar lumberjack Offline Posts: 625

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" 9 months 1 day ago #7505

  Chris's Avatar Chris Offline Posts: 1505
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" 9 months 1 day ago #7510

  robert's Avatar robert Offline Posts: 1364
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" 9 months 1 day ago #7511

  kitz's Avatar Topic Author kitz Offline Posts: 19
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" 9 months 4 hours ago #7522

  George's Avatar George Offline Posts: 93
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" 9 months 57 minutes ago #7525

  robert's Avatar robert Offline Posts: 1364
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" 8 months 4 weeks ago #7526

  George's Avatar George Offline Posts: 93
Thank you Robert

George

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

  • Page:
  • 1