summaryrefslogtreecommitdiffstats
path: root/src/channel.c
AgeCommit message (Collapse)Author
2017-02-28patch 8.0.0387: compiler warningsv8.0.0387Bram Moolenaar
Problem: compiler warnings Solution: Add type casts. (Christian Brabandt)
2017-02-06patch 8.0.0312: failure when a channel receives a split json messagev8.0.0312Bram Moolenaar
Problem: When a json message arrives in pieces, the start is dropped and the decoding fails. Solution: Do not drop the start when it is still needed. (Kay Zheng) Add a test. Reset the timeout when something is received.
2017-01-14patch 8.0.0183: ubsan warns for unaligned addressv8.0.0183Bram Moolenaar
Problem: Ubsan warns for using a pointer that is not aligned. Solution: First copy the address. (Yegappan Lakshmanan)
2017-01-10patch 8.0.0166: JSON with a duplicate key gives an internal errorv8.0.0166Bram Moolenaar
Problem: JSON with a duplicate key gives an internal error. (Lcd) Solution: Give a normal error. Avoid an error when parsing JSON from a remote client fails.
2017-01-08patch 8.0.0160: EMSG() is sometimes used where it should be IEMSG()v8.0.0160Bram Moolenaar
Problem: EMSG() is sometimes used for internal errors. Solution: Change them to IEMSG(). (Dominique Pelle) And a few more.
2016-12-01patch 8.0.0107v8.0.0107Bram Moolenaar
Problem: When reading channel output in a timer, messages may go missing. (Skywind) Solution: Add the "drop" option. Write error messages in the channel log. Don't have ch_canread() check for the channel being open.
2016-11-29patch 8.0.0105v8.0.0105Bram Moolenaar
Problem: When using ch_read() with zero timeout, can't tell the difference between reading an empty line and nothing available. Solution: Add ch_canread().
2016-11-26patch 8.0.0103v8.0.0103Bram Moolenaar
Problem: May not process channel readahead. (skywind) Solution: If there is readahead don't block on input.
2016-11-24patch 8.0.0097v8.0.0097Bram Moolenaar
Problem: When a channel callback consumes a lot of time Vim becomes unresponsive. (skywind) Solution: Bail out of checking channel readahead after 100 msec.
2016-11-17patch 8.0.0087v8.0.0087Bram Moolenaar
Problem: When the channel callback gets job info the job may already have been deleted. (lifepillar) Solution: Do not delete the job when the channel is still useful. (ichizok, closes #1242, closes #1245)
2016-11-12patch 8.0.0082v8.0.0082Bram Moolenaar
Problem: Extension for configure should be ".ac". Solution: Rename configure.in to configure.ac. (James McCoy, closes #1173)
2016-11-11patch 8.0.0076v8.0.0076Bram Moolenaar
Problem: Channel log has double parens ()(). Solution: Remove () for write_buf_line. (Yasuhiro Matsumoto)
2016-10-27patch 8.0.0050v8.0.0050Bram Moolenaar
Problem: An exiting job is detected with a large latency. Solution: Check for pending job more often. (Ozaki Kiichi) Change the double loop in mch_inchar() into one.
2016-10-15patch 8.0.0036v8.0.0036Bram Moolenaar
Problem: Detecting that a job has finished may take a while. Solution: Check for a finished job more often (Ozaki Kiichi)
2016-10-09patch 8.0.0027v8.0.0027Bram Moolenaar
Problem: A channel is closed when reading on stderr or stdout fails, but there may still be something to read on another part. Solution: Turn ch_to_be_closed into a bitfield. (Ozaki Kiichi)
2016-10-09patch 8.0.0024v8.0.0024Bram Moolenaar
Problem: When the netbeans channel closes, "DETACH" is put in the output part. (Ozaki Kiichi) Solution: Write "DETACH" in the socket part.
2016-10-03patch 8.0.0022v8.0.0022Bram Moolenaar
Problem: If a channel in NL mode is missing the NL at the end the remaining characters are dropped. Solution: When the channel is closed use the remaining text. (Ozaki Kiichi)
2016-09-29patch 8.0.0018v8.0.0018Bram Moolenaar
Problem: When using ":sleep" channel input is not handled. Solution: When there is a channel check for input also when not in raw mode. Check every 100 msec.
2016-09-26patch 8.0.0015v8.0.0015Bram Moolenaar
Problem: Can't tell which part of a channel has "buffered" status. Solution: Add an optional argument to ch_status(). Let ch_info() also return "buffered" for out_status and err_status.
2016-09-07patch 7.4.2344v7.4.2344Bram Moolenaar
Problem: The "Reading from channel output..." message can be unwanted. Appending to a buffer leaves an empty first line behind. Solution: Add the "out_msg" and "err_msg" options. Writing the first line overwrites the first, empty line.
2016-09-04patch 7.4.2327v7.4.2327Bram Moolenaar
Problem: Freeing a variable that is on the stack. Solution: Don't free res_tv or err_tv. (Ozaki Kiichi)
2016-09-01patch 7.4.2298v7.4.2298Bram Moolenaar
Problem: It is not possible to close the "in" part of a channel. Solution: Add ch_close_in().
2016-09-01patch 7.4.2297v7.4.2297Bram Moolenaar
Problem: When starting a job that reads from a buffer and reaching the end, the job hangs. Solution: Close the pipe or socket when all lines were read.
2016-08-29patch 7.4.2293v7.4.2293Bram Moolenaar
Problem: Modelines in source code are inconsistant. Solution: Use the same line in most files. Add 'noet'. (Naruhiko Nishino)
2016-08-28patch 7.4.2287v7.4.2287Bram Moolenaar
Problem: The callback passed to ch_sendraw() is not used. Solution: Pass the read part, not the send part. (haya14busa, closes #1019)
2016-08-26patch 7.4.2258v7.4.2258Bram Moolenaar
Problem: Two JSON messages are sent without a separator. Solution: Separate messages with a NL. (closes #1001)
2016-08-24patch 7.4.2250v7.4.2250Bram Moolenaar
Problem: Some error message cannot be translated. Solution: Enclose them in _() and N_(). (Dominique Pelle)
2016-08-01patch 7.4.2137v7.4.2137Bram Moolenaar
Problem: Using function() with a name will find another function when it is redefined. Solution: Add funcref(). Refer to lambda using a partial. Fix several reference counting issues.
2016-07-30patch 7.4.2131v7.4.2131Bram Moolenaar
Problem: More memory leaks when using partial, e.g. for "exit-cb". Solution: Don't copy the callback when using a partial.
2016-07-22patch 7.4.2090v7.4.2090Bram Moolenaar
Problem: Using submatch() in a lambda passed to substitute() is verbose. Solution: Use a static list and pass it as an optional argument to the function. Fix memory leak.
2016-07-15patch 7.4.2045v7.4.2045Bram Moolenaar
Problem: Memory leak when using a function callback. Solution: Don't save the function name when it's in the partial.
2016-07-11patch 7.4.2026v7.4.2026Bram Moolenaar
Problem: Reference counting for callbacks isn't right. Solution: Add free_callback(). (Ken Takata) Fix reference count.
2016-07-10patch 7.4.2024v7.4.2024Bram Moolenaar
Problem: More buf_valid() calls can be optimized. Solution: Use bufref_valid() instead.
2016-07-07patch 7.4.1998v7.4.1998Bram Moolenaar
Problem: When writing buffer lines to a job there is no NL to NUL conversion. Solution: Make it work symmetrical with writing lines from a job into a buffer.
2016-06-27patch 7.4.1965v7.4.1965Bram Moolenaar
Problem: When using a job in raw mode to append to a buffer garbage characters are added. Solution: Do not replace the trailing NUL with a NL. (Ozaki Kiichi)
2016-06-26patch 7.4.1959v7.4.1959Bram Moolenaar
Problem: Crash when running test_channel.vim on Windows. Solution: Check for NULL pointer result from FormatMessage(). (Christian Brabandt)
2016-06-12patch 7.4.1924v7.4.1924Bram Moolenaar
Problem: Missing "void" for functions without argument. Solution: Add "void". (Hirohito Higashi)
2016-06-07patch 7.4.1906v7.4.1906Bram Moolenaar
Problem: Collapsing channel buffers and searching for NL does not work properly. (Xavier de Gary, Ramel Eshed) Solution: Do not assume the buffer contains a NUL or not. Change NUL bytes to NL to avoid the string is truncated.
2016-06-05patch 7.4.1902v7.4.1902Bram Moolenaar
Problem: No test for collapsing buffers for a channel. Some text is lost. Solution: Add a simple test. Set rq_buflen correctly.
2016-06-04patch 7.4.1891v7.4.1891Bram Moolenaar
Problem: Channel reading very long lines is slow. Solution: Collapse multiple buffers until a NL is found.
2016-06-02patch 7.4.1878v7.4.1878Bram Moolenaar
Problem: Whether a job has exited isn't detected until a character is typed. After calling exit_cb the cursor is in the wrong place. Solution: Don't wait forever for a character to be typed when there is a pending job. Update the screen if neede after calling exit_cb.
2016-05-29patch 7.4.1859v7.4.1859Bram Moolenaar
Problem: Cannot use a function reference for "exit_cb". Solution: Use get_callback(). (Yegappan Lakshmanan)
2016-05-29patch 7.4.1858v7.4.1858Bram Moolenaar
Problem: When a channel writes to a buffer it doesn't find a buffer by the short name but re-uses it anyway. Solution: Find buffer also by the short name.
2016-05-29patch 7.4.1857v7.4.1857Bram Moolenaar
Problem: When a channel appends to a buffer that is 'nomodifiable' there is an error but appending is done anyway. Solution: Add the 'modifiable' option. Refuse to write to a 'nomodifiable' when the value is 1.
2016-05-28patch 7.4.1855v7.4.1855Bram Moolenaar
Problem: Valgrind reports memory leak for job that is not freed. Solution: Free all jobs on exit. Add test for failing job.
2016-05-28patch 7.4.1853v7.4.1853Bram Moolenaar
Problem: Crash when job and channel are in the same dict while using partials. (Luc Hermitte) Solution: Do not decrement the channel reference count too early.
2016-05-28patch 7.4.1850v7.4.1850Bram Moolenaar
Problem: GUI freezes when using a job. (Shougo) Solution: Unregister the channel when there is an input error.
2016-05-27patch 7.4.1849v7.4.1849Bram Moolenaar
Problem: Still trying to read from channel that is going to be closed. (Ramel Eshed) Solution: Check if ch_to_be_closed is set.
2016-05-25patch 7.4.1845v7.4.1845Bram Moolenaar
Problem: Mentioning NetBeans when reading from channel. (Ramel Eshed) Solution: Make the text more generic.
2016-05-09patch 7.4.1829v7.4.1829Bram Moolenaar
Problem: No message on channel log when buffer was freed. Solution: Log a message.