Hi,
Fairly trivial one.
Issue
Attempting to start using marvin-cli it would keep reporting config not found, using current directory.
Attempting to locate where it would store files I investigated source.
Located the following line which seems to want to find user's Roaming AppData folder.
|
const roamingDir = Deno.env.get("FOLDERID_RoamingAppData"); |
However, Deno.env.get("FOLDERID_RoamingAppData") results in undefined value
Workaround
Creating a user environment variable called FOLDERID_RoamingAppData set to the directory (My Roaming AppData folder) to hold the config works to workaround the issue.
Issue isolation:
- Installed Deno runtime
- Ran
Deno.env.get("FOLDERID_RoamingAppData"); -> undefined
- Ran
Deno.env.get("AppData"); -> Output of "C:\\Users\\Disle\\AppData\\Roaming" (My Roaming AppData folder)
Environment
This is a fresh Windows 11 install, as of ~nine days ago. No significant changes, certainly none that should have affected an environmental variable like that. I'm inclined to believe the wrong environmental variable is being looked at?
Hi,
Fairly trivial one.
Issue
Attempting to start using marvin-cli it would keep reporting config not found, using current directory.
Attempting to locate where it would store files I investigated source.
Located the following line which seems to want to find user's Roaming AppData folder.
marvin-cli/src/localStorage.ts
Line 38 in 63302cc
However,
Deno.env.get("FOLDERID_RoamingAppData")results in undefined valueWorkaround
Creating a user environment variable called
FOLDERID_RoamingAppDataset to the directory (My Roaming AppData folder) to hold the config works to workaround the issue.Issue isolation:
Deno.env.get("FOLDERID_RoamingAppData"); ->undefinedDeno.env.get("AppData");-> Output of"C:\\Users\\Disle\\AppData\\Roaming"(My Roaming AppData folder)Environment
This is a fresh Windows 11 install, as of ~nine days ago. No significant changes, certainly none that should have affected an environmental variable like that. I'm inclined to believe the wrong environmental variable is being looked at?