2017-05-17 8 views
1

無効な入力が入力された場合、GroovyShellは複数行を終了しないようです。 例:GroovyShell exit multiline

groovy:000> InvalidClosure { 
groovy:001> meaninglessCommands 
groovy:002> } 
ERROR groovy.lang.MissingMethodException: 
No signature of method: groovysh_evaluate.InvalidClosure() is applicable 
for argument types: (groovysh_evaluate$_run_closure1) values: 
[[email protected]] 
groovy:002> 

私は関係なく、私がしようとするものバックgroovy:000>に取得することはできません、それは私が同じ複数行のコマンドではまだだ理解しているのでREPLは、無効なコマンドを解釈し続けます。

このマルチインスタンスを終了するにはどうすればよいですか?

答えて

0

:clearと入力してください。

groovy:000> ? 
[...] 
Available commands: 
    :help  (:h) Display this help message 
    ?   (:?) Alias to: :help 
[...] 
    :display (:d) Display the current buffer 
    :clear  (:c) Clear the buffer and reset the prompt counter 
[...]