{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/18142","repository_url":"https://api.github.com/repos/dotnet/roslyn","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/18142/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/18142/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/18142/events","html_url":"https://github.com/dotnet/roslyn/issues/18142","id":216762803,"number":18142,"title":"After updating Roslyn from 1.3.2 to 2.0.0, SemanticModel.GetSymbolInfo or GetDeclaredSymbol for Primitive types returns NULL","user":{"login":"abhijitparkhi1983","id":7124615,"avatar_url":"https://avatars2.githubusercontent.com/u/7124615?v=3","gravatar_id":"","url":"https://api.github.com/users/abhijitparkhi1983","html_url":"https://github.com/abhijitparkhi1983","followers_url":"https://api.github.com/users/abhijitparkhi1983/followers","following_url":"https://api.github.com/users/abhijitparkhi1983/following{/other_user}","gists_url":"https://api.github.com/users/abhijitparkhi1983/gists{/gist_id}","starred_url":"https://api.github.com/users/abhijitparkhi1983/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abhijitparkhi1983/subscriptions","organizations_url":"https://api.github.com/users/abhijitparkhi1983/orgs","repos_url":"https://api.github.com/users/abhijitparkhi1983/repos","events_url":"https://api.github.com/users/abhijitparkhi1983/events{/privacy}","received_events_url":"https://api.github.com/users/abhijitparkhi1983/received_events","type":"User","site_admin":false},"labels":[{"id":166673288,"url":"https://api.github.com/repos/dotnet/roslyn/labels/Area-Compilers","name":"Area-Compilers","color":"5319e7","default":false},{"id":207461502,"url":"https://api.github.com/repos/dotnet/roslyn/labels/Need%20More%20Info","name":"Need More Info","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2017-03-24T11:58:01Z","updated_at":"2017-04-06T09:17:32Z","closed_at":null,"body":"**Earlier Version Used**:\r\n1.3.2\r\n \r\n**Updated Version which is now getting Used**: \r\n2.0.0\r\n\r\n**Steps to Reproduce**:\r\n\r\n1. Environment used : **Visual Studios 2015 Community version**\r\n2. When using **Roslyn version 1.3.2**, **SemanticModel.GetSymbolInfo** for a Primitive type node, say **int**, **semanticModel.GetSymbolInfo(node).Symbol** was returning **System.Int32**.\r\n3. When we upgraded Roslyn to **version 2.0.0** through Visual Studios 2015's **Manage Nuget Packages for Solution**, **SemanticModel.GetSymbolInfo** for a Primitive type node, say **int**, **semanticModel.GetSymbolInfo(node).Symbol** returns NULL.\r\n4. Note:  \r\n      1.  **Document.GetSemanticModelAsync().Result** is the code used for getting the **SemanticModel**.\r\n      2. The Document object intern has been created using **workspace.OpenSolutionAsync(solutionPath).Result** \r\n      3. **SemanticModel.Compilation.References** returns empty list for version 2.0.0.\r\n\r\n**Expected Behavior**:\r\nWith version 2.0.0, **semanticModel.GetSymbolInfo(node).Symbol** for a Primitive Type node, say **int**, should return a non NULL value with **System.Int32**.\r\n\r\n**Actual Behavior**:\r\nWith version 2.0.0, **semanticModel.GetSymbolInfo(node).Symbol** returns NULL for a Primitive Type Node, say **int**."},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/292116423","html_url":"https://github.com/dotnet/roslyn/issues/18142#issuecomment-292116423","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/18142","id":292116423,"user":{"login":"abhijitparkhi1983","id":7124615,"avatar_url":"https://avatars2.githubusercontent.com/u/7124615?v=3","gravatar_id":"","url":"https://api.github.com/users/abhijitparkhi1983","html_url":"https://github.com/abhijitparkhi1983","followers_url":"https://api.github.com/users/abhijitparkhi1983/followers","following_url":"https://api.github.com/users/abhijitparkhi1983/following{/other_user}","gists_url":"https://api.github.com/users/abhijitparkhi1983/gists{/gist_id}","starred_url":"https://api.github.com/users/abhijitparkhi1983/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abhijitparkhi1983/subscriptions","organizations_url":"https://api.github.com/users/abhijitparkhi1983/orgs","repos_url":"https://api.github.com/users/abhijitparkhi1983/repos","events_url":"https://api.github.com/users/abhijitparkhi1983/events{/privacy}","received_events_url":"https://api.github.com/users/abhijitparkhi1983/received_events","type":"User","site_admin":false},"created_at":"2017-04-06T09:17:32Z","updated_at":"2017-04-06T09:17:32Z","body":"@cston \r\n\r\nFor **sementicModel.GetSymbolInfo(node)**, following are the values for the required attributes:\r\n\r\n1. **CandidateReason**: None.\r\n2. **CandidateSymbols**: Length = 0.\r\n\r\nWhat do u mean by **Run-time Type of SemanticModel Instance**? Do u mean to say SemanticModel's **Compilation.ObjectType** ??\r\n\r\nOne important point to note: \r\n1. **SemanticModel.Compilation.References returns Empty List for version 2.0.0.** \r\n2. While **SemanticModel.Compilation.References returns below List for version 1.3.2**:\r\n\r\n```\r\nAssembly Path='C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\Microsoft.CSharp.dll'\t\r\nAssembly Path='C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\mscorlib.dll'\t\r\nAssembly Path='C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Core.dll'\t\r\nAssembly Path='C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Data.DataSetExtensions.dll'\t\r\nAssembly Path='C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Data.dll'\t\r\nAssembly Path='C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.dll'\t\r\nAssembly Path='C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Net.Http.dll'\t\r\nAssembly Path='C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Xml.dll'\t\r\nAssembly Path='C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Xml.Linq.dll'\r\n\r\n```\r\n\r\nLooking forward to further communication."}}
{"actor":{"display_login":"abhijitparkhi1983"}}