Bram Moolenaar
ebf7dfa6f1
patch 7.4.1727
...
Problem: Cannot detect a crash in tests when caused by garbagecollect().
Solution: Add garbagecollect_for_testing(). Do not free a job if is still
useful.
2016-04-14 12:46:51 +02:00
Bram Moolenaar
107e1eef1d
patch 7.4.1719
...
Problem: Leaking memory when there is a cycle involving a job and a
partial.
Solution: Add a copyID to job and channel. Set references in items referred
by them. Go through all jobs and channels to find unreferenced
items. Also, decrement reference counts when garbage collecting.
2016-04-08 17:07:19 +02:00
Bram Moolenaar
0e4c1de556
patch 7.4.1717
...
Problem: Leaking memory when opening a channel fails.
Solution: Unreference partials in job options.
2016-04-07 21:40:38 +02:00
Bram Moolenaar
bdf0bda968
patch 7.4.1687
...
Problem: The channel close_cb option does not work.
Solution: Use jo_close_partial instead of jo_err_partial. (Damien)
2016-03-30 21:06:57 +02:00
Bram Moolenaar
925ccfde79
patch 7.4.1680
...
Problem: Coverity warns for not checking name length (false positive).
Solution: Only copy the characters we know are there.
2016-03-28 22:38:02 +02:00
Bram Moolenaar
8b877ac38e
patch 7.4.1669
...
Problem: When writing buffer lines to a pipe Vim may block.
Solution: Avoid blocking, write more lines later.
2016-03-28 19:16:20 +02:00
Bram Moolenaar
ee1f7b3cb7
patch 7.4.1668
...
Problem: channel_get_all() does multiple allocations.
Solution: Compute the size and allocate once.
2016-03-28 14:42:14 +02:00
Bram Moolenaar
84e1d2b21a
patch 7.4.1667
...
Problem: Win32: waiting on a pipe with fixed sleep time.
Solution: Start with a short delay and increase it when looping.
2016-03-28 14:20:41 +02:00
Bram Moolenaar
46c00a6565
patch 7.4.1666
...
Problem: When reading JSON from a channel all readahead is used.
Solution: Use the fill function to reduce overhead.
2016-03-28 14:11:42 +02:00
Bram Moolenaar
8038568722
patch 7.4.1665
...
Problem: Crash when calling job_start() with a NULL string. (Dominique)
Solution: Check for an invalid argument.
2016-03-27 19:13:35 +02:00
Bram Moolenaar
c4dcd60c76
patch 7.4.1662
...
Problem: No test for an invalid Ex command on a channel.
Solution: Test handling an invalid command gracefully. Avoid getting an
error message, do write it to the channel log.
2016-03-26 22:56:46 +01:00
Bram Moolenaar
573e445664
patch 7.4.1631
...
Problem: Compiler doesn't understand switch on all enum values. (Tony
Mechelynck)
Solution: Initialize variable.
2016-03-21 22:35:10 +01:00
Bram Moolenaar
3f3fbd3fdb
patch 7.4.1628
...
Problem: 64-bit Compiler warning.
Solution: Change type of variable. (Mike Williams)
2016-03-21 12:36:28 +01:00
Bram Moolenaar
03602ec28e
patch 7.4.1624
...
Problem: Can't get info about a channel.
Solution: Add ch_info().
2016-03-20 20:57:45 +01:00
Bram Moolenaar
e9d6a298df
patch 7.4.1623
...
Problem: All Channels share the message ID, it keeps getting bigger.
Solution: Use a message ID per channel.
2016-03-20 19:31:33 +01:00
Bram Moolenaar
a4f6ca717b
patch 7.4.1618
...
Problem: Starting job with output to buffer changes options in the current
buffer.
Solution: Set "curbuf" earlier. (Yasuhiro Matsumoto)
2016-03-20 17:28:35 +01:00
Bram Moolenaar
ba61ac0d61
patch 7.4.1617
...
Problem: When a JSON message is split it isn't decoded.
Solution: Wait a short time for the rest of the message to arrive.
2016-03-20 16:40:37 +01:00
Bram Moolenaar
ac74d5e86c
patch 7.4.1616
...
Problem: Malformed channel request causes a hang.
Solution: Drop malformed message. (Damien)
2016-03-20 14:31:00 +01:00
Bram Moolenaar
a889cf4642
patch 7.4.1593
...
Problem: Using channel timeout instead of request timeout. (Coverity)
Solution: Remove the extra assignment.
2016-03-19 13:49:43 +01:00
Bram Moolenaar
a3dc5e92dc
patch 7.4.1579
...
Problem: Missing changes in channel.c
Solution: Include the changes.
2016-03-15 23:19:14 +01:00
Bram Moolenaar
d6c2f05260
patch 7.4.1560
...
Problem: Dict options with a dash are more difficult to use.
Solution: Use an underscore, so that dict.err_io can be used.
2016-03-14 23:22:59 +01:00
Bram Moolenaar
1735bc988c
patch 7.4.1559
...
Problem: Passing cookie to a callback is clumsy.
Solution: Change function() to take arguments and return a partial.
2016-03-14 23:05:14 +01:00
Bram Moolenaar
583c1f14a4
patch 7.4.1544
...
Problem: On Win32 escaping the command does not work properly.
Solution: Reset 'ssl' when escaping the command. (Yasuhiro Matsumoto)
2016-03-12 15:58:34 +01:00
Bram Moolenaar
8950a563b3
patch 7.4.1541
...
Problem: Missing job_info().
Solution: Implement it.
2016-03-12 15:22:55 +01:00
Bram Moolenaar
8e2c942ce4
patch 7.4.1539
...
Problem: Too much code in eval.c.
Solution: Move job and channel code to channel.c.
2016-03-12 13:43:33 +01:00
Bram Moolenaar
509ce2a558
patch 7.4.1537
...
Problem: Too many feature flags for pipes, jobs and channels.
Solution: Only use FEAT_JOB_CHANNEL.
2016-03-11 22:52:15 +01:00
Bram Moolenaar
de27989157
patch 7.4.1536
...
Problem: Cannot re-use a channel for another job.
Solution: Add the "channel" option to job_start().
2016-03-11 22:19:44 +01:00
Bram Moolenaar
40e8cb292c
patch 7.4.1531
...
Problem: Compiler warning for unitinialized variable. (Dominique Pelle)
Solution: Always give the variable a value.
2016-03-10 21:10:58 +01:00
Bram Moolenaar
29fd03878c
patch 7.4.1529
...
Problem: Specifying buffer number for channel not implemented yet.
Solution: Implement passing a buffer number.
2016-03-09 23:14:07 +01:00
Bram Moolenaar
562ca71428
patch 7.4.1527
...
Problem: Channel test is flaky on MS-Windows.
Solution: Limit the select() timeout to 50 msec and try with a new socket if
it fails.
2016-03-09 21:50:05 +01:00
Bram Moolenaar
045a284a83
patch 7.4.1524
...
Problem: Channel test fails on BSD.
Solution: Break out of the loop when connect() succeeds. (Ozaki Kiichi)
2016-03-08 22:33:07 +01:00
Bram Moolenaar
6ff02c9651
patch 7.4.1522
...
Problem: Cannot write channel err to a buffer.
Solution: Implement it.
2016-03-08 20:12:44 +01:00
Bram Moolenaar
367aabdbf7
patch 7.4.1517
...
Problem: Compiler warning with 64bit compiler.
Solution: Add typecast. (Mike Williams)
2016-03-08 17:13:06 +01:00
Bram Moolenaar
d0b6502a7a
patch 7.4.1505
...
Problem: When channel log is enabled get too many "looking for messages"
log entries.
Solution: Only give the message after another message.
2016-03-06 21:50:33 +01:00
Bram Moolenaar
99ef06296f
patch 7.4.1502
...
Problem: Writing last-but-one line of buffer to a channel isn't implemented
yet.
Solution: Implement it. Fix leaving a swap file behind.
2016-03-06 20:22:25 +01:00
Bram Moolenaar
a96909cfaf
patch 7.4.1496
...
Problem: Crash when built with GUI but it's not active. (Dominique Pelle)
Solution: Check gui.in_use.
2016-03-05 22:19:41 +01:00
Bram Moolenaar
5983ad0b03
patch 7.4.1493
...
Problem: Wrong callback invoked for zero-id messages.
Solution: Don't use the first one-time callback when the sequence number
doesn't match.
2016-03-05 20:54:36 +01:00
Bram Moolenaar
014069a7ac
patch 7.4.1485
...
Problem: Job input from buffer is not implemented.
Solution: Implement it. Add "in-top" and "in-bot" options.
2016-03-03 22:51:40 +01:00
Bram Moolenaar
d6547fc647
patch 7.4.1483
...
Problem: A one-time callback is not used for a raw channel.
Solution: Use a one-time callback when it exists.
2016-03-03 19:35:02 +01:00
Bram Moolenaar
bf73b91c66
patch 7.4.1471
...
Problem: Missing out-of-memory check. And Coverity warning.
Solution: Bail out when msg is NULL.
2016-03-02 21:16:59 +01:00
Bram Moolenaar
289a90551d
patch 7.4.1470
...
Problem: Coverity reports missing restore.
Solution: Move json_encode() call up.
2016-03-02 21:09:32 +01:00
Bram Moolenaar
42bc6dde46
patch 7.4.1469
...
Problem: Channel test sometimes fails, especially on OS/X. (Kazunobu
Kuriyama)
Solution: Change the && into ||, call getsockopt() in more situations.
(Ozaki Kiichi)
2016-03-02 20:48:47 +01:00
Bram Moolenaar
6b584af3d7
patch 7.4.1466
...
Problem: Coverity reports dead code.
Solution: Remove the two lines.
2016-02-29 23:03:23 +01:00
Bram Moolenaar
cc7f8be3e0
patch 7.4.1465
...
Problem: Coverity reported possible use of NULL pointer when using buffer
output with JSON mode.
Solution: Make it actually possible to use JSON mode with a buffer.
Re-encode the JSON to append it to the buffer.
2016-02-29 22:55:56 +01:00
Bram Moolenaar
e081e21f76
patch 7.4.1459
...
Problem: MS-Windows doesn't know socklen_t.
Solution: Use previous method for WIN32.
2016-02-28 22:33:46 +01:00
Bram Moolenaar
fdd6ce4a2f
patch 7.4.1458
...
Problem: When a JSON channel has a callback it may never be cleared.
Solution: Do not write "DETACH" into a JS or JSON channel.
2016-02-28 22:21:38 +01:00
Bram Moolenaar
d42119fff2
patch 7.4.1457
...
Problem: Opening a channel with select() is not done properly.
Solution: Also used read-fds. Use getsockopt() to check for errors. (Ozaki
Kiichi)
2016-02-28 20:51:49 +01:00
Bram Moolenaar
18b5d6df10
patch 7.4.1452
...
Problem: When a callback adds a syntax item either the redraw doesn't
happen right away or in the GUI the cursor is in the wrong
position for a moment. (Jakson Alves de Aquino)
Solution: Redraw after the callback was invoked.
2016-02-28 19:30:24 +01:00
Bram Moolenaar
707659490d
patch 7.4.1451
...
Problem: Vim hangs when a channel has a callback but isn't referenced.
Solution: Have channel_unref() only return TRUE when the channel was
actually freed.
2016-02-28 19:28:59 +01:00
Bram Moolenaar
d6051b5eb8
patch 7.4.1447
...
Problem: Memory leak when using ch_read(). (Dominique Pelle)
No log message when stopping a job and a few other situations.
Too many "Nothing to read" messages. Channels are not freed.
Solution: Free the listtv. Add more log messages. Remove "Nothing to read"
message. Remove the channel from the job when its refcount
becomes zero.
2016-02-28 15:49:03 +01:00