question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with 'go to definition' asking me which file I want, but prompting for the same file each time.

See original GitHub issue

Hi, really love the library!

I have a small issue, sometimes, which I try to ‘go to definition’ coc-pyright asks me which of the possible files hosting the defitinion I want to open. The thing is that all the prompts are to the same file! Here is an example:

image

And here is my config:

{
  "python.formatting.provider": "black",
  "python.linting.pylintEnabled": true,
  "python.linting.enabled": true,
  "python.jediEnabled": false,
  "python.pythonPath": "/path/to/symlink/which/points/to/python/bin",
  "diagnostic.checkCurrentLine": true,
  "python.analysis.useLibraryCodeForTypes": false,
  "python.analysis.typeCheckingMode": "off"
}

Also when I restart vim the error gets fixed! But after using the same vim session for some time it starts happening again.

Thanks!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:26 (15 by maintainers)

github_iconTop GitHub Comments

2reactions
fannheywardcommented, Mar 5, 2021

Thank you @yaegassy, for your help on coc-pyright issues/tests ❤️

1reaction
fannheywardcommented, Mar 5, 2021

@yaegassy I prefer to keep it true in a long period, maybe change it in laaaaater release. Although it may cause issues in large codebase, I think it’s better to make Pyright to do analyzes. What do you think?

Read more comments on GitHub >

github_iconTop Results From Across the Web

no "go to definition" and no function definition pop-up for ...
This issue is in new versions or updates of vs code. My version is 1.22 , It started working in my vs code...
Read more >
What is Protected View? - Microsoft Support
A problem was detected with my file. I want to change my Protected View settings. I want to revoke trust from a document/documents...
Read more >
Visual Studio Code Workspace Trust security
Workspace Trust. Visual Studio Code takes security seriously and wants to help you safely browse and edit code no matter the source or...
Read more >
Did Firefox 73.0 stop downlaod "ask me" for file location option?
I have tried to change the setting to a specific file location and then change back to no avail. The specific location works...
Read more >
Python Write to File – Open, Read, Append, and Other File ...
Welcome Hi! If you want to learn how to work with files in Python, then this article is for you. Working with files...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found