[forge-issues] [JBoss JIRA] (FORGE-1991) When using the forge console the first error causes it to lock and not allow further typing

Vineet Reynolds (JIRA) issues at jboss.org
Mon Sep 8 11:16:03 EDT 2014


    [ https://issues.jboss.org/browse/FORGE-1991?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12999969#comment-12999969 ] 

Vineet Reynolds edited comment on FORGE-1991 at 9/8/14 11:15 AM:
-----------------------------------------------------------------

So, the shell is locked up until the script execution times out, because the current implementation of {{RunCommand}} does not detect any failure/result on the first error. It continues to loop expecting the command execution to return a result. Although it has the {{ScriptCommandListener}} attached to the shell, this listener is not triggered, since the execution control has not returned to the controller ({{SingleCommandController}}) yet.

In an other thread, the error message is written out to the shell (via {{CommandAdapter}}). No message is sent to the other thread indicating failure in validation during command execution.


was (Author: vineet.reynolds):
So, the shell is locked up until the script execution times out, because the current implementation of {{RunCommand}} does not detect any failure/result on the first error. It continues to loop expecting the command execution to return a result. Although it has the {{ScriptCommandListener}} attached to the shell, this listener is not triggered, since the execution control has not returned to the controller ({{SingleCommandController}}) yet.

In an other thread, the error message is written out to the shell. No message is sent to the other thread indicating failure in validation during command execution.

> When using the forge console the first error causes it to lock and not allow further typing
> -------------------------------------------------------------------------------------------
>
>                 Key: FORGE-1991
>                 URL: https://issues.jboss.org/browse/FORGE-1991
>             Project: Forge
>          Issue Type: Bug
>          Components: UI - Eclipse
>    Affects Versions: 2.7.2.Final
>         Environment: Mac Maverick.  Eclipse Luna 4.4 Forge 2.7.2-Final
>            Reporter: Robb Greathouse
>            Assignee: Vineet Reynolds
>
> I was using the Forge Console to create a project.  I was able to create the project.  
> I was then able to create a jpa-new-entity 
> Then I created a field  with jpa-new-field --named myField --type java.lang.Double.double
> And that worked.
> I then tried creating another field; but had a misspelling with jpa-new-field --named myField2 --type java.land.Double.double misspelling lang
> This returned an error and the console locked up and I had to restart the console.  This failed and I had to restart eclipse.



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the forge-issues mailing list