XS1503 debug error occurs at different places on and on

This forum is meant for questions and discussions about the X# language and tools
Post Reply
Jan
Posts: 10
Joined: Wed Mar 16, 2022 8:19 am
Location: Germany

XS1503 debug error occurs at different places on and on

Post by Jan »

Hello,

we migrated a project from Vulcan.NET to X#, and the compiler option "Implicit numeric conversions" (/vo4) is set (as it was already in the Vulcan.NET project).

We are getting the follwoing behaviour:

Developer is building the project -> no errors
Devoloper is editing let's say module Alpha.prg
Developer is building the project again -> Error XS1503 Argument1: cannot convert from 'dword' to 'int' in module Beta.prg

We can then correct this by doing explicit type conversions of course, but the above mentioned behavior occurs again and again in modules that compiled without errors before and that have not currently been edited.

Is there a way to end this behaviour?

Version is X# Cahors 2.20.0.3

Thank you,
Jan
User avatar
Chris
Posts: 4953
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Re: XS1503 debug error occurs at different places on and on

Post by Chris »

Hi Jan,

This behavior usually means that you have selected (through the Solution Properties->Configuration Properties) not to include all projects (libraries) when doing a Project Build, in which case when you do a build, only the "active" project gets built, not the rest. If that's the case, it's only a "Rebuild" that forces rebuilding even projects that are set not to be built always.

So I think in some of the projects (libaries) you have set the /vo4 option to on, but in some others it may be to off. Or it's possible that you have set it to on for say the Debug configuration, but not for the Release configuration, and you do get the error as expected when you build for Release.
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
Jan
Posts: 10
Joined: Wed Mar 16, 2022 8:19 am
Location: Germany

Re: XS1503 debug error occurs at different places on and on

Post by Jan »

Hi Chris,

we have only one project in our solution (with /vo4 checked), and "Build" is checked in Solution->Properties -> Configuration Properties -> (our project) in Debug configuration as well as Release configuration.

Jan Hartmann
leon-ts
Posts: 435
Joined: Fri Feb 03, 2017 1:43 pm

Re: XS1503 debug error occurs at different places on and on

Post by leon-ts »

Hello Chris, Jan,
I reported this problem a year ago.
Here is the link (details there): https://www.xsharp.eu/forum/topic/3320
Since then, the problem has existed in all subsequent versions of X# and is often annoying.
Best regards,
Leonid
User avatar
robert
Posts: 4555
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Re: XS1503 debug error occurs at different places on and on

Post by robert »

Guys,
I understand that this can be quite frustrating.
But without reproducible example, this problem will only be fixed if we accidentally find the code responsible for the problem.
So if you can create/share an example that shows this, then that would be very helpfull.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
HansjoergP
Posts: 142
Joined: Mon Jul 25, 2016 3:58 pm
Location: Italy

Re: XS1503 debug error occurs at different places on and on

Post by HansjoergP »

Hello,
One question: if the error occurs, is another Visual Studio open in this case? I sometimes have cases where it seems that Visual Studio is getting data from another instance.
We had sometimes the error https://github.com/X-Sharp/XSharpPublic/issues/721
Post Reply