-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Opening files fails on *nix #124
Comments
@aviaconstructor thanks for reporting this. I'll look into fixing it in the next release. |
@aviaconstructor could your provide a screenshot of the error you get on your *nix machine? || better yet clone and run this ext. local & give me some dev log dumps from Data Preview to help me resolve this issue for Mac & Linux users. See steps to launch it local here: https://github.com/RandomFractals/vscode-data-preview#dev-build I could try it on win10 WSL, but who has time :) Still, would love to patch this issue today |
@aviaconstructor I had other devs confirm what I have there in v1.27.0 works on Mac. So, my followup question: what *nix system are you using? :) |
closing this for now as I can't reproduce it without more info :( |
@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. |
@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 |
Thank you very much, the new version works great! I looked at your plans, and sure, data edit would be my favorite - in fact I was searching for an extension to enable non-programmers manipulate data files conveniently from the source code tree. I also checked the internals of vscode - they currently do not support modification of dom. But there could be tricks to play - found some examples with react.js inside vscode extension, but I gave up. If I am not mistaken, here is one of such extensions: https://github.com/rebornix/vscode-webview-react Thank you again for a quick fix! |
The extension works great on Windows, but does not operate on Linux for me - the path is arriving to
DataPreview
constructor asfile:///home/me/mysubdir/myfile.csv
, and there it gets truncated intohome/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!
The text was updated successfully, but these errors were encountered: