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

.net error when trying to run emulsion #175

Closed
CeVladimirich opened this issue Jan 9, 2023 · 2 comments · Fixed by #176
Closed

.net error when trying to run emulsion #175

CeVladimirich opened this issue Jan 9, 2023 · 2 comments · Fixed by #176
Assignees
Labels

Comments

@CeVladimirich
Copy link

Server: Debian 11, .NET Runtime 6.0
I'm installing on a server for the first time.
When trying to run the command dotnet run --project ./Emulsion emulsion.json an error

Unhandled exception. System.ArgumentException: The path must be absolute. (Parameter 'root')
   at Microsoft.Extensions.FileProviders.PhysicalFileProvider..ctor(String root, ExclusionFilters filters)
   at Microsoft.Extensions.FileProviders.PhysicalFileProvider..ctor(String root)
   at Microsoft.Extensions.Configuration.FileConfigurationExtensions.SetBasePath(IConfigurationBuilder builder, String basePath)
   at Emulsion.Program.getConfiguration(String directory, String fileName) in /home/www-user/emulsion/Emulsion/Program.fs:line 20
   at Emulsion.Program.main(String[] _arg1) in /home/www-user/emulsion/Emulsion/Program.fs:line 121
@CeVladimirich CeVladimirich changed the title .net error when trying to run emulsing .net error when trying to run emulsion Jan 9, 2023
@ForNeVeR
Copy link
Member

ForNeVeR commented Jan 9, 2023

Ow, it turns out that Emulsion requires an absolute path to emulsion.json in the arguments right now. Try passing it as absolute (/home/www-user/emulsion/Emulsion/emulsion.json, I presume), or try omitting it: the ./emulsion.json is used by default anyway.

This is not intended, of course, and I'll fix it soon. Let me know if you want a release with this fix on Docker Hub ASAP (if not, then the fix will be included into the next release, which is not planned, yet, at this point).

@ForNeVeR ForNeVeR self-assigned this Jan 9, 2023
@CeVladimirich
Copy link
Author

CeVladimirich commented Jan 9, 2023

Try passing it as absolute (/home/www-user/emulsion/Emulsion/emulsion.json, I presume), or try omitting it: the ./emulsion.json is used by default anyway

It works! Thanks.

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

Successfully merging a pull request may close this issue.

2 participants