DevToys
DevToys copied to clipboard
File access exception under Vagrant (x64)
Current behavior
✦ ❯ devtoys.cli Required command was not provided.
Description: DevToys
Usage: DevToys [command] [options]
Options: --version Show version information -?, -h, --help Show help and usage information
Commands: lc, listcompare Compare two lists esc, escape Escapes or unescapes a string, removing characters that could prevent parsing. textutilities, txt Analyze text and provide some basic utility tools xmltester, xsd Validate XML data via an XSD scheme. jpt, jsonpathtester Test a JSONPath imageconverter, imgconv Lossless image converter cbs, colorblindsimulator Simulate color blindness on a picture or screenshot guid, uuid Generate UUIDs version 1 , 4 (GUID) and 7 password, pwd Generate random passwords li, loremipsum Generate Lorem Ipsum (or similar) placeholder text checksum, hash Calculate hash from text or binary data xmlf, xmlformatter Indent or minify XML data sqlf, sqlformatter Format SQL data jsonf, jsonformatter Indent or minify JSON data url Encode or decode all the applicable characters to their corresponding URL entities qrcode Read or generate a QR Code from a text. Can be exported as SVG. html Encode and decode HTML text data gzip Compress or decompress a text in GZip cert, certificate Decode a certificate b64, base64 Encode and decode Base64 text data b64i, base64img Encode and decode Base64 image data nb, numberbase Convert numbers from one base to another jsontotable Convert a JSON array to tabular format, export to CSV or TSV jsontoyaml Convert JSON data to YAML and vice versa date Convert date to human-readable date and vice versa cron, cronparser Parse Cron expression to get scheduled dates
Unhandled exception. System.UnauthorizedAccessException: Access to the path '/home/vagrant/.local/share/DevToys-CLI-preview' is denied.
---> System.IO.IOException: Permission denied
--- End of inner exception stack trace ---
at System.IO.FileSystem.CreateParentsAndDirectory(String fullPath, UnixFileMode unixCreateMode)
at System.IO.FileSystem.CreateDirectory(String fullPath, UnixFileMode unixCreateMode)
at System.IO.Directory.CreateDirectory(String path)
at DevToys.CLI.Core.FileStorage.FileStorage.OpenWriteFile(String relativeOrAbsoluteFilePath, Boolean replaceIfExist) in /home/etienne/RiderProjects/Publish/submodules/DevToys/src/app/dev/platforms/desktop/DevToys.CLI/Core/FileStorage/FileStorage.cs:line 58
at DevToys.Core.Logging.FileLoggerProvider.<>c__DisplayClass7_0.<.ctor>b__0() in /home/etienne/RiderProjects/Publish/submodules/DevToys/src/app/dev/DevToys.Core/Logging/FileLoggerProvider.cs:line 28
at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) at System.Lazy
1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
at System.Lazy1.CreateValue() at DevToys.Core.Logging.FileLoggerProvider.<.ctor>b__7_1() in /home/etienne/RiderProjects/Publish/submodules/DevToys/src/app/dev/DevToys.Core/Logging/FileLoggerProvider.cs:line 29 at System.Lazy
1.ViaFactory(LazyThreadSafetyMode mode)
--- End of stack trace from previous location ---
at System.Lazy`1.CreateValue()
at DevToys.Core.Logging.FileLoggerProvider.Dispose() in /home/etienne/RiderProjects/Publish/submodules/DevToys/src/app/dev/DevToys.Core/Logging/FileLoggerProvider.cs:line 53
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.Dispose()
at Microsoft.Extensions.DependencyInjection.ServiceProvider.Dispose()
at Microsoft.Extensions.Logging.LoggerFactory.DisposingLoggerFactory.Dispose()
at DevToys.CLI.Program.Main(String[] args) in /home/etienne/RiderProjects/Publish/submodules/DevToys/src/app/dev/platforms/desktop/DevToys.CLI/Program.cs:line 56
Aborted (core dumped)
How to reproduce it (as minimally and precisely as possible)
Install via wget
of .deb followed by sudo apt install
on Ubuntu in a Vagrant managed VM
✦ ❯ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 23.10 Release: 23.10 Codename: mantic
Expected behavior
Exception does not occur
Screenshots
No response
Workaround
No response
Affected platforms
Linux
Affected DevToys kind
DevToys CLI
DevToys Version
✦ ❯ devtoys.cli --version 2.0-preview.3
Relevant Assets/Logs
No response