diff --git a/changelog.md b/changelog.md index f5a4eb6bc..918f4bbab 100644 --- a/changelog.md +++ b/changelog.md @@ -3,6 +3,7 @@ ## Unreleased * `FIX` A regression related to type narrow and generic param introduced since `v3.10.1` +* `FIX` Parse storagePath to improve reliability of resolving ${addons} placeholder * `FIX` Reference should also look in tablefield * `FIX` Determine that the index of `{...}` is an integer when iterating diff --git a/script/files.lua b/script/files.lua index f988e6769..9284708b3 100644 --- a/script/files.lua +++ b/script/files.lua @@ -919,10 +919,10 @@ function m.resolvePathPlaceholders(path) if addonsPath then return addonsPath end - local client = require 'client' - local storagePath = client.getOption('storagePath') + local client = require("client") + local storagePath = client.getOption("storagePath") if storagePath then - addonsPath = storagePath .. "/addonManager/addons" + addonsPath = (fs.path(storagePath) / "addonManager" / "addons"):string() else -- Common path across OSes local dataPath = "User/globalStorage/sumneko.lua/addonManager/addons"