Page 2 of 2
Strange error when compiling project in XSharp 2.6
Posted: Tue Sep 22, 2020 2:48 pm
by leon-ts
Robert,
glad to hear that, thank you very much!
Best regards,
Leonid
Strange error when compiling project in XSharp 2.6
Posted: Tue Sep 22, 2020 2:54 pm
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
Strange error when compiling project in XSharp 2.6
Posted: Tue Sep 22, 2020 7:50 pm
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
Strange error when compiling project in XSharp 2.6
Posted: Tue Sep 22, 2020 10:06 pm
by Chris
HI Leonid,
Does this happen with the normal build, or only with the new compiler that I sent you?
Strange error when compiling project in XSharp 2.6
Posted: Wed Sep 23, 2020 6:16 am
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
Strange error when compiling project in XSharp 2.6
Posted: Wed Sep 23, 2020 6:18 am
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
Strange error when compiling project in XSharp 2.6
Posted: Wed Sep 23, 2020 7:18 am
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
Strange error when compiling project in XSharp 2.6
Posted: Wed Sep 23, 2020 1:57 pm
by leon-ts
Robert,
I sent you a letter with the project.
Best regards,
Leonid