Can't get past compiling error in query preview window. #107
-
Ambitious project and I love the effort. I've been following it for a few months now and had time to install it today. No amount of vscode restarts and file name changes has helped. ">dataform compile" runs without issue and the file is listed in the output. Any thoughts? |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 1 reply
-
Hi @LandonPerkins , |
Beta Was this translation helpful? Give feedback.
-
Thanks for the response. Fails in the codespace because it doesn't detect google-cloud-cli. |
Beta Was this translation helpful? Give feedback.
-
thanks @LandonPerkins . Thanks for testing both options. So the dev container option is working. Once you run the 3 gcloud comments it will work as expected. I have published a video on YouTube to how to use Dataform tools with dev containers. -- Regarding the football_dataform repository not working on your system with the same error as you reported before. My intuition is that it is some kind of path issue. To be able to investigate It further I have added a debug log option to the extension which you can enable in the settings. If you could share the debug logs with me that would help me narrow down on what the issue could be. NOTE: you will need to to reload the window to be able to select Dataform tools as an option in output channel once you enable it. Please let me know if the screenshots below are sufficient. |
Beta Was this translation helpful? Give feedback.
-
Sorry for the delay. I have the logs of compiling football_dataform and saving the output into the Compiled Query Preview panel. |
Beta Was this translation helpful? Give feedback.
-
Hi @LandonPerkins , thanks for sending the logs. I have spotted the issue. You seem to be using Your logs
How to fix Open a new vscode window and open the Dataform project in it. Your logs after doing this will look something like this
-- Please let me know if this works for you and thanks for the persistence so far, appreciate it 🙂 |
Beta Was this translation helpful? Give feedback.
-
This did correct the issue. Will the multi-root workspace be taken into consideration in future releases? |
Beta Was this translation helpful? Give feedback.
-
Yh, definitely. Something that can be looked at. If you are keen try the CONTRIBUTING.md , contributions are always welcome 🙂 |
Beta Was this translation helpful? Give feedback.
Hi @LandonPerkins , thanks for sending the logs. I have spotted the issue. You seem to be using
multi-root workspace
. If you notice the logs, the full path of the file being compiled does not look like a subset of the workspace folder path. I was able to re-create this scenario by opening a different folder and adding a Dataform folder to the workspace.Your logs
How to fix
Open a new vscode window and open the Dataform project in it.
Your l…