Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. GitLab
  3. Has anyone already tested the VS Code Web IDE in GitLab 15.7

Has anyone already tested the VS Code Web IDE in GitLab 15.7

Scheduled Pinned Locked Moved GitLab
10 Posts 3 Posters 1.7k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      A Offline
      andreas
      wrote on last edited by
      #1

      GitLab announced in Version 15.7 the new beta feature for the VS Code Web IDE. I tried to test it, but without success.

      1ee2fd02-0fb8-4cb7-b43c-d492c43f701b-image.png

      Maybe someone in the community tried it with success?

      girishG MooCloud_MattM 2 Replies Last reply
      1
      • A andreas

        GitLab announced in Version 15.7 the new beta feature for the VS Code Web IDE. I tried to test it, but without success.

        1ee2fd02-0fb8-4cb7-b43c-d492c43f701b-image.png

        Maybe someone in the community tried it with success?

        girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #2

        @andreas I managed to get this to work but you have enable the feature using the rails console and not by editing config.yml .

        A 1 Reply Last reply
        0
        • girishG girish

          @andreas I managed to get this to work but you have enable the feature using the rails console and not by editing config.yml .

          A Offline
          A Offline
          andreas
          wrote on last edited by
          #3

          @girish I already read about that in the GitLab KB, but I don't know how to access the rails console.

          Maybe something to wait better until it's out of beta?

          girishG 2 Replies Last reply
          0
          • A andreas

            @girish I already read about that in the GitLab KB, but I don't know how to access the rails console.

            Maybe something to wait better until it's out of beta?

            girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #4

            @andreas one sec, I was just writing the instructions for you on how to enable it 🙂 Posted too early.

            1 Reply Last reply
            2
            • A andreas

              @girish I already read about that in the GitLab KB, but I don't know how to access the rails console.

              Maybe something to wait better until it's out of beta?

              girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by girish
              #5

              @andreas With the warning that this is a beta as mentioned in GitLab page..

              You have to run Feature.enable(:vscode_web_ide) in the rails console. To do this, in GitLab's Web terminal

              root@5099522c-893e-4254-ab8e-9ec83fc131d0:~/gitlab# sudo -u git bundle exec rails c -e production
              `/home/git` is not writable.
              Bundler will use `/tmp/bundler20230113-1025-a75owg1025' as your home directory temporarily.
              /home/git/gitlab/lib/gitlab/instrumentation/redis.rb:9: warning: already initialized constant Gitlab::Instrumentation::Redis::ActionCable
              /home/git/gitlab/lib/gitlab/instrumentation/redis.rb:9: warning: previous definition of ActionCable was here
              --------------------------------------------------------------------------------
               Ruby:         ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux-gnu]
               GitLab:       15.6.3 (Unknown) FOSS
               GitLab Shell: 14.13.0
               PostgreSQL:   12.12
              ------------------------------------------------------------[ booted in 10.48s ]
              Loading production environment (Rails 6.1.6.1)
              irb(main):001:0> Feature.enable(:vscode_web_ide)
              WARNING: Understand the stability and security risks of enabling in-development features with feature flags.
              See https://docs.gitlab.com/ee/administration/feature_flags.html#risks-when-enabling-features-still-in-development for more information.
              => true
              

              Not sure if GitLab restart is needed, but I restarted GitLab. Then, pressing "." in the file viewer listing opens up vscode.

              5c25e21e-7be4-40df-a020-fbcbd17d48a5-image.png

              A 1 Reply Last reply
              1
              • girishG girish

                @andreas With the warning that this is a beta as mentioned in GitLab page..

                You have to run Feature.enable(:vscode_web_ide) in the rails console. To do this, in GitLab's Web terminal

                root@5099522c-893e-4254-ab8e-9ec83fc131d0:~/gitlab# sudo -u git bundle exec rails c -e production
                `/home/git` is not writable.
                Bundler will use `/tmp/bundler20230113-1025-a75owg1025' as your home directory temporarily.
                /home/git/gitlab/lib/gitlab/instrumentation/redis.rb:9: warning: already initialized constant Gitlab::Instrumentation::Redis::ActionCable
                /home/git/gitlab/lib/gitlab/instrumentation/redis.rb:9: warning: previous definition of ActionCable was here
                --------------------------------------------------------------------------------
                 Ruby:         ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux-gnu]
                 GitLab:       15.6.3 (Unknown) FOSS
                 GitLab Shell: 14.13.0
                 PostgreSQL:   12.12
                ------------------------------------------------------------[ booted in 10.48s ]
                Loading production environment (Rails 6.1.6.1)
                irb(main):001:0> Feature.enable(:vscode_web_ide)
                WARNING: Understand the stability and security risks of enabling in-development features with feature flags.
                See https://docs.gitlab.com/ee/administration/feature_flags.html#risks-when-enabling-features-still-in-development for more information.
                => true
                

                Not sure if GitLab restart is needed, but I restarted GitLab. Then, pressing "." in the file viewer listing opens up vscode.

                5c25e21e-7be4-40df-a020-fbcbd17d48a5-image.png

                A Offline
                A Offline
                andreas
                wrote on last edited by
                #6

                @girish That's cool, thanks for providing the instructions. It's working.
                To confirm, a restart is not needed, I tried it without.

                Maybe it would be helpful to add the command to start GitLab rails for feature enabling to the Cloudron GitLab help page.

                Before opening the thread, I only pasted the command Feature.enable(:vscode_web_ide) into the terminal and got a bash error.

                girishG 1 Reply Last reply
                0
                • A andreas

                  @girish That's cool, thanks for providing the instructions. It's working.
                  To confirm, a restart is not needed, I tried it without.

                  Maybe it would be helpful to add the command to start GitLab rails for feature enabling to the Cloudron GitLab help page.

                  Before opening the thread, I only pasted the command Feature.enable(:vscode_web_ide) into the terminal and got a bash error.

                  girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #7

                  @andreas good idea, I put the command in https://docs.cloudron.io/apps/gitlab/#rails-console

                  1 Reply Last reply
                  1
                  • A andreas

                    GitLab announced in Version 15.7 the new beta feature for the VS Code Web IDE. I tried to test it, but without success.

                    1ee2fd02-0fb8-4cb7-b43c-d492c43f701b-image.png

                    Maybe someone in the community tried it with success?

                    MooCloud_MattM Offline
                    MooCloud_MattM Offline
                    MooCloud_Matt
                    wrote on last edited by MooCloud_Matt
                    #8

                    @andreas
                    Ohh they finally push it to prod, it was in testing with no file sync from February.

                    Matteo. R.
                    Founder and Tech-Support Manager.
                    MooCloud MSP
                    Swiss Managed Service Provider

                    A 1 Reply Last reply
                    0
                    • MooCloud_MattM MooCloud_Matt

                      @andreas
                      Ohh they finally push it to prod, it was in testing with no file sync from February.

                      A Offline
                      A Offline
                      andreas
                      wrote on last edited by
                      #9

                      @MooCloud_Matt What do you mean without a file sync?

                      I already tested to edit files in the Web IDE and committing it back to the repository. That works for me. Only the diff comparison is not working on my side.

                      MooCloud_MattM 1 Reply Last reply
                      0
                      • A andreas

                        @MooCloud_Matt What do you mean without a file sync?

                        I already tested to edit files in the Web IDE and committing it back to the repository. That works for me. Only the diff comparison is not working on my side.

                        MooCloud_MattM Offline
                        MooCloud_MattM Offline
                        MooCloud_Matt
                        wrote on last edited by
                        #10

                        @andreas
                        That front end code and the code server ware out of sync.
                        So any file change on the front end was not updated un till a commit was done.

                        For example if you have a Vue app, vite will not update your dev build untill you didn't commit

                        Matteo. R.
                        Founder and Tech-Support Manager.
                        MooCloud MSP
                        Swiss Managed Service Provider

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Bookmarks
                          • Search