-
Notifications
You must be signed in to change notification settings - Fork 9
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
Ledger demo: windows path problems #41
Comments
Relatedly, the online demos (https://docs.jsish.org/Demos.md#online) yield 502 Bad Gateway error. I'm happy to log that as a distinct issue if you'd prefer things broken out into distinct items. (I don't want to create too much noise while I'm still in exploration phase and not sure if this project matches my project enough to also stay around help fix things.) |
I tried opening the fossil repo and setting
I also tried running from mingw bash shell with the original default path of |
Re: 502 |
Hi and thanks for the bug reports.
|
Well we have progress! After commenting out line 1590 it get's past the default db setup and launches a browser. It's not working yet but I have a trail to follow through the thorn patch. I've spent a lot of hours learning how to handle cross platform paths in Python so once I get a handle on the Js(i) view of the world I might be able to help solidify these parts.
|
How to see the LogDebug messages? e.g. I tried adding a couple of lines to report what's going on but they're not being echoed to the starting shell. (Feel free to direct me elsewhere if this is too basic a question for here. I am learning how to use the web debugger (so cool!) but that hasn't revealed anything to me yet.) Starting at line Ledger.jsi:1588
|
Add the "-Debug" option to the command:
|
It's not the
|
Ah, I was misled by your statement about HOMEPATH etc.
Path normalization is particularly difficult. Will have to look at it tomorrow. |
thank you for the attention; I imagine you had other designs on your focus today! In my attempts to wrest my brain into sense making I landed in the same file, but was spelunking in Jsi_FileRealpathStr() instead. I still don't understand C, but the gist is far clearer to me than it was a few years ago. Likely you don't need it, but in case it's helpful: my searching led to python's posixpath lib as a battle tested help with the logic (by way of Roman Susi). |
There was code in Jsi_NormalPath to handle this case, but it was commented out. If there was a reason why, I can not remember. So I've uncommented it. Can you rebuild and give it a retry? I've also rebuilt the windows download: http://jsish.org/bin/jsish.exe |
Yes! That works. Thank you. I used the jsish.org binary as I don't have a C build system yet. A niggle: there's mistaken a message about not being in current checkout. Maybe that has something to do with why the section was commented out.
btw, very nice touch that jsi exits when the browser window closes. I've not seen any other local web server app do that. |
Relative path works but not absolute. I can work around this, it doesn't block me, but now is noted as current limitation.
Where make-index.jsi is just:
|
OK, I've commited a fix, if you'd like to download the jsish.exe and try it out. |
+1 it works. Thank you |
I just discovered Jsish and am in the process of understanding the landscape.
Following https://docs.jsish.org/Demos.md I get:
It looks like a problem merging current directory with HOMEDRIVE and HOMEPATH .
The text was updated successfully, but these errors were encountered: