question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Document setup for devcontainer

See original GitHub issue

Hello,

I have a simple dbt project inside a devcontainer (VSCode in a remote container) based on an ubuntu image. On the opening of devcontainer, the vscode-dbt-power-user launches a terminal to run dbt list and it runs successfully and prints all the nodes. But no functionality is added to
Details to reproduce the error :

  • I am using Python 3.8.10 with dbt 1.1.1
  • The dbt debug command shows no issues
  • The dbt project path is /src
  • This is the content of the .devcontainer/devcontainer.json :
{
  "name": "dbt devcontainer",
  "dockerComposeFile": "../docker-compose.yml",
  "service": "dbt",
  "workspaceFolder": "/src",
  "shutdownAction": "stopCompose",
  "extensions": [
    "innoverio.vscode-dbt-power-user"
  ],
  "settings": {
    "files.associations": {
      "*.sql": "jinja-sql"
    }
  }
}

I saw other issues related to this (for instance dbt shows connected but extension has zero functionality) but it didn’t show me a missing setting in my setup. Did I forget something ? Thank you for your help !

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
korompaiistvancommented, Aug 15, 2022

@dataders I fixed this same issue by leaving out the python extension from my list of extensions in devcontainer.json (since the dbt power user extension is going to install the python one anyways). this is an issue with many other extensions, where VSCode doesn’t “merge” dependencies. nothing the authors of this one can do about it unfortunately

1reaction
dataderscommented, Jul 26, 2022

I’m also trying to get this to run in a codespace and am getting a related issue upon booting

Cannot activate the ‘dbt Power User’ extension because it depends on the ‘Python’ extension, which is not installed. Would you like to install the extension and reload the window?

When I look what extensions are installed, it says the Python extension is installed already… image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create a Dev Container - Visual Studio Code
Start with Dev Containers: Add Dev Container Configuration Files... in the Command Palette (F1). Edit the contents of the .devcontainer folder as required....
Read more >
Introduction to dev containers - GitHub Docs
The primary file in a dev container configuration is the devcontainer.json file. You can use this file to determine the environment of codespaces...
Read more >
Setting up a VS Code Dev Container - Ben Selby
Open your project in VS Code, and run the Command Palette (On the mac this is on the “View” menu or shift+command+p )....
Read more >
Getting Started with Dev Containers - Microsoft Open Source
devcontainer directory. This directory is where configuration begins. A central artifact to the dev container definition is a configuration file ...
Read more >
Dev Container metadata reference
The devcontainer.json file contains any needed metadata and settings required to configurate a development container for a given well-defined tool and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found