vim/runtime/autoload
Aliaksei Budavei 368ef5a48c
patch 9.1.0935: SpotBugs compiler can be improved
Problem:  SpotBugs compiler can be improved
Solution: runtime(compiler): Improve defaults and error handling for
          SpotBugs; update test_compiler.vim (Aliaksei Budavei)

runtime(compiler): Improve defaults and error handling for SpotBugs

* Keep "spotbugs#DefaultPreCompilerTestAction()" defined but
  do not assign its Funcref to the "PreCompilerTestAction"
  key of "g:spotbugs_properties": there are no default and
  there can only be introduced arbitrary "*sourceDirPath"
  entries; therefore, this assignment is confusing at best,
  given that the function's implementation delegates to
  whatever "PreCompilerAction" is.

* Allow for the possibility of relative source pathnames
  passed as arguments to Vim for the Javac default actions,
  and the necessity to have them properly reconciled when
  the current working directory is changed.

* Do not expect users to remember or know that new source
  files ‘must be’ ":argadd"'d to be then known to the Javac
  default actions; so collect the names of Java-file buffers
  and Java-file Vim arguments; and let users providing the
  "@sources" file-lists in the "g:javac_makeprg_params"
  variable update these file-lists themselves.

* Strive to not leave behind a fire-once Syntax ":autocmd"
  for a Java buffer whenever an arbitrary pre-compile action
  errors out.

* Only attempt to run a post-compiler action in the absence
  of failures for a pre-compiler action.  Note that warnings
  and failures are treated alike (?!) by the Javac compiler,
  so when previews are tried out with "--enable-preview",
  remember about passing "-Xlint:-preview" too to also let
  SpotBugs have a go.

* Properly group conditional operators when testing for key
  entries in a user-defined variable.

* Also test whether "javaExternal" is defined when choosing
  an implementation for source-file parsing.

* Two commands are provided to toggle actions for buffer-local
  autocommands:
  - SpotBugsRemoveBufferAutocmd;
  - SpotBugsDefineBufferAutocmd.

For example, try this from "~/.vim/after/ftplugin/java.vim":
------------------------------------------------------------
if exists(':SpotBugsDefineBufferAutocmd') == 2
	SpotBugsDefineBufferAutocmd BufWritePost SigUSR1
endif
------------------------------------------------------------

And ":doautocmd java_spotbugs User" can be manually used at will.

closes: #16140

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-12-16 21:38:47 +01:00
..
cargo runtime(rust): sync rust runtime files with upstream (#13075) 2023-09-12 20:23:38 +02:00
dist patch 9.1.0876: filetype: openCL files are not recognized 2024-11-19 21:03:09 +01:00
rust runtime(rust): sync rust runtime files with upstream (#13075) 2023-09-12 20:23:38 +02:00
xml
ada.vim
adacomplete.vim
bitbake.vim Update runtime files 2022-07-25 15:42:07 +01:00
cargo.vim runtime(rust): sync rust runtime files with upstream (#13075) 2023-09-12 20:23:38 +02:00
ccomplete.vim runtime(ccomplete): fix type mismatch error 2024-06-06 18:39:03 +02:00
clojurecomplete.vim Update runtime files 2022-03-30 10:51:39 +01:00
context.vim runtime(context): update ConTeXt keywords and other minor fixes (#13778) 2023-12-27 18:49:50 +01:00
contextcomplete.vim
csscomplete.vim
decada.vim
freebasic.vim Update runtime files 2022-07-01 18:45:04 +01:00
getscript.vim patch 9.1.0859: several problems with the GLVS plugin 2024-11-12 20:23:41 +01:00
gnat.vim
gzip.vim runtime(gzip): load undofile if there exists one 2024-11-26 15:10:33 +01:00
hare.vim patch 9.1.0442: hare runtime files outdated 2024-05-24 08:05:00 +02:00
haskellcomplete.vim
hcl.vim runtime(hcl,terraform): Add runtime files for HCL and Terraform 2024-09-04 22:19:45 +02:00
htmlcomplete.vim
javaformat.vim runtime(java): Recognise the CommonMark form (///) of Javadoc comments 2024-09-30 19:40:04 +02:00
javascriptcomplete.vim Runtime(javascript): add new document properties to completion file 2023-08-20 21:41:01 +02:00
modula2.vim patch 9.1.0013: Modula2 filetype support lacking 2024-01-05 17:59:04 +01:00
netrw.vim runtime(netrw): do not pollute search history with symlinks 2024-12-12 19:13:08 +01:00
netrw_gitignore.vim
netrwSettings.vim runtime(netrw): Remove and cleanup Win9x legacy from netrw 2024-05-08 19:19:34 +02:00
paste.vim Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749) 2023-08-13 10:33:05 +02:00
phpcomplete.vim runtime: Fix more typos (#13354) 2023-10-16 09:53:37 +02:00
python.vim Update runtime files 2023-02-27 15:49:53 +00:00
python3complete.vim Update runtime files 2022-03-30 10:51:39 +01:00
pythoncomplete.vim
racket.vim runtime(racket): update Racket runtime files 2024-11-13 19:45:38 +01:00
README.txt
RstFold.vim
rubycomplete.vim runtime(ruby): Update ftplugin and omni-complete (#13805) 2024-01-01 18:58:57 +01:00
rust.vim runtime(rust): sync rust runtime files with upstream (#13075) 2023-09-12 20:23:38 +02:00
rustfmt.vim runtime: Fix more typos (#13354) 2023-10-16 09:53:37 +02:00
spellfile.vim Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749) 2023-08-13 10:33:05 +02:00
spotbugs.vim patch 9.1.0935: SpotBugs compiler can be improved 2024-12-16 21:38:47 +01:00
sqlcomplete.vim
syntaxcomplete.vim
tar.vim runtime(tar): Update tar.vim to support permissions 2024-11-11 22:39:30 +01:00
tohtml.vim runtime(tohtml): Update TOhtml to version 9.0v2 (#13050) 2023-09-08 19:20:01 +02:00
tutor.vim patch 9.1.0836: The vimtutor can be improved 2024-11-03 11:01:10 +01:00
typeset.vim runtime: Fix more typos (#13354) 2023-10-16 09:53:37 +02:00
typst.vim runtime(typst): add definition lists to formatlistpat, update maintainer 2024-12-09 20:31:04 +01:00
vimball.vim runtime(misc): announce adoption of various runtime files 2024-02-19 20:46:49 +01:00
xmlcomplete.vim
xmlformat.vim
zip.vim runtime(zip): simplify condition to detect MS-Windows 2024-08-21 08:20:13 +02:00

The autoload directory is for standard Vim autoload scripts.

These are functions used by plugins and for general use.  They will be loaded
automatically when the function is invoked.  See ":help autoload".

gzip.vim	for editing compressed files
netrw*.vim	browsing (remote) directories and editing remote files
tar.vim		browsing tar files
zip.vim		browsing zip files
paste.vim	common code for mswin.vim, menu.vim and macmap.vim
spellfile.vim	downloading of a missing spell file

Omni completion files:
ccomplete.vim		C
csscomplete.vim		HTML / CSS
htmlcomplete.vim	HTML
javascriptcomplete.vim  Javascript
phpcomplete.vim		PHP
pythoncomplete.vim	Python
rubycomplete.vim	Ruby
syntaxcomplete.vim	from syntax highlighting
xmlcomplete.vim		XML (uses files in the xml directory)