CRLF gives XS0103 error

This forum is meant for questions and discussions about the X# language and tools
Anonymous

CRLF gives XS0103 error

Post by Anonymous »

Hi,

I'm attempting to build my Vulcan solution with XSharp 1.0.2 (plus XSharp103.zip files) in VS2017.

Apart from the many XS0165 errors (use of unassigned locals) that I've had to suppress, why am I getting XS0103 errors for every occurrence of CRLF when this is defined in XSharpDefs.xh?

Mike
ic2
Posts: 1804
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

CRLF gives XS0103 error

Post by ic2 »

Hello Mike,

Chris wrote us earlier (when we added a seperate define for CRLF):

#include "XSharpDefs.vh"

and CRLF should work.

So I think a missing include may result in XS103 - The name 'identifier' does not exist in the current context.

Dick
MikeB

CRLF gives XS0103 error

Post by MikeB »

Hi Dick,

I was going to do that but it conflicts with the documentation where I read that XSharpDefs.xh was implicitly included in XSharp projects, but perhaps this only applied to new projects.
User avatar
robert
Posts: 4258
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

CRLF gives XS0103 error

Post by robert »

Mike,
Can you check the project properties, on the Build Page, the value for "Suppress Standard Header file".
If this says false, then the include should be included automatically and CRLF should be defined.
If you are having a problem even when the value says FALSE, then please then send me your xsproj file?

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
MikeB

CRLF gives XS0103 error

Post by MikeB »

Hi Robert,

The setting is FALSE. XSPROJ file attached as TXT.

Thanks,

Mike
Attachments
AIS.FormFactory.xsproj.txt
(8.48 KiB) Downloaded 35 times
FFF
Posts: 1532
Joined: Fri Sep 25, 2015 4:52 pm
Location: Germany

CRLF gives XS0103 error

Post by FFF »

Robert,
as we found, "false" is usually set (from template), but does not work until once swapped to true and back.
Just made a new Winform app, same behaviour as with console...
@Mike: did you try that?

Karl
Regards
Karl
(on Win8.1/64, Xide32 2.19, X#2.19.0.2.)
User avatar
Chris
Posts: 4584
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

CRLF gives XS0103 error

Post by Chris »

Hi Karl,

I checked a little further, looks like the problem is related to what Robert described in his previous article about project files, VS and MSBuild, there's a typo in the project option what saved to file. This still looks Greek to me :), but I am sure Robert will be able to fix it.

Chris
Chris Pyrgas

XSharp Development Team test
chris(at)xsharp.eu
MikeB

CRLF gives XS0103 error

Post by MikeB »

Hi Karl,

Yes, changing setting to TRUE then FALSE resolved this.

Thanks,

Mike
MikeB

CRLF gives XS0103 error

Post by MikeB »

Hi Robert,

I've attached copies of another project file before and after editing as Karl suggested. I hope this helps.

Regards,

Mike
Attachments
AIS.ServerClasses(before).xsproj.txt
(6.89 KiB) Downloaded 34 times
AIS.ServerClasses(after).vnproj.txt
(6.4 KiB) Downloaded 33 times
User avatar
robert
Posts: 4258
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

CRLF gives XS0103 error

Post by robert »

Mike,
Thanks for the examples. This is exactly what I expected.
We plan to release a new version next week that will fix this.

Robert

PS: I have moved the whole thread to the product form, where it makes more sense
XSharp Development Team
The Netherlands
robert@xsharp.eu
Post Reply