[Github-comments] [geany/geany] Handle continuous G_IO_IN-s without any data (#1461)

J-Dunn notifications at xxxxx
Sun Jan 7 20:56:41 UTC 2018


Hi, I am getting nowhere fixing this bug. It no longer locks up the screen but it does not provide gdb connection.

Could someone confirm I have inserted the right patch at the right line in src/spawn.c



```
			gsize n = line_buffer->len;

			while ((status = g_io_channel_read_chars(channel, line_buffer->str + n,
				DEFAULT_IO_LENGTH, &chars_read, NULL)) == G_IO_STATUS_NORMAL)
			{
                           SpawnChannelData *sc = (SpawnChannelData *) data;

	/* The solution for continuous empty G_IO_IN-s is to generate them outselves. :) */
	                  return spawn_read_cb(sc->channel, G_IO_IN, data);
```

I've been through this a dozen times today and it's still not producing anything in the debugger.  I have run the sample prog from command line gdb and all is fine. But I do not get any output from Scope.  Where should I see this ? Does it produce a VTE terminal like geany gear icon does or is it in one of the tabs in geany? 

The only two debug icons that are not greyed out are 'toggle breakpoint' and 'terminate'. Both produce the expected results. 

There must be a problem somewhere but it does not seem to be being reported. 
in help | debug messages; 
```

21:44:50: Geany INFO		: Added filetype Clojure (67).
21:44:50: Geany INFO		: Added filetype Scala (68).
21:44:50: Geany INFO		: Loaded libvte from libvte.so
21:44:50: GLib-GObject WARNING	: gsignal.c:2523: signal 'project-before-save' is invalid for instance '0x1538a20' of type 'GeanyObject'
21:44:50: Geany INFO		: Loaded:   /usr/local/lib/geany/scope.so (Scope Debugger)
21:44:50: Geany INFO		: unknown : None (UTF-8)
```

I run geany from command line but the only output there is the gsignal warning. 

```
 gdb --version
GNU gdb (GDB) Fedora 8.0.1-33.fc26


I love geany as a code editor but I'd like to use its IDE capabilities.  I'm desperate to dump the lumbering eclipse java dinosaur which takes about 5s just to step a single line of code :x


```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1461#issuecomment-355852070
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20180107/d03514e0/attachment.html>


More information about the Github-comments mailing list