question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Opening files fails on *nix

See original GitHub issue

The 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:closed
  • Created 4 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
RandomFractalscommented, Jul 31, 2019

@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

1reaction
RandomFractalscommented, Jul 31, 2019

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found