Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Go to symbol in workspace fails #419

Closed
DonJayamanne opened this issue Nov 19, 2018 · 2 comments
Closed

Go to symbol in workspace fails #419

DonJayamanne opened this issue Nov 19, 2018 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@DonJayamanne
Copy link

  • Language Server version 0.1.63
  • Open PTVSD repo
  • Open the file src/ptvsd/_remote.py
  • From the command palette select Go to symbol in workspace
  • Kaboom:
Starting Microsoft Python language server.
Microsoft Python Language Server version 0.1.63.0
Initializing for /Users/donjayamanne/.local/share/virtualenvs/Algorithm-Y3rXutxy/bin/python
[Error - 3:26:01 PM] Request workspace/symbol failed.
  Message: Object reference not set to an instance of an object.
  Code: -32000 
   at Microsoft.Python.LanguageServer.Implementation.Server.<>c__DisplayClass133_0.<GetModuleVariables>b__4(ILocationInfo l)
   at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
   at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
   at Microsoft.Python.LanguageServer.Implementation.Server.<>c__DisplayClass133_0.<GetModuleVariables>b__2(IMemberResult m)
   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   at System.Linq.Enumerable.EnumerablePartition`1.ToList()
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Microsoft.Python.LanguageServer.Implementation.Server.GetModuleVariablesAsync(ProjectEntry entry, GetMemberOptions opts, String prefix, Int32 timeout, CancellationToken token)
   at Microsoft.Python.LanguageServer.Implementation.Server.WorkspaceSymbols(WorkspaceSymbolParams params, CancellationToken cancellationToken)
   at Microsoft.Python.LanguageServer.Implementation.LanguageServer.WorkspaceSymbols(JToken token, CancellationToken cancellationToken)
@jakebailey
Copy link
Member

Duplicate of #419.

@jakebailey jakebailey added the duplicate This issue or pull request already exists label Nov 19, 2018
@jakebailey
Copy link
Member

Err, I mean #378.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants