summaryrefslogtreecommitdiff
path: root/test/test_linting_updates_loclist.vader
AgeCommit message (Collapse)Author
2021-01-273560 add vim 8.2 and nvim 0.4 to ci tests (#3561)Horacio Sanson
* Add vim82 and neovim04 to CI tests. * Fix test_sign_column_hightlighting test. In vim82 with verbose=1 the output of highlight command changes breaking the ale#sign#SetUpDefaultColumnWithoutErrorsHighlight(). This commit forces verbose=0 when the method starts and restores the previous value before exiting. * No return values in vim82 returns a numeric value instead of a empty string. * Fix test_reek_handler test The FuzzyJSONDecode() method catches E474 when it fails to parse the input as JSON but Vim8.2 throws E491 instead. This commit modifies the function to catch both E474 or E491. * Fix perl6 handler test. Perl6 handler catches json parse errors using the E474 error but in Vim82 it changed to E491. This commit modifies the handler so both errors are considered. * Fix list opening tests. In Vim 8.2 the call `range(1, bufnr('$'))` always returns quickfix buffers no matter if they are closed or not. Using `ls` does not show them but the above range will always include them. This new behavior breaks the ale#list#IsQuickfixOpen() method that in turn breaks many other things. This commit fixes this by using the getqflist() and getloclist() methods instead. * Fix test updates loclist test. For some reason in Vim 8.2 the sign offset seems to not reset between tests causing the sign_id to not match in the Assert. When the test is run individually it passes but when run as part of the whole suite the sign_id is off by one. Forcing the offset in the test setup seems to fix the issue. * Fix omnifunc completion test. For unknown reasons the SetCompletionResponse tests fail in Neovim 0.2 and 0.4. Unfortunatelly the only solution I found is to disable them for neovim. * Fix linter warnings * Fix smoker test. Add vim 8.2 to the list of versions that need some retires due to randomly failing tests. * Add docker image build job. Trying some clever trick to build the docker image if not available locally or in Docker hub. It uses the Dockerfile md5 checksum as tag so only when changes on that file occur will the image be downloaded or build. * Add labels to Docker image * Remove tests for middle versions 8.1 and 0.3.5 * Use same vader commit as appveyor * Implement image push to Docker Hub Co-authored-by: Horacio Sanson <horacio@allm.inc>
2019-02-06#2132 - lint and fix with ale#command#Runw0rp
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.
2018-06-28Get tests running and passing with NeoVim 0.2 and 0.3w0rp
2017-09-11Fix some random test issues for Windowsw0rp
2017-08-26Fix #825 - Downgrade signs when problems changew0rp
2017-07-07#697 - Clear all highlights every time items are set again, and refactor ↵w0rp
most things. Clear errors when linters are removed
2017-05-31#604 Change match_id to match_id_list, for future highlights spanning more ↵w0rp
than 8 lines
2017-05-12Remove a dependency on eslint, ready for the new Docker imagew0rp
2017-03-12#333 Remember the IDs for highlightsw0rp
2017-03-12Revert "Don't save the sign ID on loclist items. This approach won't work."w0rp
This reverts commit f25a54326054d1403047523e0e1bdf75d5cfc9c9.
2017-03-12Don't save the sign ID on loclist items. This approach won't work.w0rp
2017-03-11#333 Save sign IDs back on loclist items, and make it possible to get line ↵w0rp
numbers again
2016-10-24Merge everything into the one global map.w0rp
2016-10-20#131 Keep the error types in the message for eslintw0rp
2016-10-17Add a function for waiting for linters to complete, and add a test which ↵w0rp
checks that linting updates the loclist.