Skip to content

marvin-cli on Windows 11 can't find permanent config - Deno.env.get("FOLDERID_RoamingAppData") results in undefined value #6

Description

@Dislexsick

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:

  1. Installed Deno runtime
  2. Ran Deno.env.get("FOLDERID_RoamingAppData"); -> undefined
  3. 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions