You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
zellij --version: 0.29.1 tput lines: 78 tput cols: 315 uname -av: Linux BassNet 5.15.7-051507-generic #202112081053-Ubuntu SMP Wed Dec 8 11:10:32 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Say that we have an invalid layout file saved at ~/.config/zellij/layouts/test.yaml with contents:
foo
(contents could be anything; such as a very complex layout with just a simple syntax error)
If we try to use this file like so: zellij --layout-path ~/.config/zellij/layouts/test.yaml, we get an error as expected:
Deserialization error: invalid type: string "foo", expected struct LayoutFromYamlIntermediate at line 1 column 1
However, if we use the same file like this: zellij --layout test.yaml, we get this error:
IoError: The layout was not found, File: test.yaml
While it is technically true that a valid layout was not found, this is also the same error that you'd get if the file simply didn't exist. And in this case the file does exist, zellij just failed to parse it. It would be much more helpful if the deserialization error was given instead of IoError.
The text was updated successfully, but these errors were encountered:
zellij --version
: 0.29.1tput lines
: 78tput cols
: 315uname -av
: Linux BassNet 5.15.7-051507-generic #202112081053-Ubuntu SMP Wed Dec 8 11:10:32 UTC 2021 x86_64 x86_64 x86_64 GNU/LinuxSay that we have an invalid layout file saved at
~/.config/zellij/layouts/test.yaml
with contents:(contents could be anything; such as a very complex layout with just a simple syntax error)
If we try to use this file like so:
zellij --layout-path ~/.config/zellij/layouts/test.yaml
, we get an error as expected:However, if we use the same file like this:
zellij --layout test.yaml
, we get this error:While it is technically true that a valid layout was not found, this is also the same error that you'd get if the file simply didn't exist. And in this case the file does exist, zellij just failed to parse it. It would be much more helpful if the deserialization error was given instead of IoError.
The text was updated successfully, but these errors were encountered: