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.

autcomplete for module names is not working

See original GitHub issue

Describe the bug When I try to import any package, the editor doesn’t suggest anything except “*.svelte” as the package name. Surprisingly when I type the name of any package, the intellisense works correctly for the exported variables and types.

To Reproduce

  1. Use svelte template
  2. Open App.svelte
  3. Type import x from"" and tap ctrl+space - or whatever open the suggestions list - when the cursor is between the quotes of the module name.

Expected behavior VSCode displays the names of the installed packages

Screenshots Screenshot from 2020-08-05 20-00-17 Screenshot from 2020-08-05 20-00-53 Screenshot from 2020-08-05 20-09-57 Screenshot from 2020-08-05 20-12-42

System (please complete the following information):

  • OS: Ubuntu 20.04
  • IDE: VSCode
  • Plugin/Package: “Svelte for VSCode”

Additional context None

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
AhmadMayocommented, Aug 19, 2020

@dummdidumm I removed node_modules and package-lock.json in my project, reinstalled, restarted svelte server and now it works. May be your fix did solve it after all. Thank you very much for your time

1reaction
AhmadMayocommented, Aug 14, 2020

It’s probably related to the number of installed packages. I’ll try to create a repo where I could reproduce the issue, but I will not be able to do it before tuesday

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing django-autocomplete-light examples - Stack Overflow
ImportError: No module named autocomplete_light.example_apps.non_admin_add_another. I see that the module is referenced in settings.py:
Read more >
Looking for definitive way to enable ALL QGIS module access ...
I'm having trouble importing and getting code inspection/autocompletion working for all the PyQGIS modules I need to do scripting in VS Code ...
Read more >
Autocomplete and all the hints not working. No module named ...
I use three interpreters (Py27, Py33, Pypy) - all of them have this issue, but for different packages. For example if I type:...
Read more >
No module named autocomplete_light - django 1.9.2 ... - GitHub
Solution: pin 'django-autocomplete-light>=2.0,<3.0' in requirements. 1
Read more >
Fix Python Relative Imports and Auto-completion in VSCode
In this video, you will learn how to properly handle Python relative imports without extending the sys.path. Additionally, you will learn ...
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