Backup File

Plugins for SynWrite and CudaText...
Stefan
Posts: 112
Joined: 06.10.2012 15:06

Post by Stefan »

Cannot get it to work. This is the error I get in the output panel:
Traceback (most recent call last):
File "D:\Toolbox\CudaText\py\cuda_backup_file\cd_bk.py", line 350, in copy_bk_or_compare
subprocess.Popen(diff, shell=vrn_data['dfsh'])
File "subprocess.py", line 858, in __init__
File "subprocess.py", line 1311, in _execute_child
FileNotFoundError: [WinError 2] Das System kann die angegebene Datei nicht finden
ERROR: Exception in CudaText for copy_bk_or_compare: FileNotFoundError: [WinError 2] Das System kann die angegebene Datei nicht finden
And this is my entry in the field Diff command:

Code: Select all

"{App_Drive}\Toolbox\WinMerge\WinMergePortable.exe" "{COPY_PATH}" "{FILE_PATH}"
The path to my WinMerge should be correct, because this works in External Tools:

Code: Select all

Filename: {AppDir}..\..\WinMerge\WinMergePortable.exe
Parameters: "{FileName_g1}" "{FileName_g2}"
main Alexey
Posts: 2323
Joined: 25.08.2021 18:15

Post by main Alexey »

But you entered in wrong case: it must be uppercase {APP_DRIVE} ..
main Alexey
Posts: 2323
Joined: 25.08.2021 18:15

Post by main Alexey »

And it was my bug too. now fixed, tested on linux. update the Git repo:

- 'plugins / addons manager / update'
- here you must see 'Git' near 'Backup file'
- check this item, OK btn in dialog
- restart Cud
main Alexey
Posts: 2323
Joined: 25.08.2021 18:15

Post by main Alexey »

New python code writes to the Console:
"Backup File runs: xxxxxxxxxxxxxxx"
so if diff-command won't run , see this line - tell me?
Stefan
Posts: 112
Joined: 06.10.2012 15:06

Post by Stefan »

No "Git" to be seen on the whole update-dialog window.
Maybe because when I installed it, I could not select "Clone" as recommended (it threw an error), and so I selected Zip instead. Which seemed to work fine.
In any case, I don't get to see any "Git".
Should I simply un-install, restart, and install again?
main Alexey
Posts: 2323
Joined: 25.08.2021 18:15

Post by main Alexey »

>Should I simply un-install, restart, and install again?
yes! If you did not 'clone'.
Stefan
Posts: 112
Joined: 06.10.2012 15:06

Post by Stefan »

Got it to work. Flawless, it behaves as it should.
I tried various conditions and files, and also another Compare tool with different commandline parameters. No problems. Cuda handed the files over, as expected. NICE! :)

I don't think it is necessary to test the other macros (filename parameters for backups etc) since you did not change anything in that area of the code. Or did you?
main Alexey
Posts: 2323
Joined: 25.08.2021 18:15

Post by main Alexey »

I did not ...
Stefan
Posts: 112
Joined: 06.10.2012 15:06

Post by Stefan »

Regression Alarm:
{APP_DRIVE} stopped working. And it is no longer listed under the Help-button of the plugin. I am sure it was mentioned there. Might have lost it when I updated Breadcrumbs via the update dialog. Did not pay attention to what other plugins it was updating.
main Alexey
Posts: 2323
Joined: 25.08.2021 18:15

Post by main Alexey »

Guess you updated (but actually reverted) from Addons Manager? check that you get it from Git! https://github.com/cudatext-addons/cuda_backup_file
Post Reply