vscode-remote-release
vscode-remote-release copied to clipboard
New files doesn't recognize in devcontainer
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
- Open project in devcontainer.
- add file src/some_code.py
- add function to file some_code.py
def some_method(): - try add
from .some_code import some_methodto init.py - we get error
Import ".some_code" could not be resolved - reopen container: "Reopen folder Localy" + "Reopen in Container"
- now import work correct.
I have got same problem in python, TS, C#.
Which versions of VS Code and Remote-Containers are you using?
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
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?
I have had the same error, but it only happens on windows, I have tried it on linux and it works perfectly.
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.
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.
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!