{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/AL/issues/2613","repository_url":"https://api.github.com/repos/Microsoft/AL","labels_url":"https://api.github.com/repos/Microsoft/AL/issues/2613/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/AL/issues/2613/comments","events_url":"https://api.github.com/repos/Microsoft/AL/issues/2613/events","html_url":"https://github.com/Microsoft/AL/issues/2613","id":332751455,"node_id":"MDU6SXNzdWUzMzI3NTE0NTU=","number":2613,"title":"textDocument/completion' failed with error:'The object reference was not set to an object instance.''","user":{"login":"OlivierHellmann","id":38344133,"node_id":"MDQ6VXNlcjM4MzQ0MTMz","avatar_url":"https://avatars2.githubusercontent.com/u/38344133?v=4","gravatar_id":"","url":"https://api.github.com/users/OlivierHellmann","html_url":"https://github.com/OlivierHellmann","followers_url":"https://api.github.com/users/OlivierHellmann/followers","following_url":"https://api.github.com/users/OlivierHellmann/following{/other_user}","gists_url":"https://api.github.com/users/OlivierHellmann/gists{/gist_id}","starred_url":"https://api.github.com/users/OlivierHellmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OlivierHellmann/subscriptions","organizations_url":"https://api.github.com/users/OlivierHellmann/orgs","repos_url":"https://api.github.com/users/OlivierHellmann/repos","events_url":"https://api.github.com/users/OlivierHellmann/events{/privacy}","received_events_url":"https://api.github.com/users/OlivierHellmann/received_events","type":"User","site_admin":false},"labels":[{"id":488757971,"node_id":"MDU6TGFiZWw0ODg3NTc5NzE=","url":"https://api.github.com/repos/Microsoft/AL/labels/input-needed","name":"input-needed","color":"d93f0b","default":false},{"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":"qutreson","id":31541422,"node_id":"MDQ6VXNlcjMxNTQxNDIy","avatar_url":"https://avatars2.githubusercontent.com/u/31541422?v=4","gravatar_id":"","url":"https://api.github.com/users/qutreson","html_url":"https://github.com/qutreson","followers_url":"https://api.github.com/users/qutreson/followers","following_url":"https://api.github.com/users/qutreson/following{/other_user}","gists_url":"https://api.github.com/users/qutreson/gists{/gist_id}","starred_url":"https://api.github.com/users/qutreson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qutreson/subscriptions","organizations_url":"https://api.github.com/users/qutreson/orgs","repos_url":"https://api.github.com/users/qutreson/repos","events_url":"https://api.github.com/users/qutreson/events{/privacy}","received_events_url":"https://api.github.com/users/qutreson/received_events","type":"User","site_admin":false},"assignees":[{"login":"qutreson","id":31541422,"node_id":"MDQ6VXNlcjMxNTQxNDIy","avatar_url":"https://avatars2.githubusercontent.com/u/31541422?v=4","gravatar_id":"","url":"https://api.github.com/users/qutreson","html_url":"https://github.com/qutreson","followers_url":"https://api.github.com/users/qutreson/followers","following_url":"https://api.github.com/users/qutreson/following{/other_user}","gists_url":"https://api.github.com/users/qutreson/gists{/gist_id}","starred_url":"https://api.github.com/users/qutreson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qutreson/subscriptions","organizations_url":"https://api.github.com/users/qutreson/orgs","repos_url":"https://api.github.com/users/qutreson/repos","events_url":"https://api.github.com/users/qutreson/events{/privacy}","received_events_url":"https://api.github.com/users/qutreson/received_events","type":"User","site_admin":false}],"milestone":null,"comments":8,"created_at":"2018-06-15T12:14:53Z","updated_at":"2018-06-21T13:08:57Z","closed_at":null,"author_association":"NONE","body":"I am working on an Extension which should be added to the AppSource. To achieve this I need to build a test Extension. But in my test Extension I get this error message when I try to use IntelliSense in the test procedure.\r\n\r\n```\r\nProcessing of message 'textDocument/completion' failed with error: 'Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.'\r\nStackTrace:\r\n   bei Microsoft.Dynamics.Nav.CodeAnalysis.SymbolReference.SerializableSymbolModelConverter.ResolveApplicationObjectReference(ModuleSymbol module, SymbolKind kind, Subtype subType) in C:\\a\\36\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\SymbolReference\\SerializableSymbolModelConverter.cs:Zeile 707.\r\n   bei Microsoft.Dynamics.Nav.CodeAnalysis.SymbolReference.SerializableSymbolModelConverter.ResolveElementType(ModuleSymbol module, Symbol owner, TypeDefinition typeDefinition) in C:\\a\\36\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\SymbolReference\\SerializableSymbolModelConverter.cs:Zeile 804.\r\n   bei Microsoft.Dynamics.Nav.CodeAnalysis.SymbolReference.SerializableSymbolModelConverter.ResolveType(ModuleSymbol module, Symbol owner, TypeDefinition typeDefinition) in C:\\a\\36\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\SymbolReference\\SerializableSymbolModelConverter.cs:Zeile 76.\r\n   bei Microsoft.Dynamics.Nav.CodeAnalysis.Symbols.ReferenceGlobalVariableSymbol..ctor(ContainerSymbol containingSymbol, VariableDefinition variable) in C:\\a\\36\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Symbols\\Reference\\ReferenceGlobalVariableSymbol.cs:Zeile 22.\r\n   bei Microsoft.Dynamics.Nav.CodeAnalysis.Symbols.ReferencePageTypeSymbol.<LazyGetMembers>b__30_0(VariableDefinition f) in C:\\a\\36\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Symbols\\Reference\\ReferencePageTypeSymbol.cs:Zeile 147.\r\n   bei System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()\r\n   bei System.Linq.Buffer`1..ctor(IEnumerable`1 source)\r\n   bei System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)\r\n   bei System.Collections.Immutable.ImmutableArray.CreateRange[T](IEnumerable`1 items)\r\n   bei Microsoft.Dynamics.Nav.CodeAnalysis.Symbols.ReferencePageTypeSymbol.LazyGetMembers() in C:\\a\\36\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Symbols\\Reference\\ReferencePageTypeSymbol.cs:Zeile 147.\r\n   bei Microsoft.Dynamics.Nav.CodeAnalysis.Symbols.ReferencePageTypeSymbol.GetMembers() in C:\\a\\36\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Symbols\\Reference\\ReferencePageTypeSymbol.cs:Zeile 80.\r\n   bei Microsoft.Dynamics.Nav.CodeAnalysis.SymbolExtensions.GetMembersOfKind[T](ContainerSymbol symbol, SymbolKind kind) in C:\\a\\36\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Symbols\\KindsAndExtensions\\SymbolExtensions.cs:Zeile 1097.\r\n   bei Microsoft.Dynamics.Nav.CodeAnalysis.Symbols.PageTypeSymbol.<.ctor>b__1_0() in C:\\a\\36\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Symbols\\PageTypeSymbol.cs:Zeile 30.\r\n   bei System.Lazy`1.CreateValue()\r\n--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---\r\n   bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   bei System.Lazy`1.get_Value()\r\n   bei Microsoft.Dynamics.Nav.CodeAnalysis.Symbols.TestPageTypeSymbol..ctor(Symbol containingSymbol, PageTypeSymbol pageTypeSymbol) in C:\\a\\36\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Symbols\\BuiltIn\\TestPageTypeSymbol.cs:Zeile 32.\r\n   bei Microsoft.Dynamics.Nav.CodeAnalysis.Binder.BindSubTypedDataType(Symbol ownerSymbol, SubtypedDataTypeSyntax syntax, DiagnosticBag diagnostics) in C:\\a\\36\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Binder\\Binder_Symbols.cs:Zeile 224.\r\n   bei Microsoft.Dynamics.Nav.CodeAnalysis.Binder.BindType(Symbol ownerSymbol, DataTypeSyntax syntax, DiagnosticBag diagnostics) in C:\\a\\36\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Binder\\Binder_Symbols.cs:Zeile 48.\r\n   bei Microsoft.Dynamics.Nav.CodeAnalysis.Binder.BindVariableOrParameterType(Symbol ownerSymbol, TypeReferenceBaseSyntax syntax, DiagnosticBag diagnostics) in C:\\a\\36\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Binder\\Binder_Symbols.cs:Zeile 377.\r\n   bei Microsoft.Dynamics.Nav.CodeAnalysis.Binder.BindVariableType(Symbol ownerSymbol, TypeReferenceBaseSyntax syntax, DiagnosticBag diagnostics) in C:\\a\\36\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Binder\\Binder_Symbols.cs:Zeile 326.\r\n   bei Microsoft.Dynamics.Nav.CodeAnalysis.SourceVariableSymbol.LazyGetType() in C:\\a\\36\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Symbols\\Source\\SourceVariableSymbol.cs:Zeile 119.\r\n   bei Microsoft.Dynamics.Nav.CodeAnalysis.SourceVariableSymbol.get_Type() in C:\\a\\36\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Symbols\\Source\\SourceVariableSymbol.cs:Zeile 76.\r\n   bei Microsoft.Dynamics.Nav.CodeAnalysis.SymbolDisplayVisitor.VisitVariable(VariableSymbol symbol) in C:\\a\\36\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\SymbolDisplay\\SymbolDisplayVisitor.cs:Zeile 172.\r\n   bei Microsoft.Dynamics.Nav.CodeAnalysis.SymbolDisplay.ToDisplayParts(ISymbol symbol, SemanticModel semanticModelOpt, Int32 positionOpt, SymbolDisplayFormat format, Boolean minimal) in C:\\a\\36\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\SymbolDisplay\\SymbolDisplay.cs:Zeile 131.\r\n   bei Microsoft.Dynamics.Nav.CodeAnalysis.Symbol.ToDisplayParts(SymbolDisplayFormat format) in C:\\a\\36\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\Symbols\\Symbol.cs:Zeile 491.\r\n   bei Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces.Completion.SymbolCompletionItem.Create(String displayText, TextSpan span, IReadOnlyList`1 symbols, Int32 contextPosition, Int32 descriptionPosition, String sortText, String insertionText, Nullable`1 glyph, String filterText, Boolean preselect, SupportedPlatformData supportedPlatforms, Boolean isArgumentName, ImmutableDictionary`2 properties, ImmutableArray`1 tags, CompletionItemRules rules) in C:\\a\\36\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces\\Completion\\SymbolCompletionItem.cs:Zeile 63.\r\n   bei Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces.Completion.AbstractSymbolCompletionProvider.CreateItem(String displayText, String insertionText, Int32 position, List`1 symbols, AbstractSyntaxContext context, TextSpan span, Boolean preselect, SupportedPlatformData supportedPlatformData) in C:\\a\\36\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces\\Completion\\AbstractSymbolCompletionProvider.cs:Zeile 112.\r\n   bei Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces.Completion.AbstractSymbolCompletionProvider.CreateItem(String displayText, String insertionText, Int32 position, List`1 symbols, AbstractSyntaxContext context, TextSpan span, Dictionary`2 invalidProjectMap, List`1 totalProjects, Boolean preselect) in C:\\a\\36\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces\\Completion\\AbstractSymbolCompletionProvider.cs:Zeile 107.\r\n   bei Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces.Completion.AbstractSymbolCompletionProvider.<>c__DisplayClass5_0.<CreateItems>b__3(IGrouping`2 g) in C:\\a\\36\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces\\Completion\\AbstractSymbolCompletionProvider.cs:Zeile 48.\r\n   bei System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()\r\n   bei System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)\r\n   bei System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)\r\n   bei Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces.Completion.AbstractSymbolCompletionProvider.CreateItems(Int32 position, IEnumerable`1 symbols, TextSpan span, AbstractSyntaxContext context, Dictionary`2 invalidProjectMap, List`1 totalProjects, Boolean preselect) in C:\\a\\36\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces\\Completion\\AbstractSymbolCompletionProvider.cs:Zeile 45.\r\n   bei Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces.Completion.AbstractSymbolCompletionProvider.<GetItemsWorkerAsync>d__14.MoveNext() in C:\\a\\36\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces\\Completion\\AbstractSymbolCompletionProvider.cs:Zeile 194.\r\n--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---\r\n   bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   bei Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces.Completion.AbstractSymbolCompletionProvider.<ProvideCompletionsAsync>d__13.MoveNext() in C:\\a\\36\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces\\Completion\\AbstractSymbolCompletionProvider.cs:Zeile 174.\r\n--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---\r\n   bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   bei Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces.Completion.CompletionServiceWithProviders.<GetContextAsync>d__24.MoveNext() in C:\\a\\36\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces\\Completion\\CompletionServiceWithProviders.cs:Zeile 369.\r\n--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---\r\n   bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   bei Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces.Completion.CompletionServiceWithProviders.<GetCompletionsAsync>d__17.MoveNext() in C:\\a\\36\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces\\Completion\\CompletionServiceWithProviders.cs:Zeile 186.\r\n--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---\r\n   bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   bei Microsoft.Dynamics.Nav.EditorServices.Protocol.LanguageServer.CompletionRequestHandler.<HandleAsync>d__4.MoveNext() in C:\\a\\36\\s\\source\\Prod\\Microsoft.Dynamics.Nav.EditorServices.Protocol\\LanguageServer\\CompletionRequestHandler.cs:Zeile 42.\r\n--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---\r\n   bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   bei Microsoft.Dynamics.Nav.EditorServices.Protocol.RequestRegistry.<Process>d__6.MoveNext() in C:\\a\\36\\s\\source\\Prod\\Microsoft.Dynamics.Nav.EditorServices.Protocol\\Endpoints\\RequestRegistry.cs:Zeile 59.\r\n```\r\n\r\nI am working with the newest AL Language Version (0.12.17091).\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/AL/issues/comments/399097557","html_url":"https://github.com/Microsoft/AL/issues/2613#issuecomment-399097557","issue_url":"https://api.github.com/repos/Microsoft/AL/issues/2613","id":399097557,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTA5NzU1Nw==","user":{"login":"DominikDitoIvosevic","id":6378638,"node_id":"MDQ6VXNlcjYzNzg2Mzg=","avatar_url":"https://avatars2.githubusercontent.com/u/6378638?v=4","gravatar_id":"","url":"https://api.github.com/users/DominikDitoIvosevic","html_url":"https://github.com/DominikDitoIvosevic","followers_url":"https://api.github.com/users/DominikDitoIvosevic/followers","following_url":"https://api.github.com/users/DominikDitoIvosevic/following{/other_user}","gists_url":"https://api.github.com/users/DominikDitoIvosevic/gists{/gist_id}","starred_url":"https://api.github.com/users/DominikDitoIvosevic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DominikDitoIvosevic/subscriptions","organizations_url":"https://api.github.com/users/DominikDitoIvosevic/orgs","repos_url":"https://api.github.com/users/DominikDitoIvosevic/repos","events_url":"https://api.github.com/users/DominikDitoIvosevic/events{/privacy}","received_events_url":"https://api.github.com/users/DominikDitoIvosevic/received_events","type":"User","site_admin":false},"created_at":"2018-06-21T13:08:57Z","updated_at":"2018-06-21T13:08:57Z","author_association":"MEMBER","body":"Please note that this issue should not prevent you from creating your package. From what I can read from the stack trace, this issue happens when requesting autocomplete when coding."}}
{"actor":{"display_login":"DominikDitoIvosevic"}}