Strange error when compiling project in XSharp 2.6

This forum is meant for questions and discussions about the X# language and tools
leon-ts
Posts: 435
Joined: Fri Feb 03, 2017 1:43 pm

Strange error when compiling project in XSharp 2.6

Post by leon-ts »

Robert,
glad to hear that, thank you very much!

Best regards,
Leonid
Best regards,
Leonid
leon-ts
Posts: 435
Joined: Fri Feb 03, 2017 1:43 pm

Strange error when compiling project in XSharp 2.6

Post by leon-ts »

Chris,
thanks for the clarification!

Indeed, we have not tested this code yet, since it refers to our system part (libraries), which we have already transported to XSharp, but is used in the application part, which we have not yet transported. Therefore, I fully admit that the code was compiled, but did not really work.

Best regards,
Leonid
Best regards,
Leonid
leon-ts
Posts: 435
Joined: Fri Feb 03, 2017 1:43 pm

Strange error when compiling project in XSharp 2.6

Post by leon-ts »

Another strange bug in 2.6 that doesn't point anywhere in the code:
XS9999 An internal compiler error has occurred: 'Operation is not valid due to the current state of the object.', at LanguageService.CodeAnalysis.ConstantValue.get_BooleanValue()
Project: 020 - Comintec.GUI
File: XSC
Line: 1
Best regards,
Leonid
Best regards,
Leonid
User avatar
Chris
Posts: 4906
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Strange error when compiling project in XSharp 2.6

Post by Chris »

HI Leonid,

Does this happen with the normal build, or only with the new compiler that I sent you?
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
leon-ts
Posts: 435
Joined: Fri Feb 03, 2017 1:43 pm

Strange error when compiling project in XSharp 2.6

Post by leon-ts »

Hi Chris,

This error also occurs in the original 2.6, without updated files. The error text looks like this:
XS9999 An internal compiler error has occurred: 'Operation is not valid due to the current state of the object.', at LanguageService.CodeAnalysis.ConstantValue.get_BooleanValue() in C:XSharpDevRoslynSrcCompilersCorePortableConstantValue.cs:line 42
Project: 020 - Comintec.GUI
File: XSC
Line: 1
Best regards,
Leonid
Best regards,
Leonid
User avatar
robert
Posts: 4520
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Strange error when compiling project in XSharp 2.6

Post by robert »

Leonid,
Since there is no source code location, this looks like an error in compiler generated code, such as the properties that are generated for partial classes where accesses or assigns are not in the same source file (or only one of them exists).
It would be really helpful if you could send us the code that causes the error. Please use private email for that.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
leon-ts
Posts: 435
Joined: Fri Feb 03, 2017 1:43 pm

Strange error when compiling project in XSharp 2.6

Post by leon-ts »

Robert,

This is a great solution with a dozen related projects. I will now try to make a copy of the solution and cut only the projects needed to make the problem reproduce. It will take some time (today).

Best regards,
Leonid
Best regards,
Leonid
leon-ts
Posts: 435
Joined: Fri Feb 03, 2017 1:43 pm

Strange error when compiling project in XSharp 2.6

Post by leon-ts »

Robert,
I sent you a letter with the project.

Best regards,
Leonid
Best regards,
Leonid
Post Reply