mirror of
https://github.com/enso-org/enso.git
synced 2024-11-23 16:18:23 +03:00
246755d29b
While doing regular node manipulation in editior, noticed a number of situations when ``` java.lang.IndexOutOfBoundsException: None at java.base/java.lang.Character.offsetByCodePoints(Character.java:8699) at java.base/java.lang.String.offsetByCodePoints(String.java:820) at org.enso.text.buffer.CodePointView$Ops$.drop(CodePointView.scala:98) at org.enso.text.buffer.CodePointView$Ops$.drop(CodePointView.scala:57) at org.enso.text.buffer.Node.drop(Tree.scala:218) at org.enso.text.buffer.Rope.dropWith(Rope.scala:86) at org.enso.text.buffer.CodePointView.drop(CodePointView.scala:30) at org.enso.text.editing.RopeTextEditor$.cutOutTail(RopeTextEditor.scala:42) ... ``` would be thrown. Further text edits would simply be rejected requiring a complete restart. I doubt we should propagate `IndexOutOfBoundsException`. Instead it is safer to just apply the edit to the end of the rope. |
||
---|---|---|
.. | ||
rust | ||
scala | ||
README.md |
Libraries
This directory contains the libraries that should remain in this project, but that are not technically part of the main language implementation itself.