Menu

#17 Error importing programs with spaces in name

0.9.1
open
nobody
5
2008-02-13
2008-02-13
R T
No

The import functionality is unable to handle any programs with spaces in their name. The program name shows up correctly in the list of programs but tries to import the program with only the first word.

Discussion

  • Tihomir Ilic

    Tihomir Ilic - 2008-03-06

    Logged In: YES
    user_id=967009
    Originator: NO

    Java can't handle spaces in identifiers anyway. Why naming a program like that?

     
  • Matthias

    Matthias - 2009-01-29

    I have the same problem here. Our program naming conventions define executable programs with "spoken names". So spaces are allowed and already used in our system. I think it can be a quoting problem inside the used MQL command only.

     
  • Erik Thomas

    Erik Thomas - 2009-01-29

    Hi,
    I solved the problem with the space in the program name.
    I changed line 393 in the class org.mxeclipse.dialogs.MatrixProgramsListDialog.java from

    String strQuery = "print program " + selProgram + " select code dump |";
    to
    String strQuery = "print program \"" + selProgram + "\" select code dump |";.

    But i found another bug to this topic, I got an error if I try to download a program with the characters "<", ">" and "/". But I don't think that this works cause that are forbidden characters in windows.

    But I hope that a developer bring in the space bugfix in the next version of MxEclipse.

    Thanks and regards,
    Erik

     

Log in to post a comment.

MongoDB Logo MongoDB