Internal error: RemObjects.Elements.Cirrus.CirrusException: Unknown identifier "System.Threading.Monitor"


(JohnMoshakis) #1

Hi,

Im getting an internal error while building a test app.

CarterDataWebApp.zip (73.7 KB)

              Reference: /Library/Frameworks/Mono.framework/Versions/5.16.0/lib/mono/4.5/mscorlib.dll
              -> Phase Resolving Bodies started.

E: Internal error: RemObjects.Elements.Cirrus.CirrusException: Unknown identifier “System.Threading.Monitor”
at RemObjects.Elements.Cirrus.ProxyCache.GetType (System.String fullname) [0x0001c] in <94fbf2c79e274fa7bdaa1a985e28012c>:0
at (wrapper remoting-invoke-with-check) RemObjects.Elements.Cirrus.ProxyCache.GetType(string)
at RemObjects.Oxygene.Code.Compiler.Compiler.CreateGenericFutureHelper (RemObjects.Oxygene.Code.IParsedType pt, RemObjects.Elements.Cirrus.ProxyCache lCache, RemObjects.Elements.Cirrus.AspectProcessor pr, RemObjects.Oxygene.Code.Compiler.FutureInfo fi, RemObjects.Oxygene.Code.CodeFile aFile, System.Boolean aUsePFX) [0x00341] in <94fbf2c79e274fa7bdaa1a985e28012c>:0
at RemObjects.Oxygene.Code.Compiler.Compiler.GenerateFutureHelperClassPFX (RemObjects.Oxygene.Code.Compiler.FutureInfo fi, RemObjects.Oxygene.Code.CodeFile aFile) [0x00027] in <94fbf2c79e274fa7bdaa1a985e28012c>:0
at RemObjects.Oxygene.Code.Compiler.Compiler.GenerateFutureHelperClass (RemObjects.Oxygene.Code.Compiler.FutureInfo fi, RemObjects.Oxygene.Code.CodeFile aFile) [0x0001a] in <94fbf2c79e274fa7bdaa1a985e28012c>:0
at RemObjects.Oxygene.Code.Compiler.Compiler.GetFutureInfo (RemObjects.Oxygene.Code.IPosition aErrorPos, RemObjects.Oxygene.Code.CodeFile aFile) [0x008f4] in <94fbf2c79e274fa7bdaa1a985e28012c>:0
at RemObjects.Oxygene.Code.CombinedParsedType.CheckMethod (RemObjects.Oxygene.Code.IMutableMethodImplementation element) [0x0072c] in <94fbf2c79e274fa7bdaa1a985e28012c>:0
at RemObjects.Oxygene.Code.CombinedParsedType.AddMethod (RemObjects.Oxygene.Code.MethodDefinition aMD, RemObjects.Oxygene.Code.Compiler.ScopeInfo& lScope, RemObjects.Oxygene.Code.LoadMembersFlags& aFlags) [0x003a3] in <94fbf2c79e274fa7bdaa1a985e28012c>:0
at RemObjects.Oxygene.Code.CombinedParsedType.LoadMembers () [0x0062f] in <94fbf2c79e274fa7bdaa1a985e28012c>:0
at RemObjects.Oxygene.Code.CombinedParsedType.GetMembers () [0x00009] in <94fbf2c79e274fa7bdaa1a985e28012c>:0
at RemObjects.Oxygene.Code.Compiler.Compiler.ResolveType (RemObjects.Oxygene.Code.Compiler.ScopeInfo lScope, RemObjects.Oxygene.Code.IParsedType aType) [0x0059b] in <94fbf2c79e274fa7bdaa1a985e28012c>:0
at RemObjects.Oxygene.Code.Compiler.Compiler+<>c__DisplayClass49.b__4 (RemObjects.Oxygene.Code.IParsedType aType) [0x00000] in <94fbf2c79e274fa7bdaa1a985e28012c>:0
at RemObjects.Oxygene.Code.Compiler.Compiler.ForAllInternalTypes (System.Action`1[T] aAt) [0x0007b] in <94fbf2c79e274fa7bdaa1a985e28012c>:0
at RemObjects.Oxygene.Code.Compiler.Compiler.ResolveMembers () [0x001de] in <94fbf2c79e274fa7bdaa1a985e28012c>:0
E: Could not find a “Main” method in this project
<- Phase Resolving Bodies finished, took 1.4267s.
-> Phase Checking Members started.
<- Phase Checking Members finished, took 0.0825s.
-> Phase Generating Helper Types started.
<- Phase Generating Helper Types failed.
<- Target Echoes failed compiling.

Cheers,
John


(RemObjects) #2

Thanks, logged as bugs://81859


(Carlo Kok) #3

Curious issue. So the type really isn’t in any of the referenced libraries. I’m going to have to investigate why, I did fix the message to be a lot better though.


(JohnMoshakis) #4

Is this one fixed ? I see it mentioned in the change log but the bug bot hasnt replied saying its closed.

The reason Im wondering is that although Im no longer seeing the error Im getting these errors

E: Indirectly used type “System.Data.Common.DbConnection” is defined in an unreferenced assembly (netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51) [/Users/JohnMoshakis/Documents/develop/Echoes/Core/CarterDataWebApp/Repositories/AWSPostgresRepository.pas (62)]
E: Indirectly used type “System.Data.Common.DbConnection” is defined in an unreferenced assembly (netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51) [/Users/JohnMoshakis/Documents/develop/Echoes/Core/CarterDataWebApp/Repositories/AWSPostgresRepository.pas (76)]

If I add the assembly System.Data.Common then it builds so Im not sure if its a bug ?

Cheers,
John


(Carlo Kok) #5

I fixed the error itself, but it will still fail because it can’t find the monitor type. I’ve got a research issue to see why it can’t be found in the first place.


(JohnMoshakis) #6

Ok thanks.

The original example had my coding errors. Do you want the updated one it just has the indirectly used type issue.