{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/AL/issues/4127","repository_url":"https://api.github.com/repos/Microsoft/AL","labels_url":"https://api.github.com/repos/Microsoft/AL/issues/4127/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/AL/issues/4127/comments","events_url":"https://api.github.com/repos/Microsoft/AL/issues/4127/events","html_url":"https://github.com/Microsoft/AL/issues/4127","id":374689463,"node_id":"MDU6SXNzdWUzNzQ2ODk0NjM=","number":4127,"title":"Unable to cast object of type SimpleNavTypeSymbol to IDotNetTypeSymbol","user":{"login":"gintuoklis","id":16342128,"node_id":"MDQ6VXNlcjE2MzQyMTI4","avatar_url":"https://avatars0.githubusercontent.com/u/16342128?v=4","gravatar_id":"","url":"https://api.github.com/users/gintuoklis","html_url":"https://github.com/gintuoklis","followers_url":"https://api.github.com/users/gintuoklis/followers","following_url":"https://api.github.com/users/gintuoklis/following{/other_user}","gists_url":"https://api.github.com/users/gintuoklis/gists{/gist_id}","starred_url":"https://api.github.com/users/gintuoklis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gintuoklis/subscriptions","organizations_url":"https://api.github.com/users/gintuoklis/orgs","repos_url":"https://api.github.com/users/gintuoklis/repos","events_url":"https://api.github.com/users/gintuoklis/events{/privacy}","received_events_url":"https://api.github.com/users/gintuoklis/received_events","type":"User","site_admin":false},"labels":[{"id":488757968,"node_id":"MDU6TGFiZWw0ODg3NTc5Njg=","url":"https://api.github.com/repos/Microsoft/AL/labels/bug","name":"bug","color":"ee0701","default":true},{"id":723436613,"node_id":"MDU6TGFiZWw3MjM0MzY2MTM=","url":"https://api.github.com/repos/Microsoft/AL/labels/investigate","name":"investigate","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":{"login":"atoader","id":3097909,"node_id":"MDQ6VXNlcjMwOTc5MDk=","avatar_url":"https://avatars2.githubusercontent.com/u/3097909?v=4","gravatar_id":"","url":"https://api.github.com/users/atoader","html_url":"https://github.com/atoader","followers_url":"https://api.github.com/users/atoader/followers","following_url":"https://api.github.com/users/atoader/following{/other_user}","gists_url":"https://api.github.com/users/atoader/gists{/gist_id}","starred_url":"https://api.github.com/users/atoader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atoader/subscriptions","organizations_url":"https://api.github.com/users/atoader/orgs","repos_url":"https://api.github.com/users/atoader/repos","events_url":"https://api.github.com/users/atoader/events{/privacy}","received_events_url":"https://api.github.com/users/atoader/received_events","type":"User","site_admin":false},"assignees":[{"login":"atoader","id":3097909,"node_id":"MDQ6VXNlcjMwOTc5MDk=","avatar_url":"https://avatars2.githubusercontent.com/u/3097909?v=4","gravatar_id":"","url":"https://api.github.com/users/atoader","html_url":"https://github.com/atoader","followers_url":"https://api.github.com/users/atoader/followers","following_url":"https://api.github.com/users/atoader/following{/other_user}","gists_url":"https://api.github.com/users/atoader/gists{/gist_id}","starred_url":"https://api.github.com/users/atoader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atoader/subscriptions","organizations_url":"https://api.github.com/users/atoader/orgs","repos_url":"https://api.github.com/users/atoader/repos","events_url":"https://api.github.com/users/atoader/events{/privacy}","received_events_url":"https://api.github.com/users/atoader/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-10-27T21:11:41Z","updated_at":"2018-10-29T12:22:25Z","closed_at":null,"author_association":"NONE","body":"Getting this while compiling extension. Any thoughts what might be causing it?\r\n\r\n```\r\nInternal error: System.InvalidCastException: Unable to cast object of type 'Microsoft.Dynamics.Nav.CodeAnalysis.Symbols.SimpleNavTypeSymbol' to type 'Microsoft.Dynamics.Nav.CodeAnalysis.IDotNetTypeSymbol'.\r\n   at Microsoft.Dynamics.Nav.CodeAnalysis.ConversionDotNet.ClassifyByRefConversion(TypeSymbol source, TypeSymbol byRefTarget) in C:\\a\\459\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Binder\\Semantics\\Conversions\\ConversionDotNet.cs:line 579\r\n   at Microsoft.Dynamics.Nav.CodeAnalysis.OverloadResolution.GetVarArgumentCompatibility(HashSet`1& useSiteDiagnostics, TypeSymbol argType, TypeSymbol parameterType) in C:\\a\\459\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Binder\\Semantics\\OverloadResolution\\OverloadResolution.cs:line 602\r\n   at Microsoft.Dynamics.Nav.CodeAnalysis.OverloadResolution.CheckArgumentForConversionApplicability(BoundExpression argument, ParameterSymbol parameter, HashSet`1& useSiteDiagnostics) in C:\\a\\459\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Binder\\Semantics\\OverloadResolution\\OverloadResolution.cs:line 580\r\n   at Microsoft.Dynamics.Nav.CodeAnalysis.OverloadResolution.IsApplicable(EffectiveParameters parameters, AnalyzedArguments arguments, BoundExpression receiverOpt, HashSet`1& useSiteDiagnostics) in C:\\a\\459\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Binder\\Semantics\\OverloadResolution\\OverloadResolution.cs:line 373\r\n   at Microsoft.Dynamics.Nav.CodeAnalysis.OverloadResolution.IsApplicable[TMember](TMember member, AnalyzedArguments arguments, EffectiveParameters effectiveParameters, BoundExpression receiverOpt, HashSet`1& useSiteDiagnostics) in C:\\a\\459\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Binder\\Semantics\\OverloadResolution\\OverloadResolution.cs:line 332\r\n   at Microsoft.Dynamics.Nav.CodeAnalysis.Binder.ResolveDefaultMethodGroup(BoundMethodGroup node, AnalyzedArguments analyzedArguments, HashSet`1& useSiteDiagnostics) in C:\\a\\459\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Binder\\Binder_Expressions.cs:line 2155\r\n   at Microsoft.Dynamics.Nav.CodeAnalysis.Binder.ResolveMethodGroup(BoundMethodGroup node, AnalyzedArguments analyzedArguments, HashSet`1& useSiteDiagnostics) in C:\\a\\459\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Binder\\Binder_Expressions.cs:line 2124\r\n   at Microsoft.Dynamics.Nav.CodeAnalysis.Binder.BindMethodGroupInvocation(SyntaxNode syntax, SyntaxNode expression, String methodName, BoundMethodGroup methodGroup, Boolean isStatement, AnalyzedArguments analyzedArguments, DiagnosticBag diagnostics) in C:\\a\\459\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Binder\\Binder_Invocation.cs:line 142\r\n   at Microsoft.Dynamics.Nav.CodeAnalysis.Binder.BindInvocationExpression(SyntaxNode node, SyntaxNode expression, String methodName, BoundExpression boundExpression, Boolean isStatement, Boolean asProperty, AnalyzedArguments analyzedArguments, DiagnosticBag diagnostics) in C:\\a\\459\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Binder\\Binder_Invocation.cs:line 98\r\n   at Microsoft.Dynamics.Nav.CodeAnalysis.Binder.BindInvocationExpression(InvocationExpressionSyntax node, DiagnosticBag diagnostics, Boolean isStatement) in C:\\a\\459\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Binder\\Binder_Invocation.cs:line 31\r\n   at Microsoft.Dynamics.Nav.CodeAnalysis.Binder.BindExpressionStatement(SyntaxNode node, ExpressionSyntax syntax, Boolean allowsAnyExpression, DiagnosticBag diagnostics) in C:\\a\\459\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Binder\\Binder_Statements.cs:line 521\r\n   at Microsoft.Dynamics.Nav.CodeAnalysis.Binder.BindStatement(StatementSyntax node, DiagnosticBag diagnostics) in C:\\a\\459\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Binder\\Binder_Statements.cs:line 83\r\n   at Microsoft.Dynamics.Nav.CodeAnalysis.Binder.BindStatements(SyntaxList`1 syntaxStatements, DiagnosticBag diagnostics, Binder binder) in C:\\a\\459\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Binder\\Binder_Statements.cs:line 53\r\n   at Microsoft.Dynamics.Nav.CodeAnalysis.Binder.BindBlock(BlockSyntax node, DiagnosticBag diagnostics, Binder blockBinder) in C:\\a\\459\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Binder\\Binder_Statements.cs:line 33\r\n   at Microsoft.Dynamics.Nav.CodeAnalysis.Binder.BindStatement(StatementSyntax node, DiagnosticBag diagnostics) in C:\\a\\459\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Binder\\Binder_Statements.cs:line 80\r\n   at Microsoft.Dynamics.Nav.CodeAnalysis.Binder.BindIfStatement(IfStatementSyntax node, DiagnosticBag diagnostics) in C:\\a\\459\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Binder\\Binder_Statements.cs:line 554\r\n   at Microsoft.Dynamics.Nav.CodeAnalysis.Binder.BindStatement(StatementSyntax node, DiagnosticBag diagnostics) in C:\\a\\459\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Binder\\Binder_Statements.cs:line 92\r\n   at Microsoft.Dynamics.Nav.CodeAnalysis.Binder.BindStatements(SyntaxList`1 syntaxStatements, DiagnosticBag diagnostics, Binder binder) in C:\\a\\459\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Binder\\Binder_Statements.cs:line 53\r\n   at Microsoft.Dynamics.Nav.CodeAnalysis.RepeatBinder.BindRepeatParts(DiagnosticBag diagnostics, Binder originalBinder) in C:\\a\\459\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Binder\\RepeatBinder.cs:line 24\r\n   at Microsoft.Dynamics.Nav.CodeAnalysis.Binder.BindStatement(StatementSyntax node, DiagnosticBag diagnostics) in C:\\a\\459\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Binder\\Binder_Statements.cs:line 101\r\n   at Microsoft.Dynamics.Nav.CodeAnalysis.Binder.BindIfStatement(IfStatementSyntax node, DiagnosticBag diagnostics) in C:\\a\\459\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Binder\\Binder_Statements.cs:line 546\r\n   at Microsoft.Dynamics.Nav.CodeAnalysis.Binder.BindStatement(StatementSyntax node, DiagnosticBag diagnostics) in C:\\a\\459\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Binder\\Binder_Statements.cs:line 92\r\n   at Microsoft.Dynamics.Nav.CodeAnalysis.Binder.BindStatements(SyntaxList`1 syntaxStatements, DiagnosticBag diagnostics, Binder binder) in C:\\a\\459\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Binder\\Binder_Statements.cs:line 53\r\n   at Microsoft.Dynamics.Nav.CodeAnalysis.Binder.BindBlock(BlockSyntax node, DiagnosticBag diagnostics, Binder blockBinder) in C:\\a\\459\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Binder\\Binder_Statements.cs:line 33\r\n   at Microsoft.Dynamics.Nav.CodeAnalysis.MethodCompiler.BindMethodBody(MethodSymbol method, DiagnosticBag diagnostics) in C:\\a\\459\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Compiler\\MethodCompiler.cs:line 482\r\n   at Microsoft.Dynamics.Nav.CodeAnalysis.MethodCompiler.CompileMethod(MethodSymbol methodSymbol) in C:\\a\\459\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Compiler\\MethodCompiler.cs:line 404\r\n   at Microsoft.Dynamics.Nav.CodeAnalysis.MethodCompiler.CompileMembers(ContainerSymbol containingType) in C:\\a\\459\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Compiler\\MethodCompiler.cs:line 328\r\n   at Microsoft.Dynamics.Nav.CodeAnalysis.MethodCompiler.CompileObject(ObjectTypeSymbol containingType) in C:\\a\\459\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Compiler\\MethodCompiler.cs:line 218\r\n   at Microsoft.Dynamics.Nav.CodeAnalysis.MethodCompiler.<>c__DisplayClass14_0.<CompileObjectAsTask>b__0() in C:\\a\\459\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Compiler\\MethodCompiler.cs:line 202\r\n   at Microsoft.Dynamics.Nav.CodeAnalysis.Utilities.UICultureUtilities.<>c__DisplayClass5_0.<WithCurrentUICulture>b__0() in C:\\a\\459\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Utilities\\UICultureUtilities.cs:line 152\r\n   at System.Threading.Tasks.Task.Execute()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.Dynamics.Nav.CodeAnalysis.MethodCompiler.WaitForWorkers() in C:\\a\\459\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Compiler\\MethodCompiler.cs:line 162\r\n   at Microsoft.Dynamics.Nav.CodeAnalysis.MethodCompiler.CompileMethodBodies(Compilation compilation, ModuleBuilder moduleBeingBuiltOpt, Boolean hasDeclarationErrors, DiagnosticBag diagnostics, Predicate`1 filterOpt, CancellationToken cancellationToken) in C:\\a\\459\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Compiler\\MethodCompiler.cs:line 146\r\n   at Microsoft.Dynamics.Nav.CodeAnalysis.Compilation.GetDiagnostics(CompilationStage stage, Boolean includeEarlierStages, CancellationToken cancellationToken) in C:\\a\\459\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Compilation\\Compilation.cs:line 624\r\n```\r\n\r\n**Versions:**\r\n - AL Langauge: 2.0.48254\r\n\r\nBest Regards,\r\nGintautas"},"comment":{"url":"https://api.github.com/repos/Microsoft/AL/issues/comments/433890081","html_url":"https://github.com/Microsoft/AL/issues/4127#issuecomment-433890081","issue_url":"https://api.github.com/repos/Microsoft/AL/issues/4127","id":433890081,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzg5MDA4MQ==","user":{"login":"gintuoklis","id":16342128,"node_id":"MDQ6VXNlcjE2MzQyMTI4","avatar_url":"https://avatars0.githubusercontent.com/u/16342128?v=4","gravatar_id":"","url":"https://api.github.com/users/gintuoklis","html_url":"https://github.com/gintuoklis","followers_url":"https://api.github.com/users/gintuoklis/followers","following_url":"https://api.github.com/users/gintuoklis/following{/other_user}","gists_url":"https://api.github.com/users/gintuoklis/gists{/gist_id}","starred_url":"https://api.github.com/users/gintuoklis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gintuoklis/subscriptions","organizations_url":"https://api.github.com/users/gintuoklis/orgs","repos_url":"https://api.github.com/users/gintuoklis/repos","events_url":"https://api.github.com/users/gintuoklis/events{/privacy}","received_events_url":"https://api.github.com/users/gintuoklis/received_events","type":"User","site_admin":false},"created_at":"2018-10-29T12:22:25Z","updated_at":"2018-10-29T12:22:25Z","author_association":"NONE","body":"I tried it using \r\n\r\nExtension language from bcinsider.azurecr.io/bcsandbox latest build. Pull it 6 days ago. There's no newer one. Let me know if I should use extension from different image.\r\n"}}
{"actor":{"display_login":"gintuoklis"}}