Roger defaults don't work with absolute paths
Author: samestepCreated Sep 30, 2024Updated Nov 21, 2024
In Roger, the default path prefix is .:
This prevents absolute paths from being used if no --path is provided. For instance, this command:
roger trio ~/foo.substance ~/bar.style ~/baz.domainwill fail with this error message:
Error: ENOENT: no such file or directory, open 'Users/me/foo.substance'This is because we just directly call path.join with the prefix and the provided file path:
And in JavaScript, join('.', '/Users/me/foo.substance') === 'Users/me/foo.substance'.
Source: penrose/penrose