From: SourceForge.net <no...@so...> - 2003-01-08 18:56:01
|
Bugs item #664550, was opened at 2003-01-08 12:57 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=664550&group_id=44253 Category: Interactions Group: Annoying Status: Open Resolution: None Priority: 5 Submitted By: Eric E. Allen (eallen) Assigned to: Nobody/Anonymous (nobody) Summary: problem with loading certain interactions histories Initial Comment: When an interactions history is saved, a semicolon is inserted after every line that doesn't end in one. Apparently the interactions history parser uses these semicolons to recognize separate statements. This would work fine, except that the DrJava interactions window allows expressions to span multiple lines. Multi-line expressions become syntactically invalid under this transformation. With my usage patterns, this problem is not a rare occurrence because I often tend to feed the statements in a setup method for a TestCase to the interactions window when I'm writing new unit tests. Many of the setup statements will span multiple lines, and I'd like not to have to edit them before pasting into interactions. Come to think of it, I'd like to be able to simply click (or shift-click) on a statement and have it read into interactions... Maybe that should be a feature request. Also, from an aesthetic standpoint, I think we should try to maintain the invariant that any (halted) state of the interactions JVM can be saved automatically as interactions history. In fact, I would argue that this invariant is part of DrJava's implicit specification, which is why I'm filing a bug report and not a feature request. Admittedly, DrJava allows the user to edit the history before saving, so syntactic errors can be corrected manually. But I don't think that using this workaround is very ergonomic. -- Eric ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=664550&group_id=44253 |