vscode-remote-release icon indicating copy to clipboard operation
vscode-remote-release copied to clipboard

New files doesn't recognize in devcontainer

Open InsonusK opened this issue 3 years ago • 5 comments
trafficstars

When You open project in devcontainer. Then create new file This files doesn't recognized by code assistant

Example on python We have project

- src
  - __init__.py
  1. Open project in devcontainer.
  2. add file src/some_code.py
  3. add function to file some_code.py def some_method():
  4. try add from .some_code import some_method to init.py
  5. we get error Import ".some_code" could not be resolved
  6. reopen container: "Reopen folder Localy" + "Reopen in Container"
  7. now import work correct.

I have got same problem in python, TS, C#.

InsonusK avatar Jul 13 '22 09:07 InsonusK

Which versions of VS Code and Remote-Containers are you using?

chrmarti avatar Jul 14 '22 07:07 chrmarti

Which versions of VS Code and Remote-Containers are you using? @chrmarti

VS Code Version: 1.69.1 Remote-Containers (ms-vscode-remote.remote-containers): v0.241.3

InsonusK avatar Jul 14 '22 09:07 InsonusK

I have change version of Remote - Containers to pre-release v0.243.0 I look like it start work better.

Now, after adding file, there is some delay, around 10-20 seconds before VSCode recognize new file.

Is there is any delay between adding file till VSCode recognize that new file exist?

InsonusK avatar Jul 20 '22 19:07 InsonusK

I have had the same error, but it only happens on windows, I have tried it on linux and it works perfectly.

jaen003 avatar Sep 15 '22 22:09 jaen003

It seems that the error is in Pylance, I have changed the language of the server language to Jedi and this has solved the problem.

jaen003 avatar Sep 21 '22 12:09 jaen003

Hey @chrmarti, this issue might need further attention.

@InsonusK, you can help us out by closing this issue if the problem no longer exists, or adding more information.

github-actions[bot] avatar Jan 19 '23 12:01 github-actions[bot]

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

github-actions[bot] avatar Jan 27 '23 12:01 github-actions[bot]