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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

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

    GitLab
    3
    10
    100
    Loading More Posts
    • 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
      andreas last edited by

      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?

      girish MooCloud_Matt 2 Replies Last reply Reply Quote 1
      • girish
        girish Staff @andreas last edited by

        @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 Reply Quote 0
        • A
          andreas @girish last edited by

          @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?

          girish 2 Replies Last reply Reply Quote 0
          • girish
            girish Staff @andreas last edited by

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

            1 Reply Last reply Reply Quote 2
            • girish
              girish Staff @andreas last edited by 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 1 Reply Last reply Reply Quote 1
              • A
                andreas @girish last edited by

                @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.

                girish 1 Reply Last reply Reply Quote 0
                • girish
                  girish Staff @andreas last edited by

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

                  1 Reply Last reply Reply Quote 1
                  • MooCloud_Matt
                    MooCloud_Matt @andreas last edited by MooCloud_Matt

                    @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 Reply Quote 0
                    • A
                      andreas @MooCloud_Matt last edited by

                      @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_Matt 1 Reply Last reply Reply Quote 0
                      • MooCloud_Matt
                        MooCloud_Matt @andreas last edited by

                        @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 Reply Quote 0
                        • First post
                          Last post
                        Powered by NodeBB