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.

Missing code completion

See original GitHub issue

Summary

Installing the extension provides no code completion. Language is set to Ansible and would expect IntelliSense to provide completion for tasks, plugins etc., but sadly it doesn’t seem to offer anything.

Extension version

0.4.5

VS Code version

1.59.1

Ansible Version

ansible --version
ansible [core 2.11.4] 
  config file = None
  configured module search path = ['/home/apinter/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/apinter/.local/lib/python3.8/site-packages/ansible
  ansible collection location = /home/apinter/.ansible/collections:/usr/share/ansible/collections
  executable location = /home/apinter/.local/bin/ansible
  python version = 3.8.11 (default, Aug 10 2021, 00:29:46) [GCC]
  jinja version = 3.0.1
  libyaml = True

OS / Environment

  • distro: openSUSE Tumbleweed
  • Visual Studio Code: rpm from VSCode repos as explained here
  • Ansible, ansible-lint, ansible-navigator, ansisble-abult: installed from PyPi
  • ansible-lint 5.1.3
  • ansible-navigator 1.0.0
  • ansible-vault core 2.11.4

Relevant log output

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
avh03commented, Oct 23, 2021

Setting "editor.quickSuggestions": true in settings.json worked for me. ( Settings > Text Editor > Suggestions > Editor: Quick Suggestions).

Just to confirm that this worked for me either. Specifically, the ‘strings’ key in this object makes difference in my case

    "editor.quickSuggestions": {
        "other": true,
        "comments": false,
        "strings": true          <-- default value is 'false'
      }
1reaction
ssbarneacommented, Oct 27, 2021

I can confirm the same bug with 0.5.1/main and the fix was to edit settings.json and add:

{
  "[ansible]": {
        "editor.quickSuggestions": {
            "comments": true,
            "other": true,
            "strings": true
        }
}

Clearly this bug should not be closed until we find a way to avoid the need for this workaround.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Code completion | IntelliJ IDEA Documentation - JetBrains
This section covers various techniques of context-aware code completion that allow you to speed up your coding process.
Read more >
Code completion not working in 10.2 | Apple Developer Forums
With the 10.2 update, I cannot get code completion working in one of my projects. I've reinstalled Xcode. I've nuked the repo and...
Read more >
IntelliSense in Visual Studio Code
IntelliSense is a general term for various code editing features including: code completion, parameter info, quick info, and member lists.
Read more >
Eclipse/Java code completion not working - Stack Overflow
Quit Eclipse · Go to workspace/.metadata/.plugins/org.eclipse.jdt.core · Remove *.index and savedIndexNames.txt · Restart Eclipse and search Ctrl + T for the ...
Read more >
Missing code completion - smartfoxserver.com
Re: Missing code completion ... We have a partial solution to this issue. Using the tool at the url below, you can make...
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