Debug gdk issues

Hi, everyone
I try to settup selfhost gitlab instance with GDK.It easy to setup with the guildline from document, but when i started to debug, it failed beacuse of the conflic environment. Here is the log:
/home/gdk/.local/share/mise/installs/ruby/3.3.10/lib/ruby/gems/3.3.0/gems/bundler-2.7.1/lib/bundler/runtime.rb:317:in check_for_activated_spec!': You have already activated json 2.18.1, but your Gemfile requires json 2.13.1. Prepending bundle exec` to your command may solve this. (Gem::LoadError)

I guess i should prepending ‘bundle exec’, but doesn’t know how to config it. Could you guy help me to solve this ?

Which command was used to trigger that error?

I run this command on docker gdk:
gdk stop rails-web && GITLAB_RAILS_RACK_TIMEOUT_ENABLE_LOGGING=false PUMA_SINGLE_MODE=true rdbg --open -c bin/rails server
And then press f5 in vscode
Here is my lauch.json:

{

“version”: “0.2.0”,

“configurations”: [

{

  "type": "rdbg",

  "name": "Attach rails-web with rdbg",

  "request": "attach",

},

{

  "type": "rdbg",

  "name": "Attach rails-background-jobs with rdbg",

  "request": "attach",

}

]

}

And also i have try the guide on this: VS Code debugging | GitLab Docs
But it failed and here is the detail log:

Executing task: gdk stop rails-web && GITLAB_RAILS_RACK_TIMEOUT_ENABLE_LOGGING=false PUMA_SINGLE_MODE=true rdbg --open -c bin/rails server

/bin/bash: line 1: gdk: command not found

The terminal process “/bin/bash ‘-c’, ‘gdk stop rails-web && GITLAB_RAILS_RACK_TIMEOUT_ENABLE_LOGGING=false PUMA_SINGLE_MODE=true rdbg --open -c bin/rails server’” failed to launch (exit code: 127).

Terminal will be reused by tasks, press any key to close it.


Hey @spurl :waving_hand:

Are you able to join our Discord? GitLab Community

It may be easier to back and forth on there. We also host a couple of community office hours (one starts in roughly 1 hour)- the details are also available in Discord.

Lastly- if you’re not already, you may want to try GDK-in-a-box container as it’s a slightly quicker way of getting the development environment up and running: Configure GDK-in-a-box | GitLab Docs

Hi @leetickett-gitlab
I already join our community on Discord and have create a topic for getting help.Here is the link