Sbt damage terminal display

This is the main scraper for me; I am on Mac OS 10.11.6, and recently I started using sbt for scala. I am faced with a situation where every time I run the sbt command (for example, sbt run , sbt test , etc.) For a specific small project like Hello World (included at the bottom of this post), I lose the ability to see my strokes keyboard after that. My standard tooltip still exists, but everything that I print is not displayed. The keys are still registered, since I can type ls , press ENTER and still see the output, but I don't see that I typed ls .

Perhaps even more perplexing is that if I started sbt and went into interactive mode, I can see my keystrokes! Similarly, I can see my keystrokes in both the scala REPL and the IPython session. However, I do not see my keys in the standard python interpreter!

This is not a problem with my $PS1 , since I can unset PS1 , and the problem is the same. It is also not like other projects.

The directory structure is the standard sbt structure, and it is located in src/main/scala/Hello.scala :

 object Hello extends App { val p = Person("Foo") println("Hello from " + p.name) } case class Person(var name: String) 

Is it possible that when I copy / paste this into vim (from .pdf, if necessary), some bizarre character is hidden there? Otherwise, what happens to this?

+5
source share
1 answer

From Eric C. Richardson on sbt gitter:

 This is fixed now and should be in 1.0.2 - https://github.com/sbt/sbt/pull/3507/commits/b6a3ca19373c2ffa17c5660fa74a9a4204948b6e You can type stty echo to restore window or use - https://github.com/paulp/sbt-extras 
+2
source

Source: https://habr.com/ru/post/1271821/


All Articles