Replies: 1 comment
|
Yes, this is expected. Your configuration defines one installable distribution,
Your layout is supported. In package mode, For VS Code, select the interpreter printed by poetry run python -c "import x, y, z; print(x.__file__, y.__file__, z.__file__)"That separates an import problem from editor discovery. Missing entries in |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I have a folder
xwith 3 sibling packages, which I specify in thepyproject.tomlas followsMy project's structure looks like this
If I do
poetry show, I don't seex,yorz. If I dopip list, I seemy-project.I don't know if this is the intended behaviour or not.
I also don't know if poetry supports my scenario or not. I think it depends on what I want to do. I've seen some discussions on whether poetry supports multiple
pyproject.tomls.In my case, I don't have a
pyproject.tomlunderx,yorz, so I suppose that's why they are not installed as separate packages. It seems thatincludeis only used to specify other packages to include in the distribution, when we dopoetry build. Is this correct? Anyway, why doesn'tpoetry showalso show my package?I'm asking this question more because VSCode is not suggesting some code from
yinx. I think this is a problem with pylance, but still I am curious to know whypoetry showdoesn't show my package.All reactions