Error XS1031 Type Expected: 2.18.04 --> 2.23.0.2

This forum is meant for questions and discussions about the X# language and tools
Post Reply
jonhn
Posts: 97
Joined: Thu Feb 01, 2018 8:04 am
Location: New Zealand

Error XS1031 Type Expected: 2.18.04 --> 2.23.0.2

Post by jonhn »

Hi all,
I've just installed the latest XSharp Cahors 2.23.0.2 - Subscriber version, moving off version 2.18.04
Just one new "error" when I compile, but 8485 instances of it in my application so looking for how to ignore it.

Error XS1031 Type Expected

Can I tell the compiler to ignore or is there a switch in XIDE to flip for this?

CLASS StandardShellMenu INHERIT Menu

CONSTRUCTOR(oOwner)
LOCAL oTB AS ToolBar

Cheers,
Jonathan
User avatar
robert
Posts: 4886
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Re: Error XS1031 Type Expected: 2.18.04 --> 2.23.0.2

Post by robert »

Jonathan,

Try to enable the /vo15 (Allow untyped locals) flag on the compiler options page.
In the past, this option was automatically enabled when compiling in the VO dialect.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
jonhn
Posts: 97
Joined: Thu Feb 01, 2018 8:04 am
Location: New Zealand

Re: Error XS1031 Type Expected: 2.18.04 --> 2.23.0.2

Post by jonhn »

Thanks Robert,

That option is disabled in my XIDE. I've looked around in the .xiproj file but adding VO15=1 in various places didn't seem to help.
Sorry to ask again - any suggestions on enabling that option?

Thanks,
Jonathan
Attachments
Capture.JPG
FFF
Posts: 1731
Joined: Fri Sep 25, 2015 4:52 pm
Location: Germany

Re: Error XS1031 Type Expected: 2.18.04 --> 2.23.0.2

Post by FFF »

That's strange. It should suffice to set the checkbox in Xide's properties compiler page, no need to mess with the proj file.
Did you try to quickly make a new Vo dialect app from the gallery, to check, if it's there disabled, too?
Regards
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
User avatar
robert
Posts: 4886
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Re: Error XS1031 Type Expected: 2.18.04 --> 2.23.0.2

Post by robert »

Jonathan,
jonhn wrote: Mon Jul 14, 2025 8:17 am Thanks Robert,

That option is disabled in my XIDE. I've looked around in the .xiproj file but adding VO15=1 in various places didn't seem to help.
Sorry to ask again - any suggestions on enabling that option?

Thanks,
Jonathan
If the option is disabled, then I suggest that you install XIDE again from the XIDE folder:
"c:\Program Files (x86)\XSharp\Xide"

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
jonhn
Posts: 97
Joined: Thu Feb 01, 2018 8:04 am
Location: New Zealand

Re: Error XS1031 Type Expected: 2.18.04 --> 2.23.0.2

Post by jonhn »

Thanks Robert and Karl,
I'll try reinstalling the Xide later. I did try creating a new VO/X# application and it is disabled in the compiler options there also.
User avatar
Chris
Posts: 5468
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Re: Error XS1031 Type Expected: 2.18.04 --> 2.23.0.2

Post by Chris »

Hi Jonathan,

Ah, OK, that's the problem then, you are running an old XIDE version. Please install the latest one and probably you will not need to do anything, as normally the new XIDE automatically sets this property for existing VO dialect apps.
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
jonhn
Posts: 97
Joined: Thu Feb 01, 2018 8:04 am
Location: New Zealand

Re: Error XS1031 Type Expected: 2.18.04 --> 2.23.0.2

Post by jonhn »

I'm using the May 2025 version 2.20 of XIDE

I see there is a new 2.24.0.1 - Subscriber version of the compiler from yesterday - I'll download that and see...
User avatar
Chris
Posts: 5468
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Re: Error XS1031 Type Expected: 2.18.04 --> 2.23.0.2

Post by Chris »

Hi Jonathan,

As you said you were using X# 2.23, you could have used also XIDE 2.23, as Robert mentioned you can find it in "c:\Program Files (x86)\XSharp\Xide". But yeah, you can go directly to 2.24 as well. And the X# installer at the end also asks you if you want to install XIDE.
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
jonhn
Posts: 97
Joined: Thu Feb 01, 2018 8:04 am
Location: New Zealand

Re: Error XS1031 Type Expected: 2.18.04 --> 2.23.0.2

Post by jonhn »

Thanks everyone, that works now.
As usual I contributed most (all) of the issue.
The textbox that pops up when Xide is updated says to use Xide.32.exe or Xide.64.exe, but nothing happens if you click OK and forget about the message (except you spend ages looking for the reason a few things no longer work).

So, once you install the new version, remember to delete the old Xide.exe and reassociate your projects to the new versions. :roll:
The good news is that I now have 2.24 instead of 2.23, thank you.
Post Reply