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.

Completions docs UI shows docs for wrong completion

See original GitHub issue

Problem Description

What steps reproduce the problem?

  1. Start Spyder in debug mode with Kite enabled and running (though I don’t think having Kite enabled/running is a requirement)
  2. Type the following:
import json
json.dumps$
  1. Highlight the first completion.

What is the expected output? What do you see instead?

Expected output: I would expect to see the docs for json.dumps.

Actual output: I see the docs for json.dump.

image

This issue seems intermittent and therefore leads me to believe this is a race condition in Spyder’s completions logic.

Versions

  • Spyder version: 4.0.0.dev0
  • Python version: 3.7.3 64-bit
  • Qt version: 5.9.6
  • PyQt version: 5.9.2
  • Operating System name/version: Darwin 18.7.0

Dependencies

pygments >=2.0    :  2.4.2 (OK)
qdarkstyle >=2.6.4:  2.7 (OK)
sphinx >=0.6.6    :  2.1.2 (OK)
psutil >=0.3      :  5.6.3 (OK)
pyls >=0.27.0     :  0.28.0 (OK)
nbconvert >=4.0   :  5.5.0 (OK)
pandas >=0.13.1   :  None (NOK)
numpy >=1.7       :  None (NOK)
pympler >=0.7     :  None (NOK)
sympy >=0.7.3     :  None (NOK)
cython >=0.21     :  None (NOK)
qtconsole >=4.5.5 :  4.5.5 (OK)
IPython >=4.0     :  7.8.0 (OK)
matplotlib >=2.0.0:  None (NOK)
pylint >=0.25     :  2.3.1 (OK)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
bcolsencommented, Sep 21, 2019

It looks fixed to me.

0reactions
ccordoba12commented, Sep 21, 2019

This was fixed by PR #10262.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Autocomplete suggestions UI doesn't immediately show up ...
I'm returning a promise from provideCompletionItems() which resolves in a second or two. What I see. During the time the promise is resolving ......
Read more >
Spyder : how to make completion and documentation pop-up ...
Show completion details; Show completions on the fly. "preferences/completion and linting/advanced" and unticking: enable Kite; enable fallback ...
Read more >
Displaying Statement Completion - Visual Studio (Windows)
This walkthrough shows how to implement statement completion for a hard-coded set of identifiers. In full implementations, the language service ...
Read more >
Vault Commands (CLI) - HashiCorp Developer
When you start typing a Vault command, press the <tab> character to show a list of available completions. Type -<tab> to show available...
Read more >
User Manual - rust-analyzer
Whether to show postfix snippets like dbg , if , not , etc. rust-analyzer.completion.privateEditable.enable (default: false ). Enables completions of ...
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