vrchat-community / creator-companion

The Entry Point for Making Things in VRChat
https://vrchat.com/home/download
54 stars 372 forks source link

[BUG] an Project is duplicated infinitely on the project list #400

Open anatawa12 opened 7 months ago

anatawa12 commented 7 months ago

Describe the bug

an Project is duplicated infinitely on the project list.

The project is made to test #274 so the project path may contains ` at the end of path (I have both project ends with ` and not)

To Reproduce

Open VCC and navigate to Settings and back to Projects will duplicate the project.

Expected behavior

No projects are duplicated

Screenshots

https://misskey.niri.la/notes/9n4919peim

image

Related Product

VCC (VRChat Creator Companion)

Product Version

2.2.2

OS

Windows 11

Additional context

here's my settings.json.

{
  "pathToUnityExe": "",
  "pathToUnityHub": "",
  "userProjects": [
    "C:\\Users\\anata\\Downloads\\face-emo-vpai-test",
    "C:\\Users\\anata\\UnityProjects\\test1",
    "D:\\UnityProjects\\2022-test-avatars",
    "D:\\UnityProjects\\Unity2022Avatars1",
    "D:\\UnityProjects\\Unity 2022 test 3",
    "D:\\UnityProjects\\Unity 2019 Avatar Template Test",
    "D:\\UnityProjects\\Unity 2022 test",
    "C:\\Users\\anata\\Downloads\\legacy-package-test-0",
    "D:\\UnityProjects\\New Avatars Test 3",
    "C:\\Users\\anata\\UnityProjects\\Anatawa12-Avaters",
    "C:\\Users\\anata\\Downloads\\New Project",
    "C:\\Users\\anata\\Downloads\\package resolution",
    "D:\\UnityProjects\\ユニティ退避",
    "C:\\Users\\anata\\Downloads\\vpm-legacy-assets-in-dependencies-test",
    "C:\\Users\\anata\\Downloads\\vpm-legacy-files-test\\vpm-legacy-files-test",
    "D:\\UnityProjects\\test project1",
    "D:\\UnityProjects\\New TEst Projexct",
    "D:\\UnityProjects\\vpm-legacy-files-test",
    "D:\\UnityProjects\\vpm-legacy-assets-in-dependencies-test",
    "D:\\UnityProjects\\vpm-test-empty",
    "D:\\UnityProjects\\vpm-test-resolver-only",
    "D:\\UnityProjects\\vpm-test-cl4ee-only",
    "D:\\UnityProjects\\vrcsdk-avatars-test-1",
    "D:\\UnityProjects\\ws-test-proj ",
    "D:\\UnityProjects\\ws-test-proj",
    "D:\\UnityProjects\\New Project test for beta",
    "D:\\UnityProjects\\worlds.0",
    "D:\\UnityProjects\\vpai-test",
    "D:\\UnityProjects\\iwasynctest",
    "D:\\UnityProjects\\3.1.x-bug",
    "D:\\UnityProjects\\New Project test 217",
    "D:\\UnityProjects\\liltoon-vpm-test-migration-Migrated-4",
    "D:\\UnityProjects\\New Project1",
    "D:\\UnityProjects\\vpm upgrade test project",
    "D:\\UnityProjects\\liltoon-vpm-test-migration-Migrated",
    "D:\\UnityProjects\\liltoon-vpm-test-migration",
    "D:\\UnityProjects\\liltoon-vpm-test",
    "D:\\UnityProjects\\New Project",
    "D:\\UnityProjects\\RISV4-conflict-Migrated",
    "D:\\UnityProjects\\RISV4-conflict",
    "C:\\Users\\anata\\MigrateTests\\world-2022.07.26-Migrated",
    "C:\\Users\\anata\\MigrateTests\\world-2022.07.26",
    "C:\\Users\\anata\\UnityProjects\\vpm-freeze",
    "C:\\Users\\anata\\UnityProjects\\vpm-upgrade-problem",
    "C:\\Users\\anata\\UnityProjects\\migrate-test-vcc104-2-Migrated",
    "C:\\Users\\anata\\UnityProjects\\migrate-test-vcc104-2",
    "C:\\Users\\anata\\UnityProjects\\vpm-test",
    "C:\\Users\\anata\\UnityProjects\\QuestSleep",
    "C:\\Users\\anata\\UnityProjects\\KeyboardTester",
    "C:\\Users\\anata\\UnityProjects\\avatartestg",
    "C:\\Users\\anata\\UnityProjects\\UdonSharp1_test"
  ],
  "unityEditors": [],
  "preferredUnityEditors": {
    "2019": "C:\\Program Files\\Unity\\Hub\\Editor\\2019.4.31f1\\Editor\\Unity.exe",
    "2022": "C:\\Program Files\\Unity\\Hub\\Editor\\2022.3.6f1\\Editor\\Unity.exe"
  },
  "defaultProjectPath": "D:\\UnityProjects",
  "lastUIState": 4,
  "skipUnityAutoFind": true,
  "userPackageFolders": [],
  "windowSizeData": {
    "width": 1499,
    "height": 770,
    "x": 240,
    "y": 201
  },
  "skipRequirements": false,
  "lastNewsUpdate": "2023-03-09T08:07:43.8674628Z",
  "allowPii": false,
  "projectBackupPath": "C:\\Users\\anata\\AppData\\Local\\VRChatCreatorCompanion\\Project Backups",
  "showPrereleasePackages": true,
  "trackCommunityRepos": true,
  "selectedProviders": 37,
  "lastSelectedProject": "D:\\UnityProjects\\3.1.x-bug",
  "userRepos": [
    {
      "localPath": "C:\\Users\\anata\\AppData\\Local\\VRChatCreatorCompanion\\Repos\\e9766711-7bb7-4b8f-bd00-3f06b8e1186c.json",
      "url": "https://thryrallo.github.io/VRC-Avatar-Performance-Tools/index.json",
      "name": "de.thryrallo.vrc.avatar-performance-tools Releases",
      "id": "https://thryrallo.github.io/VRC-Avatar-Performance-Tools/index.json",
      "headers": {}
    },
    {
      "localPath": "C:\\Users\\anata\\AppData\\Local\\VRChatCreatorCompanion\\Repos\\dev.nadena.prerelease.json",
      "url": "https://vpm.nadena.dev/vpm-prerelease.json",
      "name": "bd_ (prereleases)",
      "id": "dev.nadena.prerelease",
      "headers": {}
    },
    {
      "localPath": "C:\\Users\\anata\\AppData\\Local\\VRChatCreatorCompanion\\Repos\\d414ff98-1a60-48ac-96d0-353cc3888be0.json",
      "url": "https://azukimochi.github.io/vpm-repos/index.json",
      "name": "Azukimochi",
      "id": "io.github.azukimochi.main"
    },
    {
      "localPath": "C:\\Users\\anata\\AppData\\Local\\VRChatCreatorCompanion\\Repos\\d79bb374-21a4-4fd5-8de0-de7e3da5c592.json",
      "url": "http://lilxyzw.github.io/vpm-repos/vpm.json",
      "name": "lilxyzw",
      "id": "io.github.lilxyzw.vpm",
      "headers": {}
    },
    {
      "localPath": "C:\\Users\\anata\\AppData\\Local\\VRChatCreatorCompanion\\Repos\\708e00e9-6213-459c-81b4-b28871366872.json",
      "url": "https://whiteflare.github.io/vpm-repos/vpm.json",
      "name": "whiteflare",
      "id": "jp.whiteflare.vpm",
      "headers": {}
    },
    {
      "localPath": "C:\\Users\\anata\\AppData\\Local\\VRChatCreatorCompanion\\Repos\\d953d6e0-d034-4f1e-8335-ec7476291ca2.json",
      "url": "https://vpm.anatawa12.com/curated-experimental.json",
      "name": "anatawa12's curated repo (experimental)",
      "id": "com.anatawa12.curated.experimental",
      "headers": {}
    },
    {
      "localPath": "C:\\Users\\anata\\AppData\\Local\\VRChatCreatorCompanion\\Repos\\a4ebac19-1610-4293-bbb9-abce0d4d7474.json",
      "url": "https://vpm.narazaka.net/index.json",
      "name": "Narazaka VPM Listing",
      "id": "net.narazaka.vpm",
      "headers": {}
    },
    {
      "localPath": "C:\\Users\\anata\\AppData\\Local\\VRChatCreatorCompanion\\Repos\\dc3ec668-5d0a-4369-b684-e1e74c441f04.json",
      "url": "https://anatawa12.github.io/vpm-repo-for-vcc-bug-testing/index.json",
      "name": "Anatawa12's Test VPM Repository for VCC's bug",
      "id": "io.github.anataw12.vpm-repo-for-vcc-bug-testing",
      "headers": {}
    },
    {
      "localPath": "C:\\Users\\anata\\AppData\\Local\\VRChatCreatorCompanion\\Repos\\96ab32a3-94b8-4049-8a75-ed5ef321250e.json",
      "url": "https://vpm.niri.la/vpm.json",
      "name": "ni rila",
      "id": "la.niri.vpm",
      "headers": {}
    },
    {
      "localPath": "C:\\Users\\anata\\AppData\\Local\\VRChatCreatorCompanion\\Repos\\5e2fdecb-a67e-4a23-8b93-03ef08af010a.json",
      "url": "https://vpm.ureishi.net/repos.json",
      "name": "ureishi",
      "id": "net.ureishi.vpm",
      "headers": {}
    },
    {
      "localPath": "C:\\Users\\anata\\AppData\\Local\\VRChatCreatorCompanion\\Repos\\352d0a8d-c6b8-4b2e-b835-edafda977a23.json",
      "url": "https://vpm.nadena.dev/vpm.json",
      "name": "bd_",
      "id": "dev.nadena.vpm",
      "headers": {}
    },
    {
      "localPath": "C:\\Users\\anata\\AppData\\Local\\VRChatCreatorCompanion\\Repos\\c36a6270-ef7e-46b7-99c7-a526ef3c8779.json",
      "url": "https://vpm.anatawa12.com/vpm.json",
      "name": "anatawa12",
      "id": "com.anatawa12.main",
      "headers": {}
    },
    {
      "localPath": "C:\\Users\\anata\\AppData\\Local\\VRChatCreatorCompanion\\Repos\\d5fa4dd0-6ac7-40d3-9158-4f2fc6d1d983.json",
      "url": "https://cyanlaser.github.io/CyanTrigger/index.json",
      "name": "CyanTrigger VCC Listing",
      "id": "com.cyan.cyantrigger.vcc-listing",
      "headers": {}
    },
    {
      "localPath": "C:\\Users\\anata\\AppData\\Local\\VRChatCreatorCompanion\\Repos\\1bb5c5be-0acd-4daa-8ac4-0c6f20b1d824.json",
      "url": "https://hotaru86.github.io/VPM/index.json",
      "name": "ほたるのひかり",
      "id": "io.github.hotaru86.VPM",
      "headers": {}
    }
  ]
}
orels1 commented 7 months ago

For context: seems like the syncing from settings.json into the database - trims that part of the path off when saving, and as a result - creates another copy of the project in the database.

we should fix this, but just wanted to bring up that the project storage in settings will be removed in the future release per v2.2.0 release notes