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.

Files compile fine, but VSCode doesn't autocomplete and shows errors

See original GitHub issue

Describe the bug I’m using LESS as a preprocessor, I’ve added an import in a file like this @import (reference) '../base.module.less' (also tried without reference tag), and the auto-completion for the classes in this file is gone. I’ve read #113 and it still doesn’t solve my problem, since the person who created the issue is using sass and I’m using less.

To Reproduce I’m not really sure how this happened, I just added the line to import and the IntelliSense is gone! I’ve uploaded the code to a temporary repo so maybe someone could read the code and find out what’s wrong with it. https://github.com/laoqiu233/for_issue

Expected behavior VSCode should provide IntelliSense and not throw errors.

Screenshots The LESS file with the line The LESS file with the line

An empty style object, but the code compiles and works fine An empty style object, but the code compiles and works fine

VSCode complains and shows errors VSCode complains and shows errors

Commented out the line Commented out the line

Works fine after deleting the line Works fine after deleting the line

Desktop (please complete the following information):

  • OS: Windows 10 64bit
  • Browser: Chrome
  • Version 89.0.4389.90

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
wingsicocommented, May 6, 2021

Thanks @wingsico. This was definitely the fix for the reproduction in this issue, I tested multiple times. When you raise an issue, I can help sort out your issue too!

A new issue raised here. #122 This bug caused by other problems, but behaves the same way.

0reactions
mrmckebcommented, Apr 28, 2021

Thanks @wingsico. This was definitely the fix for the reproduction in this issue, I tested multiple times. When you raise an issue, I can help sort out your issue too!

Read more comments on GitHub >

github_iconTop Results From Across the Web

VSCode not suggesting and autocompleting java code
Open VScode and go to Preferences -> Settings; Search java.configuration.runtimes; Select Edit in settings.json and paste the follwing: "java.
Read more >
IntelliSense in Visual Studio Code
This can be caused by a variety of reasons. First, try restarting VS Code. If the problem persists, consult the language extension's documentation....
Read more >
Typescript auto-complete not working in VSCode #39370
I'm trying to make use of Puppeteer within a ts file which works fine except the VSCode Intellisense stops working a soon as...
Read more >
C++ IntelliSense - Visual Studio (Windows)
In this article. IntelliSense features in C++; Statement completion and member list; Parameter help; Quick Info; Error squiggles ...
Read more >
Chromium Docs - Visual Studio Code Dev
Tip: you can jump to the settings JSON file by using Ctrl+Shift+P and using the “Preferences: Open User Settings (JSON)” verb (for whatever...
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