Tomáš Janoušek
e10fcf22dc
Prevent buffering of job output and excessive polling ( #4259 )
...
When 'close_cb' is set for job_start(), but out_cb or err_cb isn't, vim
buffers data instead of dropping it (in case someone wanted to read and
process it in close_cb), and additionally polls for new data every 10
milliseconds, causing excessive wakeups and CPU usage. Since we don't
read the data anywhere outside of out_cb/err_cb, any LSP that prints an
error to stderr triggers this and vim keeps spinning until :ALEStopAllLSPs.
Fix this by always setting both callbacks, thus dropping any data we're
not interested in.
See https://github.com/vim/vim/issues/10758 for an upstream report of
the excessive polling. It's possible this is intentional, I dunno.
Fixes: b42153eb17
("Fix #4098 - Clear LSP data when servers crash")
2022-07-26 17:56:12 +09:00
James Cherti
6c1f616c59
Add the buffer-local options 'b:ale_shell' and 'b:ale_shell_arguments'. ( #4146 )
2022-04-06 14:32:11 +09:00
w0rp
0d10653a7c
Fix #2295 - Respond to initialize with an initialized message
2019-02-15 08:54:53 +00:00
w0rp
422908a572
#2009 - Force Windows jobs to run in a CMD shell
2019-02-08 21:33:16 +00:00
w0rp
81c73da3b9
#2132 - lint and fix with ale#command#Run
...
A new function is added here which will later be modified for public use
in linter and fixer callbacks. All linting and fixing now goes through
this new function, to prove that it works in all cases.
2019-02-06 22:00:11 +00:00
w0rp
08606b88d0
Clean up the new g:ale_shell code. Use it for Windows
2019-01-03 21:23:09 +00:00
Holden
5f613a5fd6
change ale to use value of g:ale_shell regardless of what it is
2019-01-02 19:05:51 -05:00
Holden
3ec20a730d
address PR feedback by fixing docs and hardcoding bash to use -c on fish and pwsh environments
2018-12-28 12:35:57 -05:00
Holden
cbc029b2b8
Add initial support for settings to overwrite ale shell
2018-12-07 18:04:28 -05:00
w0rp
580bd36773
Fix #1800 - Enable non-blocking writes where available
2018-09-06 20:04:35 +01:00
w0rp
d476578a40
Improve ALE project style checking
...
* The project style linter now runs while you type.
* Now the scripts for checking the project require blank lines.
* Many style issues have been found and fixed.
2018-09-04 16:51:18 +01:00
w0rp
01c68fedd6
#830 Implement a socket wrapper API for use with LSP connections
2018-07-02 23:49:47 +01:00
w0rp
f2837b5802
#1524 - Define global variables where they are needed
2018-05-28 19:19:20 +01:00
w0rp
a0aa9aa9b7
Fix #1495 - Fall back to /bin/sh when shell=pwsh
2018-04-12 21:01:35 +01:00
w0rp
9d00695249
#1486 - Default exit_code to 1, if it isn't set.
2018-04-10 09:57:21 +01:00
w0rp
045c92ed65
Fix #1298 - Escape commands for PowerShell
2018-01-17 18:08:17 +00:00
w0rp
c165c7c5d1
Fix #1251 - Handle an empty list in the line callback when NeoVim crashes
2017-12-26 18:15:59 +00:00
w0rp
e43e7065da
Fix #1115 - Add support for wrapping all commands with an option
2017-12-20 12:20:38 +00:00
w0rp
8e71f82f8f
#1006 Fix raw message handling for LSP support in NeoVim
2017-11-06 22:46:32 +00:00
w0rp
d851f399c0
Fix #1058 - Ignore all errors with bad calls to jobstop() in NeoVim
2017-11-04 10:54:28 +00:00
rhysd
753592ca66
Fix typos
2017-10-03 01:11:54 +09:00
w0rp
73ec83d055
Handle jobstart() returning -1 in the NeoVim 0.2.0, just in case
2017-08-28 15:25:18 +01:00
w0rp
d5ae3201a4
Ban !=# and !=? from the codebase
2017-08-11 00:31:42 +01:00
w0rp
a535d07f28
Ban use of ==# or ==? in the codebase, and prefer is# or is? instead
2017-08-08 08:39:13 +01:00
w0rp
810e884dbe
Remove channel logging
2017-07-26 10:45:21 +01:00
w0rp
cd860e3e8d
#517 Add more code LSP support which makes the tssserver linter behave more like the LSP linters
2017-07-26 10:37:37 +01:00
w0rp
751d965265
Fix #749 - Use /bin/sh when the shell is fish
2017-07-10 21:35:35 +01:00
w0rp
e455d8219e
Fix #649 - Support tsserver linting for NeoVim
2017-06-14 17:08:39 +01:00
w0rp
3c5156d4a4
Simplify job cleanup code
2017-06-06 16:44:01 +01:00
w0rp
dcbab18a35
Stop errors being generated when jobs are removed from the Dictionary before callbacks fire
2017-06-05 13:30:40 +01:00
w0rp
8e997ac231
Fix #584 - Fix Neovim line handling issues
2017-05-27 19:23:13 +01:00
w0rp
d511b02ebe
Make the job handling code handle the scripts being reloaded better
2017-05-21 16:16:06 +01:00
w0rp
0f0d1709c5
#567 Try and fix NeoVim split line handling
2017-05-20 12:50:19 +01:00
w0rp
1b53fa841b
Fix some problems with LSP functions
2017-05-16 19:38:05 +01:00
w0rp
d4466d4be7
Add some functions for sending LSP commands to a process, and automatically starting that process
2017-05-13 00:12:12 +01:00
w0rp
204e3ca36b
Automatically remove jobs from the internal map after they are done
2017-05-12 23:56:58 +01:00
w0rp
5a947933d7
Refactor jobs into a Vim version agnostic API which can be used for other purposes
2017-05-12 21:16:15 +01:00