Dbeaver restore unsaved script - restore

I am trying to restore an unsaved dBeaver script. I opened my DBeaver again after my system got shutdown abruptly and I can't find anything. All my SQL script are gone.
What can I do to restore or to find these script files?
In which folder are SQL scripts saved?

You can find all your project scripts in DBeaver in the "Projects" tab in the "Scripts" folder.
Or try to check this path manually: AppData\Roaming\DBeaverData\workspaceName\General(Project Name)\Scripts
(Some variables must be changed in this path)

If you installed DBeaver with snap on Linux, check
~/snap/dbeaver-ce/198/.local/share/DBeaverData/workspace6/General/Scripts
(change the number 198 or workspace6 to what you have)
Mind that the .local is a hidden folder, you need to show hidden files if you just click there.
Then check whether you find some temporary files in there.

You can find it in C:\Users\[your_user_name_enter_here]\AppData\Roaming\DBeaverData\workspace6\General\Scripts if the path yields an error, you can go on from C:\Users\[your_user_name_enter_here]\AppData\Roaming\DBeaverData. Otherwise, you can follow the same way as seen below image.

Since your scripts weren't saved on the disc, they are gone. Unfortunately, there is nothing you can do.

I have deleted a script by accident in DBeaver.
I've pressed Ctrl+Z on the left panel and the script appeared, but corrupted. So rigth click > Compare with > Local history
Then I could see previous versions. Hope this helps anyone. LOL
Steps

Related

How do I get my neovim settings to work properly and actually save

I just installed nvim for the first time, this is also my first time using a terminal based code editor, and I'm migrating from VSCode (ik it's going to be hard),
and now I'm configuring it, I'm following this tutorial:
https://www.youtube.com/watch?v=vdn_pKJUda8&t=347s&ab_channel=JoseanMartinez
And when put the code in the options.lua file, it does not do anything, for example, the
opt.relativenumber = true
is not doing anything
I have tried running commands to change settings, and that has worked, for example
:set relativenumber
But as soon as I exit the file and open a new one, it just breaks again
I have tried simply copy and pasting the code, restarting nvim, switching terminal emulators, etc.
It's really annoying because I am trying to get rid of this stupid feature where it continues comments to the next line and I have to run like 50 commands every time I open a new file just so I can edit it the way I want
My .config file is in
C:\Users\brady\.config
and my nvim.exe file is in
C:\Users\brady\nvim-win64\bin
I am on Windows 10 and my terminal emulator is called 'Tabby'
I figured it out! All the tutorials I am watching are on Linux, but I am on Windows. So instead of putting the nvim folder in my .config, I am supposed to put it in C:\Users\brady\AppData\Local
Are you sure that you're adding your nvim-config file in the correct directory? I'd assume that you need to add your init.vim into C:\Users\brady\.config\nvim\init.vim.
Maybe this answer helps you.

Delete VBA module

I was deleting an Access Object (a report) and Access crashed during the delete.
The object no longer exists in Access, but its module still shows up in VBA like a ghost.
If I click on it, I get a FILE NOT FOUND error.
If I try to compact & repair or compile the database, I get a FILE NOT FOUND error.
How can I solve this problem?
A potential option is to create a new database file, and import all of the content from the old database file. that will clear out the funky ghost stuff.
you write you tried compile already and it did not work.
Did you try decompile first though?
First of all make a backup copy (but am sure you already did that :) )
With Access and your access file closed type from the command prompt:
C:\yourOfficeInstallPath\MSACCESS.EXE /decompile
Access will start. Click File > Open and select the database you want to decompile
Open any module and click Debug > Compile
Then save your file and close.
Open again your file and compact it.
Let me know if it solved it.

Intellij no longer showing "Compare" and "Compare with Local" in VCS tab

I have been using the various compare options frequently but now they do not appear in any project. Restarting intellij has not resolved the issue.
Has anyone else run into this and discovered a solution? Note in the following screenshot:
( a ) The Compare with Local is not shown
( b ) The git options should come up immediately : not in a nested popup.
Update For those who wonder about Compare with local wrt VCS (/git):here ya go..
Diff with local seems to provide the same behavior as Compare with local. To access that feature I had to add keystroke to the Keyamp.
It is beyond strange that the above behavior / problems just suddently popped up. I went ahead and nuked the project and rebuilt it- but no help
The screenshot has all the Compare options in there.
Not sure, but probably you mean the IDEA-171150 issue.
UPD. Compare with local is the action of FileHistory, and it is still there, e.g. for Subversion History
Local changes tab never had this, Git Log and new Git History do not have such now. It is now called Diff with local.
It is not possible to assign a shortcut for the Show Diff with local at the moment, unfortunately. There is a request opened to allow choosing the default behavior: https://youtrack.jetbrains.com/issue/IDEA-82019

Accurev: Cannot remove workspace/stream

I'm trying to remove a workspace (or clone it to look like the parent, but I can't seem to do either). When I try, however, I get this message: Cannot remove workspace test_workspace, because it has a non-empty default group.
From what I've read, it means that there are active files (as shown by the 3 little green dots to the right of stream). I've tried everything to get those to go away but they just seem to stick around and therefore result in me being unable to remove the stream.
Alternatively, I could completely wipe out the stream and replace with the parent version, but I can't seem to do that either.
Any help would be greatly appreciated.
You need to purge the active files in this workspace.
Open the workspace and click on the "Default Group" filter -> select the files -> right click -> revert to backed.
If no files appear in the "Default Group" filter, click on the stranded filter and do the same as above to revert those files.
If you are using AccuRev 6.x, click on the outgoing mode and click on "Member" and "Stranded" to get a list of the active files.
Once you have done that, you can remove the workspace.
Similar problem here, fixed it following #jstanley's comment.
Open Workspace-> select it-> right click-> Edit.
In that prompt, I set the Location path to where I wanted it to put it on my local machine. For some reason, it was unable to "create a folder" and threw errors, so make sure Append Workspace name is unchecked and you select a folder that already exists.
It then populated the folder on my local machine attached to the workspace. And revert to basis worked, so afterwards I could remove the workspace and delete the folder.

In Intellij IDEA how do I reload file content's from disk?

In vim I can type :e and reload a file's contents from disk overwriting any changes I've made. It's a nice way to reset in case I've gotten lost or just want to undo all my changes. This obviously doesn't take into account any kind of refactoring, I just want to nuke all changes to buffer. Not even closing and reopening a tab will work.
How do I do this with Intellij IDEA? I'm using Intellij IDEA Ultimate 13 and I've disabled any kind of auto save.
File > Synchronize (Ctrl+Alt+Y)
It will load the file from the file system. If you have unsaved changes, it will ask if you want to discard them.
⌥⌘Y - Synchronize for Mac users
What I do in a similar situation:
Simple - Ctrl+Z, Ctrl+Shift+Z many times to quickly navigate the editing history
VCS rollback - either for the whole file or for the area being edited (by clicking green areas on the left)
Local History. Well, yes, for you case it's granularity is not sufficient, so first might be an option
There is also an option to put a label into Local History if you need to rollback to a specific point in time.
For those who use autosave - it is being triggered when code editor loses focus. So doing Alt-Tab during long editing without compiling or running the code makes sense.
Open the file in another editor, make an insignificant change and save it. PHPStorm will ask you what to do because the file system and in memory copies of the file have diverged. Click "Load File System Changes".
Note, I was unable to use my undo history as it had become corrupt.
Since what I want isn't really possible I wrote an extension to do it for me:
https://github.com/btipling/DiskRead/
I'll add it to the Jetbrains plugin repository, it's called "DiskRead".
I wrote a blog post about how I created this if anyone is curious.