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

Extension can't find projects #1437

Open
1 task
OneCyrus opened this issue Sep 27, 2024 · 3 comments
Open
1 task

Extension can't find projects #1437

OneCyrus opened this issue Sep 27, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@OneCyrus
Copy link

Expected behavior

Load dbt projects as it did before. v0.44.5 works as expected. But after that it is broken.

Actual behavior

can't find any projects anymore:

2024-09-27 08:48:47.357 [info] discoverProjects:foundProjects [[]]
2024-09-27 08:48:47.358 [info] discoverProjects:allowListFolders [[]]
2024-09-27 08:48:47.358 [info] discoverProjects:foundProjectsAfterFilter [[]]
2024-09-27 08:48:50.214 [info] discoverProjects:foundProjectsAfterProjectIntegrationFilter [[]]

Steps To Reproduce

just opening vscode with your extension

Log output/Screenshots

before it looked like this:

2024-09-27 08:47:07.923 [info] discoverProjects:foundProjects [[{"$mid":1,"fsPath":"/workspaces/automation-data/.venv/lib64/python3.11/site-packages/dbt/include/duckdb/dbt_project.yml","path":"/workspaces/automation-data/.venv/lib64/python3.11/site-packages/dbt/include/duckdb/dbt_project.yml","scheme":"file"},{"$mid":1,"fsPath":"/workspaces/automation-data/.venv/lib64/python3.11/site-packages/dbt/include/starter_project/dbt_project.yml","path":"/workspaces/automation-data/.venv/lib64/python3.11/site-packages/dbt/include/starter_project/dbt_project.yml","scheme":"file"},{"$mid":1,"fsPath":"/workspaces/automation-data/.venv/lib64/python3.11/site-packages/dbt/include/global_project/dbt_project.yml","path":"/workspaces/automation-data/.venv/lib64/python3.11/site-packages/dbt/include/global_project/dbt_project.yml","scheme":"file"},{"$mid":1,"fsPath":"/workspaces/automation-data/cmdbexport/infrastructure/dbt_project.yml","path":"/workspaces/automation-data/cmdbexport/infrastructure/dbt_project.yml","scheme":"file"},{"$mid":1,"fsPath":"/workspaces/automation-data/.venv/lib/python3.11/site-packages/dbt/include/duckdb/dbt_project.yml","path":"/workspaces/automation-data/.venv/lib/python3.11/site-packages/dbt/include/duckdb/dbt_project.yml","scheme":"file"},{"$mid":1,"fsPath":"/workspaces/automation-data/.venv/lib/python3.11/site-packages/dbt/include/starter_project/dbt_project.yml","path":"/workspaces/automation-data/.venv/lib/python3.11/site-packages/dbt/include/starter_project/dbt_project.yml","scheme":"file"},{"$mid":1,"fsPath":"/workspaces/automation-data/.venv/lib/python3.11/site-packages/dbt/include/global_project/dbt_project.yml","path":"/workspaces/automation-data/.venv/lib/python3.11/site-packages/dbt/include/global_project/dbt_project.yml","scheme":"file"},{"$mid":1,"fsPath":"/workspaces/automation-data/cmdbexport/workplace/dbt_project.yml","path":"/workspaces/automation-data/cmdbexport/workplace/dbt_project.yml","scheme":"file"},{"$mid":1,"fsPath":"/workspaces/automation-data/cmdbexport/usm/dbt_project.yml","path":"/workspaces/automation-data/cmdbexport/usm/dbt_project.yml","scheme":"file"}]]
2024-09-27 08:47:07.924 [info] discoverProjects:allowListFolders [[]]
2024-09-27 08:47:07.924 [info] discoverProjects:foundProjectInVenv ["/workspaces/automation-data/.venv/lib64/python3.11/site-packages/dbt/include/duckdb/dbt_project.yml"]
2024-09-27 08:47:07.924 [info] discoverProjects:foundProjectInVenv ["/workspaces/automation-data/.venv/lib64/python3.11/site-packages/dbt/include/starter_project/dbt_project.yml"]
2024-09-27 08:47:07.924 [info] discoverProjects:foundProjectInVenv ["/workspaces/automation-data/.venv/lib64/python3.11/site-packages/dbt/include/global_project/dbt_project.yml"]
2024-09-27 08:47:07.924 [info] discoverProjects:foundProjectInVenv ["/workspaces/automation-data/.venv/lib/python3.11/site-packages/dbt/include/duckdb/dbt_project.yml"]
2024-09-27 08:47:07.924 [info] discoverProjects:foundProjectInVenv ["/workspaces/automation-data/.venv/lib/python3.11/site-packages/dbt/include/starter_project/dbt_project.yml"]
2024-09-27 08:47:07.924 [info] discoverProjects:foundProjectInVenv ["/workspaces/automation-data/.venv/lib/python3.11/site-packages/dbt/include/global_project/dbt_project.yml"]
2024-09-27 08:47:07.924 [info] discoverProjects:foundProjectsAfterFilter [[{"$mid":1,"fsPath":"/workspaces/automation-data/cmdbexport/infrastructure","path":"/workspaces/automation-data/cmdbexport/infrastructure","scheme":"file"},{"$mid":1,"fsPath":"/workspaces/automation-data/cmdbexport/workplace","path":"/workspaces/automation-data/cmdbexport/workplace","scheme":"file"},{"$mid":1,"fsPath":"/workspaces/automation-data/cmdbexport/usm","path":"/workspaces/automation-data/cmdbexport/usm","scheme":"file"}]]
2024-09-27 08:47:11.635 [info] discoverProjects:foundProjectsAfterProjectIntegrationFilter [[{"$mid":1,"fsPath":"/workspaces/automation-data/cmdbexport/infrastructure","external":"file:///workspaces/automation-data/cmdbexport/infrastructure","path":"/workspaces/automation-data/cmdbexport/infrastructure","scheme":"file"},{"$mid":1,"fsPath":"/workspaces/automation-data/cmdbexport/workplace","external":"file:///workspaces/automation-data/cmdbexport/workplace","path":"/workspaces/automation-data/cmdbexport/workplace","scheme":"file"},{"$mid":1,"fsPath":"/workspaces/automation-data/cmdbexport/usm","external":"file:///workspaces/automation-data/cmdbexport/usm","path":"/workspaces/automation-data/cmdbexport/usm","scheme":"file"}]]

Operating System

Ubuntu 22.04

dbt version

1.8

dbt Adapter

duckdb

dbt Power User version

0.45.3

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
@OneCyrus OneCyrus added the bug Something isn't working label Sep 27, 2024
@mdesmet
Copy link
Contributor

mdesmet commented Sep 27, 2024

I had a look at the code changes since 0.44.5 but we haven't changed anything related to project detection. Could you provide full log details? You can contact me on dbt slack.

@OneCyrus
Copy link
Author

@mdesmet i tried to contact you on dbt slack

@OneCyrus
Copy link
Author

@mdesmet this is still broken. can we have an extension setting to list all the projects so we don't need to rely on autodiscovery of projects?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants