Running "orca source cflags" fails when cwd is on different drive than install folder #109

Open
opened 2023-09-16 20:12:59 +00:00 by rdunnington · 0 comments
Collaborator
E:\Dev\handmade\test>orca source cflags
ERROR: Paths don't have the same drive
Traceback (most recent call last):
  File "C:\Users\Reuben\AppData\Local\orca\bin\sys_scripts\log.py", line 68, in shellfunc
    func(*args, **kwargs)
  File "C:\Users\Reuben\AppData\Local\orca\bin\sys_scripts\source.py", line 77, in cflags
    include = nicepath(args.srcdir)
              ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Reuben\AppData\Local\orca\bin\sys_scripts\source.py", line 72, in nicepath
    if path_contains(os.getcwd(), path_abs):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Reuben\AppData\Local\orca\bin\sys_scripts\source.py", line 68, in path_contains
    return os.path.commonpath([a_abs, b_abs]) == a_abs
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen ntpath>", line 814, in commonpath
ValueError: Paths don't have the same drive


Task failed with 1 error:
ERROR: Paths don't have the same drive
``` E:\Dev\handmade\test>orca source cflags ERROR: Paths don't have the same drive Traceback (most recent call last): File "C:\Users\Reuben\AppData\Local\orca\bin\sys_scripts\log.py", line 68, in shellfunc func(*args, **kwargs) File "C:\Users\Reuben\AppData\Local\orca\bin\sys_scripts\source.py", line 77, in cflags include = nicepath(args.srcdir) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Reuben\AppData\Local\orca\bin\sys_scripts\source.py", line 72, in nicepath if path_contains(os.getcwd(), path_abs): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Reuben\AppData\Local\orca\bin\sys_scripts\source.py", line 68, in path_contains return os.path.commonpath([a_abs, b_abs]) == a_abs ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen ntpath>", line 814, in commonpath ValueError: Paths don't have the same drive Task failed with 1 error: ERROR: Paths don't have the same drive ```
bvisness added the
windows
label 2023-09-17 14:59:38 +00:00
bvisness self-assigned this 2023-09-17 15:45:31 +00:00
Sign in to join this conversation.
No Label
macOS
windows
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: hmn/orca#109
No description provided.