You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Ivo Leitão (JIRA)" <ji...@apache.org> on 2016/12/11 17:29:58 UTC

[jira] [Reopened] (FELIX-5388) Strange Prompt characters in the eclipse console

     [ https://issues.apache.org/jira/browse/FELIX-5388?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ivo Leitão reopened FELIX-5388:
-------------------------------

I've tried with jline 3.1.1 and I'm seeing the mentioned characters. Also there's and exception displayed now that I was not seeing before:

Sample output without jna library:

WARNING: Creating a dumb terminal
java.lang.IllegalStateException: Unable to create a system terminal
	at org.jline.terminal.TerminalBuilder.doBuild(TerminalBuilder.java:177)
	at org.jline.terminal.TerminalBuilder.build(TerminalBuilder.java:149)
	at org.apache.felix.gogo.jline.Activator.doStartShell(Activator.java:136)
	at org.apache.felix.gogo.jline.Activator.lambda$startShell$0(Activator.java:106)
	at java.lang.Thread.run(Thread.java:745)
	Suppressed: java.lang.NoClassDefFoundError: com/sun/jna/Platform
		at org.jline.terminal.impl.jna.JnaNativePty.current(JnaNativePty.java:37)
		at org.jline.terminal.TerminalBuilder.doBuild(TerminalBuilder.java:210)
		... 4 more
	Caused by: java.lang.ClassNotFoundException: com.sun.jna.Platform not found by org.jline [3]
		at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1558)
		at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:79)
		at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1998)
		at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
		... 6 more
	Suppressed: java.io.IOException: Not a tty
		at org.jline.terminal.impl.ExecPty.current(ExecPty.java:43)
		at org.jline.terminal.TerminalBuilder.doBuild(TerminalBuilder.java:219)
		... 4 more
	Caused by: java.io.IOException: Error executing 'tty': not a tty
		at org.jline.utils.ExecHelper.exec(ExecHelper.java:42)
		at org.jline.terminal.impl.ExecPty.current(ExecPty.java:40)
		... 5 more

____________________________
Welcome to Apache Felix Gogo

=~
 
g!  

Sample output with jna library net.java.dev.jna/jna-osgi/4.1.0

WARNING: Creating a dumb terminal
java.lang.IllegalStateException: Unable to create a system terminal
	at org.jline.terminal.TerminalBuilder.doBuild(TerminalBuilder.java:177)
	at org.jline.terminal.TerminalBuilder.build(TerminalBuilder.java:149)
	at org.apache.felix.gogo.jline.Activator.doStartShell(Activator.java:136)
	at org.apache.felix.gogo.jline.Activator.lambda$startShell$0(Activator.java:106)
	at java.lang.Thread.run(Thread.java:745)
	Suppressed: com.sun.jna.LastErrorException: [25] )-¼
		at com.sun.jna.Native.invokeVoid(Native Method)
		at com.sun.jna.Function.invoke(Function.java:367)
		at com.sun.jna.Function.invoke(Function.java:315)
		at com.sun.jna.Library$Handler.invoke(Library.java:212)
		at com.sun.proxy.$Proxy0.ttyname_r(Unknown Source)
		at org.jline.terminal.impl.jna.linux.LinuxNativePty.current(LinuxNativePty.java:33)
		at org.jline.terminal.impl.jna.JnaNativePty.current(JnaNativePty.java:40)
		at org.jline.terminal.TerminalBuilder.doBuild(TerminalBuilder.java:210)
		... 4 more
	Suppressed: java.io.IOException: Not a tty
		at org.jline.terminal.impl.ExecPty.current(ExecPty.java:43)
		at org.jline.terminal.TerminalBuilder.doBuild(TerminalBuilder.java:219)
		... 4 more
	Caused by: java.io.IOException: Error executing 'tty': not a tty
		at org.jline.utils.ExecHelper.exec(ExecHelper.java:42)
		at org.jline.terminal.impl.ExecPty.current(ExecPty.java:40)
		... 5 more

____________________________
Welcome to Apache Felix Gogo

=~
 
g!   

> Strange Prompt characters in the eclipse console
> ------------------------------------------------
>
>                 Key: FELIX-5388
>                 URL: https://issues.apache.org/jira/browse/FELIX-5388
>             Project: Felix
>          Issue Type: Bug
>          Components: Gogo Shell
>    Affects Versions: gogo.jline-1.0.0
>         Environment: Debian linux eclipse neon.1
>            Reporter: Ivo Leitão
>            Assignee: Guillaume Nodet
>         Attachments: prompt_characters.png
>
>
> Hi, I'm using eclipse with bndtools and I normally use the console view of eclipse to display the gogo shell. With version 1.0.0 of the normal gogo shell I can use it perfectly without problems. With jline I see some strange characters close to the prompt. The commands seem to work however     



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)