I keep setting up hierarchical schematics and saving the toplevels and everything. Whenever I commit to my Gitlab and merge, all of my project work dissolves. I close and reopen projects to complete blanks; some of the lower underlying sheets are recoverable but never the base project schematic. I’m using Win10, the most recent stable KiCad, and the SnapEDA plugin.
I don’t know if it has to do with CRLF->LF conversions done by Git or some terrible support on Windows. I don’t really understand why I keep running into this issue.
My files seem fine from the .bak files but I can’t recover them manually. Whenever I attempt to open them I get 4:23:18 PM: file ‘C:\Users\gamer…_rev0.sch-bak’, line 1: ‘=’ expected.
4:23:18 PM: file ‘C:\Users\gamer…_rev0.sch-bak’, line 2: ‘=’ expected.
etc., etc., for all of the sheets involved.
Are there any known bugs with KiCad and Git? Are there better version control environments to use KiCad with? I don’t understand how this could even be an issue. I have KiCad saving automatically every 3 minutes, and yet every time I save, close, and reopen my project everything seems to disappear or only remain in the .bak file.
Any insight on this would be really great. I realize this isn’t the first time someone has run into this.