-
Notifications
You must be signed in to change notification settings - Fork 94
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
Cannot find DBT resources #28
Comments
Hi @trallarn, I'm not sure where the /app folder is coming from? Maybe you have copied the project from someone else? Could you recompile your project by running 'dbt ls'? We are using the root_path as in the manifest.json file within your target folder: "unique_id": "model.ov_ho.oorsprong_studenten_examen_ata", "package_name": "ov_ho", "root_path": "/home/mdesmet/Projects/ov-project-ho" |
Hi @mdesmet I run dbt in a docker container with /app as project root. I didn't realise that the compiled resources was used. That explains where this is coming from. Thanks for that clarification on how manifest.json is used. I will figure something out to resolve this. |
I see three options:
Any opinions on this? I'm tempted to either do the first or the last. |
Is it necessary to use the If not: Perhaps adding the fact that manifest.json is used by the plugin could be added to the github README. Managing dbt with a container I think is a very good practice, so for this plugin to be able to support that is a good thing. When using a container I might not even have dbt installed on my local machine so recompiling then isn't an option. |
I don't know if you know but you can run vscode with docker or a WSL2 enviroment. That's exactly how I run dbt, I don't even have dbt installed on my windows OS. So it is already supported now to run DBT in a container setup without any configuration neeeded for this extension. Please check the Remote extension within vscode: https://code.visualstudio.com/docs/remote/remote-overview I think apart from how the extension works it might be useful to explain some of these more special scenarios in the readme. |
I wasn't aware of that @mdesmet . I will definitely look inte the plugin. Thanks! |
Hello, I am having the exact same issue and looking for an easy solution |
Assuming you are also using docker. The out of the box solution seems to me to use the remote plugin and run dbt in your docker container instead of the directory that is being mounted in docker. As I said the remote extension is really great, I use it every day! |
We have added some links in the README with pointers on how to use the remote extension. |
Great. Thanks @mdesmet. |
Hi and thanks for an interesting extension!
I've just installed it and run into the following problem:
Use case:
Open a folder containing a DBT project in vscode
-> Open a DBT model from the explorer
-> Click any of the models populated in the DBT POWER USER sidebar
-> Yields unable to open file message according to screenshot below
It seems like the extension is searching for the model in /app which seems wrong. I expect it to search relative to the folder I've opened in vscode.
The text was updated successfully, but these errors were encountered: