Hello!
I'm having an issue with dagger integration with my IDE (vscode), where imports are not resolved despite all CLI calls working as expected.
What I did:
- I'm using uv to handle my project dependencies.
What I did:
- I've installed v0.15.2 on Linux using Brew.
- When initializing dagger in my project
dagger init --sdk=python --source=./dagger
Observations:
- When importing sub-modules from dagger, the IDE complains "Container" is unknown import symbol
from dagger import Container, Ignore, Secret, dag, function, object_type
- I can get right of these IDE messages by adding dagger-io in my application pyproject.toml
uv add dagger-io
- However, it now creates a new warning on third-party modules from Daggerverse that cannot be resolved: Cannot access member "hello" for type "Client" Member "hello" is unknown
async def greeting(self) -> str:
return await dag.hello().hello()
I've followed the Dagger doc on IDE integration but am stuck on these issues. Is there something I'm missing, or is this expected?
I appreciate any help you can provide.
Jean-Paul