-
Notifications
You must be signed in to change notification settings - Fork 441
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
Issue parsing Mix Standalone path on Windows #1228
Comments
One way I see is supporting quotes to resolve ambiguity, but in shell this will require nested quotes like |
Only split on the first |
The parsing is already runtime-specific livebook/lib/livebook/config.ex Lines 318 to 319 in 8f4cafe
It's just that there's a genuine ambiguity in |
Maybe move the flats to be first and we parse the known flags?
--
*José Valimhttps://dashbit.co/ <https://dashbit.co/>*
|
Actually, the flags can also include a file path, so it's always going to be unrealiable, unless we have a way to implicitly distinguish the parts 🤔 |
Ok, so I think we need two vars. |
For the mix runtime the flags are project path and mix run flags, so we would still need the quotes? |
@jonatanklosko if we are looking at flags, then does it mean we need First split once on |
Ok. I actually think we should just check for Windows style paths. Check if we have |
Yeah, sounds good to me! Theoretically the path could have |
I think in those cases people can use the quotes. But solving the immediate case for windows for be beneficial. |
Environment
git rev-parse HEAD
if running with mix): 0.6.1Current behavior
With Livebook 0.5, Mix Standalone runtime used to work fine. I set my environment variable like below:
SET LIVEBOOK_DEFAULT_RUNTIME=mix:C:/Users/my.name/livebook
After upgrading to the latest version, starting Livebook fails with this error:
ERROR!!! [Livebook] "C" does not point to a Mix project
I believe this is because the latest version adds support for [:FLAGS], messing file path splitting on Windows. Fortunately my Mix project lives on the same drive, so I can use
/Users/my.name/livebook
. But if my Mix project lives on another drive, then I see this as a blocking issue.If this is an intended behavior and there's another way to do this, then the documentation should make this clearer.
Expected behavior
I expect either the file path to be parsed correctly, or the documentation to be made clearer.
The text was updated successfully, but these errors were encountered: