Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI crash on linux with missing ~/.local/share directory #939

Open
rigel314 opened this issue Nov 17, 2024 · 1 comment
Open

CLI crash on linux with missing ~/.local/share directory #939

rigel314 opened this issue Nov 17, 2024 · 1 comment

Comments

@rigel314
Copy link

Describe the bug
Attempting to run the CLI build on linux with the dotnet 8 runtime, crashes unless you manually create a folder at ~/.local/share

To Reproduce
Steps to reproduce the behavior:

  1. Create a new linux user (or otherwise avoid having a ~/.local/share folder)
  2. wget https://github.com/baaron4/GW2-Elite-Insights-Parser/releases/download/v3.0.0.0/GW2EICLI.zip
  3. unzip GW2EICLI.zip
  4. dotnet ./GuildWars2EliteInsights-CLI.dll
  5. See error
Unhandled exception. System.ArgumentNullException: Value cannot be null. (Parameter 'path')
   at System.ArgumentNullException.Throw(String paramName)
   at System.ArgumentNullException.ThrowIfNull(Object argument, String paramName)
   at System.ArgumentException.ThrowNullOrEmptyException(String argument, String paramName)
   at System.IO.Directory.GetParent(String path)
   at System.Configuration.LocalFileSettingsProvider.GetPreviousConfigFileName(Boolean isRoaming)
   at System.Configuration.LocalFileSettingsProvider.Upgrade(SettingsContext context, SettingsPropertyCollection properties, Boolean isRoaming)
   at System.Configuration.LocalFileSettingsProvider.Upgrade(SettingsContext context, SettingsPropertyCollection properties)
   at System.Configuration.ApplicationSettingsBase.Upgrade()
   at GW2EIParser.Program.Main(String[] args) in G:\Projects\GW2-Elite-Insights-Parser\GW2EIParserCLI\Program.cs:line 20
[1]    539975 abort (core dumped)  dotnet ./GuildWars2EliteInsights-CLI.dll
  1. mkdir -p ~/.local/share
  2. mkdir -p ~/.config
  3. dotnet ./GuildWars2EliteInsights-CLI.dll
  4. See expected functionality
dotnet [arguments] [logs...]

-c [config path] : use another config file
-h : help

From the stack trace, I found this issue on the dotnet project: dotnet/runtime#98715, which gives a workaround of creating the folder. (along with ~/.config)

Since it's pretty clearly an upstream issue, I'm mostly creating this issue in case anyone here runs into the same issue trying to use Elite Insights CLI.

@stellarashes
Copy link
Contributor

I ran into the same issue trying to put this inside a container, and ended up finding the same issue on dotnet. Wish I saw your post earlier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants