So I want to edit a Bela core cpp file, can I open it in the Bela IDE?

I read on google that one normally uses the Cloud 9 IDE for Beaglebone development. Browsing to 192.168.7.2:3000 doesn't load as Firefox times out.

The BBB is powered via a lab bench supply and connected via ethernet to my router. I am able to access the Bela IDE. Could it be that I need to connect via USB to use Cloud9 and ethernet is not enough?

If I want to save my changes in github, can I use the Bela IDE terminal to upload my modified Bela core to github?

    I could probably download the repository to my laptop and edit the files there, upload to github, and then git fetch in the Bela IDE command line to download the changes to the Beaglebone but that seems like a very slow way to work..

      Ward I read on google that one normally uses the Cloud 9 IDE for Beaglebone development. Browsing to 192.168.7.2:3000 doesn't load as Firefox times out.

      it's not on our image.

      Ward If I want to save my changes in github, can I use the Bela IDE terminal to upload my modified Bela core to github?

      you can only push if your board is connected to the internet. However, the git integration in the IDE only supports projects and not editing the core code.

      Ward git fetch in the Bela IDE command line to download the changes

      again that requires the board being connected to the internet.

      Normally my workflow for editing those files is to ssh on the board and then use vim to edit the files from the terminal. When I am happy with changes, I git commit them (again from the terminal) and then to overcome the lack of an internet connection, I go on the host computer (which is connected to the internet) where I have a copy of the git repo with a board remote pointing to the BeagleBone (git remote add board root@bela.local:Bela), then I can do

      git pull board my-branch
      git push my-github-remote my-branch

      or something similar.

      If you want to edit the files from a GUI editor, you have even more options, e.g.:

      • use sshfs to mount the Bela filesystem on the host so that you access the files on it as if they were on your computer. Always remember to unmount it before powering off the board. This also allows you to git push directly to the internet from the sshfs-mounted partition.
      • edit a copy of the repo and use rsync (possibly running in a loop) to update the files on the board as soon as your edits are done.

      What core files are you editing?

      • Ward replied to this.

        giuliomoro VIM over SSH works! Thanks!

        If enter git status while logged in over SSH I see that about 40 files are modified or untracked. Could this be because my Bela hasn't been updated in a while or maybe the files have but the .git folder not?

        giuliomoro to overcome the lack of an internet connection

        My BeagleBone and my Windows laptop are both connected to my router. I can access the IDE via bela,local and on the IDE terminal I am able to ping 8.8.8.8 so I should have an internet connection. Does this mean I can fork the Bela repository on github and then git clone my forked github repository on the BeagleBone so that I can backup my changes?

        giuliomoro What core files are you editing?

        Spi_Codec.cpp and probably some other files: https://forum.bela.io/d/1965-custom-audio-codec/3

          Ward git clone my forked github repository on the BeagleBone so that I can backup my changes?

          you wouldn't clone, but git remote add my-remote git@github.com:my-username/Bela and then git push my-remote master or similar.

          Ward Could this be because my Bela hasn't been updated in a while or maybe the files have but the .git folder not?

          This is normally because the board has been updated via the IDE or script, but that doesn't update the internal repo.