Connecting VScode removed the contents of most of my queries

After enabling integration of VScode and successful connection I closed the session to come back the next day to every query in my project being wiped clean.

Names are still there but the content inside the queries is missing. So as in vscode when I connect.

I'm in a little bit of a panic here as it's 6 months of work with no backup.

Any idea what needs to be done to get it back?

Try using the history feature on the bottom right of your app (b/w debug and ?) and you should be able to restore from an older version

Screenshot 2024-04-03 at 11.48.16 AM

Screenshot 2024-04-03 at 11.49.15 AM

Also the _historyOffset URL param can generally help revert changes

1 Like

I went through 20 pages of history.
There is no item related to vscode integration I can undo.

tried _historyOffset all the way up to 1000
names of the functions are there but every single one that's not made in GUI mode is blank.

This has to be some sort of a bug. I can't loose all my work to this.

Have you disabled the beta/extension functionality? We store every save to the DB, so we should be able to get everything back. What's the app UUID from the address bar?

1 Like

I have disabled VScode beta integration. No results.

https://isensys.retool.com/apps/4f1d1664-f728-11ed-83c9-b3d75bb1d52e/iSENSYS%20Asset%20Manager

Just emailed you a backup of the app from yesterday that includes all the query contents, I'll follow up with the owning team on what may have gone wrong in your case. Don't think we've had other reports of that yet!

3 Likes

Siiiiick. Thank you.
What happened? And how can I prevent it from happening again?

You probably used the account's email I might have trouble finding access to.
Can you cc the email I originally email support from? I'll follow up with a DM with it.

No prob! And not sure yet with it being the first time we've heard about it, but I'll document that to have the team look into it. Feel free to reply if you find a way for us to repro this on our side. Definitely didn't happen when I hooked it up on initial beta launch :thinking:

Got the backup. Thank you.
Really appreciate you having a backup handy.

Of course, sorry for the trouble there but we can always get back to a working state worst case! :smile:

Nothing makes one more trigger happy with versioning like cases like this. =)

Hi Everyone!

I am having an issue after editing and playing with some queries in VS Code. One of my queries just completely disappeared, and on others, I am constantly seeing versioning issues saying another user has made changes to the query, but I am the only one writing queries or who has anything to do with the code.

I need to be able to trust the versioning and that the code will stay where I put it!!

image

Please help!

In my app: https://sqarp.retool.com/editor/de9f51b2-f77e-11ec-a9e6-77578ca65ef9/Onboarding%20Page

All queries that sync to VS-code disappeared from the editor. So all SQL and Javascript-queries are still there, but the code has completly disappeared, while rest-queries are still intact. I tried restoring to a previous release but the problem persists.

The app still works for users, but in the editor it is broken.

I am not sure, but it seems the most probable cause.

Hi @Sam_S and @lmolin, I merged your topics here so we can help you recover your queries. :slightly_smiling_face:

Could you share the UUID of your app?

@lmolin, I sent you a backup of the app from today, check you DMs.