cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

app/webapp/test/extended_runnable_file.html appears in Git changes

gregorw
SAP Mentor
SAP Mentor
0 Likes
1,013

Hello Web IDE Users,

I'm using the Web IDE Full Stack in my Trial account to follow the getting started guide for The Application Programming Model. To track my progress I've initialised the project as a Git repository and added also a remote repository. For that I use the Git repository in SCP Neo. In the step Add a User Interface I configured the possibility to run the application with mock data. That works fine. But now the file app/webapp/test/extended_runnable_file.html appears in the Git pane as a changed file. But this file isn't visible in the project source tree. Also I've tried to add it to .gitignore. But that doesn't have an effect:

Any help is welcome.

Best regards
Gregor

Accepted Solutions (1)

Accepted Solutions (1)

michal_keidar
Advisor
Advisor

Hi Gregor,

This should be fixed now, can you please confirm?

Thanks,
Michal.

gregorw
SAP Mentor
SAP Mentor
0 Likes

Thank you Michal, the file is gone from the Git changes.

Answers (1)

Answers (1)

Former Member

just a wild guess, but i noticed that this file is also generated and used by the WebIDE FS on normal UI5 projects. It is used as a replacement for the index.html or at least there is some rewrite logic because if one run a project as "Web Application" and selects the index.html as entrypoint the preview tab loads the mentioned file. So i guess that this file is added to the git index as soon as the project and git repository is created from inside the WebIDE FS because if i create a project and init a git repo on my local machine and then clone it into WebIDE FS the file is not present as a changed file to commit in the git pane.

I came to this conclusion because the gitignore only stop files being tracked by git if the file is not tracked already. if it is tracked already and then ignored through the gitignore one has to delete it manually from the project which is impossible due to that the file is always hidden in WebIDE FS even with "Show hidden files" activated.

boghyon
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Nils, my observation is that Web IDE FS generates extended_runnable_file.html only if one of these options were applied. Not sure if it's a bug or feature. @michal.keidar What do you think?

michal_keidar
Advisor
Advisor
0 Likes

Possibly, I'm not sure. I can find out though if it's so important to you to know the purpose of this file...

Generally speaking, Web IDE has all kinds of files like this, that are supposed to be hidden and git ignored.

Regards,
Michal.

boghyon
Product and Topic Expert
Product and Topic Expert
0 Likes

> if it's so important to you to know the purpose of this file

@michal.keidar Not that I'm curious about the purpose of this file; Loading extended_runnable_file.html, which automatically replaces index.html in this case, has a serious performance issue. If we take a look at that document, it loads changes_preview.js which eventually loads the FakeLrepConnector module synchronously..

  1. without preloading the dependent sap.ui.fl lib
  2. without checking if the core has been already initialized

This is how the bootstrap process basically looks like right now in extended_runnable_file.html:

<!-- right after user defined bootstrap script -->
<script> /*changes_preview.js*/
  //Load the fake lrep connector
  jQuery.sap.require("sap.ui.fl.FakeLrepConnector");
  //...
</script>

This leads to loading all dependent modules synchronously / sequentially even those from the sap.ui.core and sap.m lib. It takes around 4 seconds to finish.

Demo: https://run.plnkr.co/plunks/vEv7d0x45HdnKuWT/extended_runnable_file.html

I think Web IDE can do it better to improve DX.

michal_keidar
Advisor
Advisor
0 Likes

boghyon.hoffmann - a fix is on its way... thanks for letting us know!