xsharp.eu • Error XS1031 Type Expected: 2.18.04 --> 2.23.0.2
Page 1 of 1

Error XS1031 Type Expected: 2.18.04 --> 2.23.0.2

Posted: Sun Jul 13, 2025 12:13 am
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

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

Posted: Sun Jul 13, 2025 9:47 am
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

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

Posted: Mon Jul 14, 2025 8:17 am
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

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

Posted: Mon Jul 14, 2025 8:41 am
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?

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

Posted: Mon Jul 14, 2025 8:43 am
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

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

Posted: Mon Jul 14, 2025 9:40 am
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.

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

Posted: Mon Jul 14, 2025 9:57 am
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.

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

Posted: Mon Jul 14, 2025 7:32 pm
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...

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

Posted: Tue Jul 15, 2025 2:40 am
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.

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

Posted: Tue Jul 15, 2025 8:52 am
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.