Ticket #311 (new defect)

Opened 7 months ago

Last modified 7 months ago

can't execute-selection that ends in a comment

Reported by: gz Assigned to: gz
Priority: major Milestone:
Component: IDE Version:
Keywords: Cc:

Description

From openmcl-devel:

At 6/10/2008 01:54 AM, Rich Sutton wrote: in the ide, bring up a listener. then make a buffer that ends with a comment, say a new buffer with just a ; in it. finally, select the contents of the buffer and invoke execute-selection. your listener will disappear. otherwise appears to be harmless. applies to multi-line comments too -- i ran into this because i had a bunch of test code commented out at the end of some file i was working on.

Change History

06/18/08 17:17:12 changed by gb

I believe that what happens is that the selection stream gets an EOF and the REPL asks whether or not EOF is "transient" on the input stream (as it can be on a TTY but generally isn't on other kinds of communication devices.) When we used PTYs in Cocoa listeners, that used to work (i.e., not terminate the REPL.)

If the transient-eof idea makes sense, it should probably be a method on the stream (that fd-based streams implement by looking at the fd's file type.)