Wappler Version : 6.7.3
Operating System : MacOS 14.6.1
Server Model: Node
Database Type: MySQL
Hosting Type: local & remote
Expected behavior
After following previous community post instructions to delete the .git folder within the project, I expected to be able to restart Wappler, not see my previous commit history, and have the ability to create a new local repository based on the How To Use Git
Actual behavior
I no longer needed my git commit history and wanted to start with a new local git repository. I initially moved my .git folder outside of my Wappler project, but Wappler's Git Manager was still showing all of my commit history. I then deleted the .git folder and this cleared my commit history from within Wappler, but started other issues described here. After deleting my project's .git folder, going to Git Manager, I only see the following:
I select Allow but nothing appears to happen other than my laptop fans kicking on high, and Wappler crashing after a few minutes.
The processes 'tccd' and 'wappler helper (renderer) are the top CPU processes when Wappler crashes and gives me the "Oops" message and asks if I want to restart the editor.
How to reproduce
Have a working local git repo with some commit history.
Stop Wappler
Move the .git folder out from underneath the project folder. In my case this location was still within iCloud's view
Restart Wappler and confirm that commit history is still showing
Stop Wappler and delete the .git folder in the project
When Wappler gave me the "Oops" message and asked if I wanted to restart the editor, I would say yes. In that circumstance, the tray icon would remain, but Wappler would fail to restart. I would have to click the Wappler icon in the MacOS application dock.
After a few times experiencing this behavior (answering yes to the editor restarting, Wappler tray icon visible, but Wappler not restarting), I would select the option to not have the editor restart, and then manually "Quit Wappler" from the tray icon.
Edit: Wappler just crashed again. Selecting not to reopen the editor from the "Oops" popup, closed Wappler as the tray icon disappeared. A search in Activity Monitor for 'wappler' showed no processes running.
As of this morning, I still do not see the "No Git Repository" or "Create Repository" messages.
Here's my current Wappler project folder structure:
TLDR; it seems Wappler was looking outside my project folder for git folders and/or files. After renaming my .git backups, removing the "dot", and restarting Wappler, I now see the correct screen in Git Manager and the ability to create a new repository.
Longer explanation:
As said previous, I did not just delete the .git folder within my project, as that is not good practice. What I did was:
Moved the .git folder out from my project folder initially but still within iCloud's view. Wappler was still able to see my commit history.
Moved the .git folder again but this time to a location on my laptop not even iCloud could see. Wappler was not able to see my commit history but showed a "loading..." message in Git Manager. Experienced several crashes documented previously.
Then renamed the .git folder to 'git' (removing the dot). Wappler then behaved as expected and gave me the ability to create a new repository within Git Manager.
I'm in the process now of creating a new repository.
It seems that Wappler looks outside of the project folder for .git based on the described behavior. Furthermore, Wappler never asked me for permission to access other applications until this issue.
Maybe something gets broken when you do that while running Wappler (It keeps running on background)
Make sure to fully quit from tray next time you need to change something outside Wappler
About the oops popup and restart not properly restarting, I've seen that behavior many many times before, should be considered as a separated bug, will try to report it soon with reproducible steps..