.xojo_project file replaced with binary project / Lost license file

I use Fork for source code control and it no longer reads the .xojo_project file to show me the individual code changes. It treats it like a binary file. Could be because, for some reason, my license keys disappeared in Xojo on my desktop computer. Without license keys you can’t work with .xojo_project files.

I downloaded my license keys and added them back. Am I going to recover this file now or will I have to do something else. Maybe save it to binary and then back to .xojo_project and then recreate git setup.

I did not lose the license keys on my MacBook so I can see if I can download the latest version there.

Had the same issue. Save as binary, overwrite text project. Backup everything first.

Are you saying save as binary to another folder and then save as xojo_project to yet another folder and then copy/overwrite to the original leaving to preserve the source code control status?

I copied my entire git parent folder to create a current snapshot. I then opened my masquerading binary project from the copied directory and saved as text project in the original git parent directory.

Turns out I hosed this up pretty good in the time between the licenses disappearing and when I realized that was the problem. I’m just going to trash it and roll back to the last version that was good. Luckily it’s not a lot of work and I do save binary projects frequently enough.

Thanks for your help.

Yes, if you lose your license, it will start saving in binary format without telling you. Your work is all in that binary file now. :frowning:

1 Like

This has been happening to me for a few months whenever there’s a macOS Big Sur update. I think I read somewhere that Xojo thinks you’re on a different device after these updates. So I’ve formed a habit after every Big Sur update of logging into my Xojo account, deleting my licence “instances”, then going into Xojo and requesting a new licence (Xojo menu → License Keys → Update). They’re going to have to sort this out as it will begin to bite too many users.

1 Like

This is very dangerous because it doesn’t tell you it’s saving as a binary file, but overwrites the .xojo_project file with the binary project. The only way to see is suddenly the xojo_project file is now several MB. I have to make sure I’m logged in and that the licences are present. Quite often the license is not added automatically from the account, so I’ve downloaded the .xojo_license file and apply that. Sometimes after that is asks to transfer the license (It’s the same computer, but updated) and I use the file.
Regards,

Lee

Please file a bug report.

1 Like

The problem is that I had made some code changes and none of the changes were included in the save. I assume that’s because there’s no license.

Yes but it didn’t save any of the changes I had made.

It should have saved them to the binary file. I definitely didn’t see any loss of changes. Once I re-saved the binary over the old project as text, everything was there and working. That’s really interesting and, obviously, unfortunate.

1 Like

I’m going to have to watch that. This isn’t the first time it’s happened to me but the first since Big Sur. Can’t say I’ve used Xojo that much so haven’t be aware of this issue.

I caught this early because I use Fork for github. It wasn’t reading the project file detail and showed a warning in red saying something like “not LFS”. I knew something wasn’t right. Luckily I have a good backup system so I just restored the project.

Yea, it should, shouldn’t it. Maybe I declined to save? Not sure. It all got hosed up quick.

1 Like

I filed a bug report.

Since several months (years?) now, when Xojo crashes, the ability of Xojo to recover unsaved changes is broken (in my experience, it now never works). I’d not be surprised to see unreliable behavior on saving.

Except this isn’t about crashing and I worked along blissfully unaware for nearly three days without realizing and all of my work was saved.

It did it again! Updated to Big Sur 11.2.2 this morning and the project file went binary. Son of a biscuit!

1 Like

This is turning into a horror show. What I did was I saved as binary into another folder. Opened that and converted to project file. Copied just the .xojo_project file back into the Git managed folder. Now it’s back to showing the project file as a single file.

1 Like
Forum for Xojo Programming Language and IDE. Copyright © 2021 Xojo, Inc.