I’ve started using Business Application Studio (BAS, the replacement for SAP Web IDE) and I think it shows great potential. It’s especially good if you are a Visual Studio Code user, because then the layout is very familiar. Direct access to the terminal brings great power and flexibility. There are quite a few wrinkles yet to be ironed out though, and I wanted to share a workaround for an issue that had been frustrating me.
When I first clone a Git repository I’m prompted for my Git credentials as expected. When I return to the BAS dev space next day however, and I hit the synchronize button (to pull/push changes from/to origin), I don’t get a prompt to enter my credentials again. I just get this error:
Request fetch failed with message: fatal: could not read Username for ‘https://github.com’: No such device or address
$ git config credential.helper cache –timeout=36000
Next do a fetch, and then you will be prompted to enter your Git credentials
$ git fetch
If you hit the synchronize button now it should work fine. The timeout parameter is in seconds, so the value above will cache your credentials for 10 hours. You can also use the store command (instead of cache), but that will save your password in a plain text file.
PS Thanks to Rima @ SAP Support for helping me with this issue.
PPS If you’re quite new to Git you might like to look at the Open SAP Course SAP Cloud Platform Version Control with Git. Although it focuses on SAP Web IDE (time for an update?) Arnaldo Cavazos covers the concepts really well IMHO.
PPS Here is a tutorial on BAS: Develop Your First SAPUI5 Web App with SAP Business Application Studio