Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False import error on VSCode editor - EIB #26

Open
saraneem opened this issue Mar 5, 2021 · 1 comment
Open

False import error on VSCode editor - EIB #26

saraneem opened this issue Mar 5, 2021 · 1 comment

Comments

@saraneem
Copy link

saraneem commented Mar 5, 2021

From EIB:

One user reported a false positive error displayed on the VSCode editor with the imports on Anaconda.

The error seems to occur because the package "pylint" isn't correctly loaded at the start of the session. A workaround to make it work si to open another folder then reopen the project folder. At this moment, the package is correctly loaded and the error disappears.

I found the same false-positive error on several projects with different modules, each time it seems related to the pylint package. The error doesn't prevent the project to run correctly. Please refer to the screenshot.

pylint error

ZD ticket: https://anaconda.zendesk.com/agent/tickets/22288

@saraneem saraneem changed the title False import error on VSCode editor False import error on VSCode editor - EIB Mar 5, 2021
@AlbertDeFusco
Copy link
Collaborator

I am not able to reproduce this error. Here's how it works. for me

  1. Create a directory called config
  2. Create a Python module in the config directory called configmng.py
  3. Add the ConfigMng and NoConfigFileError objects to configmng.py
  4. Install PyLint anaconda-project add-packages pylint
  5. Create test.py and add lines shown in your screenshot

Screen Shot 2021-03-24 at 11 21 19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants