Skip to content
This repository has been archived by the owner on Nov 10, 2024. It is now read-only.

Crash with window width <40 #100

Open
poleguy opened this issue Jul 2, 2024 · 1 comment
Open

Crash with window width <40 #100

poleguy opened this issue Jul 2, 2024 · 1 comment

Comments

@poleguy
Copy link

poleguy commented Jul 2, 2024

If you shrink the terminal window down to 39 columns or below, skan crashes and loses your work.
If you try to run skan in a window that's 39 columns or smaller it will not run and will show the same error.

Exception in thread "main" java.lang.IllegalArgumentException: count is negative: -1
at [email protected]/java.lang.String.repeat(String.java:4422)
at skan.ui.Board$.toListItem$1(Board.scala:81)
at skan.ui.Board$.$anonfun$4(Board.scala:111)
at scala.collection.ArrayOps$.map$extension(ArrayOps.scala:932)
at skan.ui.Board$.render(Board.scala:111)
at skan.project$package$.runBoard$1$$anonfun$1(project.scala:26)
at scala.runtime.function.JProcedure1.apply(JProcedure1.java:15)
at scala.runtime.function.JProcedure1.apply(JProcedure1.java:10)
at tui.Terminal.draw(Terminal.scala:84)
at skan.project$package$.runBoard$1(project.scala:26)
at skan.project$package$.run$$anonfun$1(project.scala:276)
at scala.runtime.function.JProcedure2.apply(JProcedure2.java:15)
at scala.runtime.function.JProcedure2.apply(JProcedure2.java:10)
at tui.withTerminal$.apply(withTerminal.scala:16)
at skan.project$package$.run(project.scala:276)
at skan.run.main(project.scala:21)

@poleguy
Copy link
Author

poleguy commented Jul 2, 2024

It has the same type of crash on windows 3 rows or less.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant