Menu

#57 Nonexistent Command Line Files

open
None
5
2008-01-18
2002-04-14
No

Story:

The user runs DrJava from the command line with several filename arguments. The files specified do not exist.

Current Behavior:

Nothing happens. DrJava opens in exactly the same way as if none of the non-existant filenames had been entered at all.

Desired Behavior:

New, empty DefinitionsDocuments are created for each of the specified files. The documents are given the same title as specified. The files are marked modified by default, and when the user attempts to save them, the appropriate filename is automatically populated into the dialog.

There is no precedent on Mac OS X or (as far as I know) on Windows for opening files via a command line. There is a precedent in UNIX, however. The behavior specified above is taken from emacs. Pico behaves in the same way, though it only supports one file at a time. I would appreciate comments from users of other UNIX editors.

Discussion

  • John Garvin

    John Garvin - 2002-04-15
    • assigned_to: nobody --> johngarvin
     
  • Peter Centgraf

    Peter Centgraf - 2002-04-16
    • labels: --> 415663
     
  • John Garvin

    John Garvin - 2002-04-16
    • summary: Non-existant Command Line Files --> Nonexistent Command Line Files
     
  • Peter Centgraf

    Peter Centgraf - 2002-05-06

    Logged In: YES
    user_id=431096

    On second thought, "automatically populated into the dialog" doesn't make sense. If the filename is already known, Save should just write to disk. The only exception would be if there is a file already there by the time our new document is saved. In this case you could prompt to replace or cancel.

     
  • Peter Centgraf

    Peter Centgraf - 2003-07-22
    • assigned_to: johngarvin --> centgraf
     
  • Mathias Ricken

    Mathias Ricken - 2008-01-18

    Logged In: YES
    user_id=1075744
    Originator: NO

    Reclassified as feature request.
    We should either report that the files could not be found or create the files.

     
  • Mathias Ricken

    Mathias Ricken - 2008-01-18
    • labels: 415663 -->
     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.