Compilation is incredibly fussy in 23.4 eh?

So I have been trying out the new version and ooof, the compilation is now so fussy compared to before.

I am guessing this was due to trying to solve the chronic speed issues in 22.10 when working with Windows compatibility but its really really fussy now. I can sometimes have the same workflow, in a project with the same dependencies and one will compile, the other won’t. Sometimes deleting .local fixes, sometimes is won’t and it makes non-sensical complaints of things like an argument cannot be converted to JObject from type JObject (which makes no sense of course).

It seems we need to get all the imports and assembly references updated as its now alot stricter, previously I could just fully declare a method using the full namespace (for example newtonsoft serializing) but now it also needs it in the imports.

Anyone else noticed odd stuff or got suggestions on fixes?

Here’s specifically one I mean that I cannot make sense of.
I have a library activity, its import argument is a JObject (clientDetails).

After updating the Studio 23.4.0 this workflow now refuses to compile, complaining that

'Object of type ‘System.Activities.InArgument1[Newtonsoft.Json.Linq.JObject]' cannot be converted to type 'System.Activities.InArgument1[Newtonsoft.Json.Linq.JObject]’.

Which, as you can see, makes so sense as that is the same data type…

If I add this library to a fresh workflow and add a JObject variable in this argument it will compile first time I try, but if I add or remove any references it refuses to compile again, even when the references are restored to exactly what it was before it still refuses to compile.

Hi @Jon_Smith,

Thank you for reporting this issue.
Indeed, Studio 23.4.0 included some issues around compilation, some of which were addressed within the subsequent patches.
The specific exception you provided in your last comment was one of the issues that got a fix in Studio version 23.4.2.
Could you, please, upgrade your setup to the latest available patch version and let us know if you still encounter compilation issues? If so, could you, please, upload the projects that include compilation issues?

Best Regards!

Sorry for the slow reply. I have been away.

The issues still persist intermittently on the latest patches.
It is very strange as if I repeatedly try to publish then after perhaps 3 to 5 failed attempts it will then compile. I do not know why.

Compilation on version 22.10 remains completely stable.

Hi @John_Smith ,

I was not able to reproduce the issue in my setup. Could you, please, attach the project you used to reproduce the issue so we could further investigate what could cause this behavior?

Best Regards!

I think this was abit of a duplicated topic actually, there were more details here.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.