Extras icon indicating copy to clipboard operation
Extras copied to clipboard

[Bug]: The CudaText plugins was not persisted after update

Open rumia-san opened this issue 2 years ago • 1 comments

Prerequisites

  • [X] I have written a descriptive issue title.
  • [X] I have searched all issues/PRs to ensure it has not already been reported or fixed.
  • [X] I have verified that I am using the latest version of Scoop and corresponding bucket.

Package Name

cudatext

Expected/Current Behaviour

After update cudatext, the installed plugins were all lost. The reason is that the plugins in cudatext is under the "py" folder, which is not persisted in scoop 图片

Steps to Reproduce

1. Install an old version cudatext
2. Install a plugin via cudatext's plugin manager
3. Update the cudatext
4. The installed plugin was gone

Possible Solution

I'm not sure, maybe we could set the "py" folder as “persist”. However, the preinstalled plugins in this folder might be updated as well when the cudatext is updated.

Scoop and Buckets Version

Current Scoop version:
v0.3.1 - Released at 2022-11-15

'extras' bucket:
17ca8f392 (HEAD -> master, origin/master, origin/HEAD) youtube-music: Update to version 3.1.0

'main' bucket:
eabbf9a5d (HEAD -> master, origin/master, origin/HEAD) [email protected]: Fix hash (Closes #5339)

Scoop Config

aria2-enabled last_update                       scoop_branch scoop_repo
------------- -----------                       ------------ ----------
         True 2023-12-11T12:01:13.6470730+08:00 master       https://github.com/lukesampson/scoop

PowerShell Version

Name                           Value
----                           -----
PSVersion                      5.1.19041.3693
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.3693
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Additional Softwares

No response

rumia-san avatar Dec 11 '23 06:12 rumia-san

It seems data folder contains language, lexer, themes, etc. also need to be persisted.

However, there are pre-installed plungins (languages, lexers ...) in py and data folders. Persisting whole folders might prevent updating them.

Maybe we can persist all three folders (settings, py, data), and replace existing files with files in new zip to update.

amorphobia avatar Apr 03 '24 13:04 amorphobia

A similar issue found for msys2: ScoopInstaller/Main#3689

amorphobia avatar May 08 '24 07:05 amorphobia