package merlin-lib
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Merlin's libraries
Install
dune-project
Dependency
Authors
Maintainers
Sources
merlin-5.7.1-504.tbz
sha256=139b073cf914b38b725c54f75b8b642f654c3498d0a4ba8cfa831ff02a8970d5
sha512=9391d3a0aaa5065a02c6f5faaf7149f8f800c748d9be5ccff6af800ce73bdf418ead72dbeaf6ee7a6cbeae2c8e56285fbe422740ed407bcc4edab889dd1c8f9c
doc/merlin-lib.utils/Merlin_utils/Lib_config/System/index.html
Module Lib_config.SystemSource
Merlin spawns child processes for preprocessors (pp and ppx), which can be customized via System
Source
val set_run_in_directory :
(prog:string ->
prog_is_quoted:bool ->
args:string list ->
cwd:string ->
?stdin:string ->
?stdout:string ->
?stderr:string ->
unit ->
[ `Finished of int | `Cancelled ]) ->
unitset_run_in_directory sets an implementation for spawning external programs. This is used by Merlin to spawn preprocessors and ppxes. For compatibility reasons, there are currently some limitations to how this should be implemented:
- Implementation should expect
progto be already quoted and contain arguments. This is due to how ppx configuration is passed to Merlin. In order to prepare a future transition to more sane argument passing, the implementation can look at theprog_is_quotedargument to know if it is actually safe to quote the command normally (usingFilename.quote_commandfor example).
progmight contain shell expansions, command substitutions etc. It should therefore be ran under a shell for maximum compatibility. However this should never happen when the configuration is generated by Dune.
- Programs runned by this function should never output on stdout since it is the channel used by Merlin to communicate with the editor. One way to enforce that is to redirect stdout to stderr.
- As of today Merlin handles the
`Cancelledreturn case identically as other error codes.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>