Replies: 6 comments
-
I forgot to add that I am using WSL 1. This might be relevant! I have edited this issue to reflect this. xdg-open might be fixed or to be fixed soon in WSL2. If some Windows users do not have issue, this might explain it. I updated with your latest , and still have this problem. (Given general update problems Microsoft is having, I--and others--have been holding off updating. sorry, I forgot I was not up-to-date with WSL. I will probably update WSL soon.) |
Beta Was this translation helpful? Give feedback.
-
FWIW, I have been using WSL 2 after switching to Windows yesterday. It is much faster than WSL (which I tried last some time ago). If you are interested in tweaking neuron (around CLI.hs where it invokes But then, I suppose making |
Beta Was this translation helpful? Give feedback.
-
Thanks for the information! Since I have workarounds, I will probably not
tinker. I have enough problems keeping up with R, baby-steps-python, and
latex!
Can you recommend discussion forum(s) to follow Neuron developments,or is
Github itself your preferred way for users to follow this?
I wonder about a place for the user community, as your tool matures.
You may want to keep a lot of stuff out of GitHub itself?
Cheers!
Jay
|
Beta Was this translation helpful? Give feedback.
-
@jaysnoddy We have a project chat area on both Zulip and Matrix; see links in README. |
Beta Was this translation helpful? Give feedback.
-
Thanks. I will likely lurk there a bit to stay in touch with the project.
I am drafting a textbook; I may mention this system in an appendix that
recommends tools a young researcher may use to manage their ideas, data,
and information.
It took me an embarrassingly long time to find the chat tags, in part
because I was not familiar with the names of these chat systems and in part
these tags are often about programming languages or issue status. Not
sure, but perhaps some other old fogies and/or newbies may tend to gloss
over the tags?
|
Beta Was this translation helpful? Give feedback.
-
Interesting; do let us know if you get to mention neuron in your textbook! About the chat tags, that's a good observation-- I'll fix that. |
Beta Was this translation helpful? Give feedback.
-
Using
neuron open
inWSL1
(Windows Subsystem for Linux) creates an error.Not a dealmaker for me: I have been avoiding the command and use imperfect kludges.
(For users with this problem, see at bottom of this issue for one such kludge.)
However, this may be frustrating for other potential neutron users on WSL.
Thank, for the great tool! Aside from this, neuron within WSL works great!.
--jay
The Problem
Using 'neuron open' in WSL will create error messages similar to following.
Even though I was working in the bash shell of WSL, this error message is from Windows Powershell.
WSL bash seems to be passing execution to Windows Powershell.
I am using WSL1. (This is a Ubuntu distro, although I doubt this is relevant).
The error seems to be largely about passing a file path in the wrong format. (If unfamiliar, WSL uses Posix-style paths like
/mnt/c/foobar
to refer to windows paths likeC:\foobar
).Towards a solution?
In doing some investigation to hack a solution, I wonder if the problem could be fixed near
neuron/src/app/Neuron/CLI.hs line 67
????I suspect primary problem is
xdg-open
incorrectly passes off a posix-style WSL path to windows.I lack the Haskell programming skills to be sure this is the problem or try to fix this, though.
Perhaps the logic should include checking if in windows subsystem for linux, then...
EITHER 1) gracefully give up with a warning this will not work in WSL with a hint at alternatives
or better, 2) transform the posix-style path to pass off a correct windows-style path.
since you may not use WSL, perhaps some of the following may have hints that could be helpful???
An imperfect current solution for WSL 1 users.
Try updating to the most recent release of WSL--perhaps this xdg-open issue is fixed there?
If not fixed, then, perhaps, use explorer.exe from WSL command line. This windows program can work if it does not have to worry about paths! To avoid paths, you may need to cd where
neuron rib
output is (i.e. if using defaults, ~/zettelkasten/.neuron/output).To be more explicit...
The former will open the Windows explorer window and you can choose to open a file with its default program or
The latter will directly open the named file in a web browser, if an html mimetype.
You can recreate these commands in a script, of course. Though I actually just typed the following in once and then reverse-search (ctrl-r) for 'neuron open' when i need the line again.
This opens the file in my default web browser and NOT in windows explorer!
Beta Was this translation helpful? Give feedback.
All reactions