Opening files fails on *nix
See original GitHub issueThe extension works great on Windows, but does not operate on Linux for me - the path is arriving to DataPreview
constructor as file:///home/me/mysubdir/myfile.csv
, and there it gets truncated into home/me/mysubdir/myfile.csv
, relative path, file not found. The fix would be to remove one slash less for non-Windows platforms, 'file://'
, so that the result path becomes absolute (will start with '/'
).
Thanks!
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Nix commands randomly giving "error: opening file '[': No such ...
Issue description When I enable nix.sshServe in my configuration.nix, I start getting the following error: error: opening file '[': No such ...
Read more >Installing package using `nix profile`: error opening directory
Hello, I am new to nix. I have tried out nix-env for installing packages, however its CLI is limited and so I tried...
Read more >NixOS: Fix `command-not-found` Database File Error - Evan Relf
If you try to run a command but don't have the program installed, it isn't always easy to figure out which package you...
Read more >newbie alert: nixos-install error: getting attributes of path ... No ...
Here's my configuration file. Is there a way to fix this? What's causing the issue? I've done: $ nix-channel --add https://nixos.
Read more >Nix - ArchWiki
If you just installed nix, you need to reboot. Too many open files. Some builds may run into an error such as error:...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@aviaconstructor this should be fixed now. I just pushed new v1.27.1 patch release with that update. Basically, I’ll rely on vscode Uri.fsPath for loading local data files. see changes tagged above.
Let me know if it works for you now & many thanks for bringing this to my attention and code troubleshooting assist 😃
Also, please review open features/enhancements I have planned for this ext. and let me know what you’d like to see in the next major release update. Just thumb up the once you like 😃
https://github.com/RandomFractals/vscode-data-preview/issues
@aviaconstructor thanks for the follow up on this! I’ll reopen it and try to patch it for Ubuntu.
Appreciate the screen pic and faulty code details to help me troubleshoot this.