git: c06ff83c52 - main - [doc-es][articles/freebsd-src-lsp]: sync with master
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 19 Jul 2023 08:34:46 UTC
The branch main has been updated by fernape: URL: https://cgit.FreeBSD.org/doc/commit/?id=c06ff83c523eff1ddb631328f6d22d1d875db8a6 commit c06ff83c523eff1ddb631328f6d22d1d875db8a6 Author: Fernando Apesteguía <fernape@FreeBSD.org> AuthorDate: 2023-07-18 14:01:16 +0000 Commit: Fernando Apesteguía <fernape@FreeBSD.org> CommitDate: 2023-07-19 08:34:39 +0000 [doc-es][articles/freebsd-src-lsp]: sync with master --- .../es/articles/freebsd-src-lsp/_index.adoc | 28 ++- .../content/es/articles/freebsd-src-lsp/_index.po | 244 +++++++++++++-------- 2 files changed, 174 insertions(+), 98 deletions(-) diff --git a/documentation/content/es/articles/freebsd-src-lsp/_index.adoc b/documentation/content/es/articles/freebsd-src-lsp/_index.adoc index 472e48585f..2431208de6 100644 --- a/documentation/content/es/articles/freebsd-src-lsp/_index.adoc +++ b/documentation/content/es/articles/freebsd-src-lsp/_index.adoc @@ -46,12 +46,30 @@ toc::[] [[intro]] == Introducción -Esta guía es acerca de cómo configurar un árbol src de FreeBSD con servidores de lenguajes para realizar indexado de código fuente. +Esta guía trata sobre cómo configurar el árbol de src de FreeBSD con servidores de lenguajes para realizar la indexación del código fuente. Esta guía describe los pasos para Vim/NeoVim y VSCode. Si usas un editor de texto diferente puedes usar esta guía como referencia y buscar los comandos equivalentes para tu editor. -[[ports-required]] -== Ports Requeridos +[[requirements]] +== Requisitos -Se necesitan algunos ports a lo largo de esta guía. Escoge tu combinación favorita de herramientas de cada una de las categorías siguientes: +Para seguir esta guía se necesita tener instalados ciertos requisitos. Necesitamos un servidor de lenguajes, `ccls` o `clangd`, y opcionalmente una base de datos de compilación. + +La instalación del servidor de Lenguajes se puede realizar con `pkg` o con ports. Si escogemos `clangd` tenemos que instalar `llvm`. + +Usando `pkg` para instalar `ccls`: + +[source, shell] +.... +# pkg install ccls +.... + +Si queremos usar `clangd` necesitamos instalar `llvm` (El comando de ejemplo usa `llvm15` pero escoge la versión que quieras): + +[source, shell] +.... +# pkg install llvm15 +.... + +Para instalar mediante ports escoge tu combinación favorita de herramientas de la lista que aparece abajo: * Implementaciones de servidores de lenguajes ** package:devel/ccls[] @@ -118,6 +136,8 @@ au User lsp_setup call lsp#register_server({ \ }) .... +Dependiendo de la versión de `clangd` que hayas instalado podrías necesitar actualizar la `server-info` para apuntar al binario adecuado. + Por favor, dirígete a link:https://github.com/prabirshrestha/vim-lsp/blob/master/README.md#registering-servers[] para aprender cómo configurar los atajos de teclado y el auto completado de código. El sitio oficial de clangd es link:https://clangd.llvm.org[], y el enlace al repositorio de ccls es link:https://github.com/MaskRay/ccls/[]. Abajo se muestra la configuración de referencia para los atajos de teclado y el auto completado de código. Pon el siguiente fragmento en [.filepath]#~/.config/nvim/init.vim#, o [.filepath]#~/.vim/vimrc# para usarlo con Vim: diff --git a/documentation/content/es/articles/freebsd-src-lsp/_index.po b/documentation/content/es/articles/freebsd-src-lsp/_index.po index eef290adb2..89b47673c8 100644 --- a/documentation/content/es/articles/freebsd-src-lsp/_index.po +++ b/documentation/content/es/articles/freebsd-src-lsp/_index.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: FreeBSD Documentation VERSION\n" -"POT-Creation-Date: 2022-07-07 23:23-0300\n" -"PO-Revision-Date: 2022-08-04 05:48+0000\n" +"POT-Creation-Date: 2023-04-20 20:56-0300\n" +"PO-Revision-Date: 2023-07-18 13:46+0000\n" "Last-Translator: Fernando Apesteguía <fernando.apesteguia@gmail.com>\n" "Language-Team: Spanish <https://translate-dev.freebsd.org/projects/" "documentation/articlesfreebsd-src-lsp_index/es/>\n" @@ -16,24 +16,20 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: Weblate 4.10.1\n" +"X-Generator: Weblate 4.17\n" #. type: YAML Front Matter: description #: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:1 #, no-wrap msgid "Use Language Servers for development in the FreeBSD src tree to get precise go-to-definition and completion results." -msgstr "" -"Uso de Servidores de Lenguajes para desarrollo en el árbol de src de FreeBSD " -"para obtener resultados precisos para saltar a definiciones o auto " -"completado." +msgstr "Uso de Servidores de Lenguajes para desarrollo en el árbol de src de FreeBSD para obtener resultados precisos para saltar a definiciones o auto completado." #. type: Title = #: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:1 #: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:13 #, no-wrap msgid "Use Language Servers for Development in the FreeBSD Src Tree" -msgstr "" -"Uso de Servidores de Lenguajes para Desarrollo en el Árbol Src de FreeBSD" +msgstr "Uso de Servidores de Lenguajes para Desarrollo en el Árbol Src de FreeBSD" #. type: Title == #: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:47 @@ -45,38 +41,89 @@ msgstr "Introducción" #: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:50 msgid "" "This guide is about setting up a FreeBSD src tree with language servers " -"performing source code indexing." +"performing source code indexing. The guide describes the steps for Vim/" +"NeoVim and VSCode. If you use a different text editor you can use this guide " +"as a reference and search the equivalent commands for your preferred editor." msgstr "" -"Esta guía es acerca de cómo configurar un árbol src de FreeBSD con " -"servidores de lenguajes para realizar indexado de código fuente." +"Esta guía trata sobre cómo configurar el árbol de src de FreeBSD con " +"servidores de lenguajes para realizar la indexación del código fuente. Esta " +"guía describe los pasos para Vim/NeoVim y VSCode. Si usas un editor de texto " +"diferente puedes usar esta guía como referencia y buscar los comandos " +"equivalentes para tu editor." #. type: Title == #: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:52 #, no-wrap -msgid "Required Ports" -msgstr "Ports Requeridos" +msgid "Requirements" +msgstr "Requisitos" #. type: Plain text -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:56 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:55 msgid "" -"Some ports are required throughout the guide. Choose a favorite combination " -"of tools from each category below:" +"In order to follow this guide we need to install certain requirements. We " +"need a Language server, `ccls` or `clangd`, and optionally a compilation " +"database." msgstr "" -"Se necesitan algunos ports a lo largo de esta guía. Escoge tu combinación " -"favorita de herramientas de cada una de las categorías siguientes:" +"Para seguir esta guía se necesita tener instalados ciertos requisitos. " +"Necesitamos un servidor de lenguajes, `ccls` o `clangd`, y opcionalmente una " +"base de datos de compilación." #. type: Plain text -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:58 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:57 +msgid "" +"The installation of the Language server can be performed via `pkg` or via " +"ports. If we chose `clangd` we need to install `llvm`." +msgstr "" +"La instalación del servidor de Lenguajes se puede realizar con `pkg` o con " +"ports. Si escogemos `clangd` tenemos que instalar `llvm`." + +#. type: Plain text +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:59 +msgid "Using `pkg` to install `ccls`:" +msgstr "Usando `pkg` para instalar `ccls`:" + +#. type: delimited block . 4 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:63 +#, no-wrap +msgid "# pkg install ccls\n" +msgstr "# pkg install ccls\n" + +#. type: Plain text +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:66 +msgid "" +"If we want to use `clangd` we need to install `llvm` (The example command " +"uses `llvm15` but choose the version you desire):" +msgstr "" +"Si queremos usar `clangd` necesitamos instalar `llvm` (El comando de ejemplo " +"usa `llvm15` pero escoge la versión que quieras):" + +#. type: delimited block . 4 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:70 +#, no-wrap +msgid "# pkg install llvm15\n" +msgstr "# pkg install llvm15\n" + +#. type: Plain text +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:73 +msgid "" +"To install via ports choose a favorite combination of tools from each " +"category below:" +msgstr "" +"Para instalar mediante ports escoge tu combinación favorita de herramientas " +"de la lista que aparece abajo:" + +#. type: Plain text +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:75 msgid "Language server implementations" msgstr "Implementaciones de servidores de lenguajes" #. type: Plain text -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:59 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:76 msgid "package:devel/ccls[]" msgstr "package:devel/ccls[]" #. type: Plain text -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:60 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:77 msgid "" "package:devel/llvm12[] (Other versions are okay, but newer is better. " "Replace `clangd12` with clangdN in case other versions are used.)" @@ -85,68 +132,68 @@ msgstr "" "mejor. Reemplaza `clangd12` con clangdN en caso de usar otra versión.)" #. type: Plain text -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:61 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:78 msgid "Editors" msgstr "Editores" #. type: Plain text -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:62 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:79 msgid "package:editors/vim[]" msgstr "package:editors/vim[]" #. type: Plain text -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:63 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:80 msgid "package:editors/neovim[]" msgstr "package:editors/neovim[]" #. type: Plain text -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:64 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:81 msgid "package:editors/vscode[]" msgstr "package:editors/vscode[]" #. type: Plain text -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:65 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:82 msgid "Compilation database generator" msgstr "Generador de base de datos de compilación" #. type: Plain text -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:66 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:83 msgid "package:devel/python[] (For llvm's scan-build-py implementation)" msgstr "" "package:devel/python[] (Para la implementación de scan-build-py de llvm)" #. type: Plain text -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:67 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:84 msgid "package:devel/py-pip[] (For rizsotto's scan-build implementation)" msgstr "" "package:devel/py-pip[] (Para la implementación de scan-build de rizsotto)" #. type: Plain text -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:68 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:85 msgid "package:devel/bear[]" msgstr "package:devel/bear[]" #. type: Title == -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:70 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:87 #, no-wrap msgid "Editor settings" msgstr "Configuración del editor" #. type: Title === -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:73 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:90 #, no-wrap msgid "Vim/Neovim" msgstr "Vim/Neovim" #. type: Title ==== -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:75 -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:159 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:92 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:178 #, no-wrap msgid "LSP client plugins" msgstr "Plugins de LSP para el cliente" #. type: Plain text -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:79 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:96 msgid "" "The built-in plugin manager is used for both editors in this example. The " "LSP client plugin used is link:https://github.com/prabirshrestha/vim-" @@ -157,39 +204,37 @@ msgstr "" "lsp[prabirshrestha/vim-lsp]." #. type: Plain text -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:81 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:98 msgid "To set up the LSP client plugin for Neovim:" msgstr "Para configurar el plugin cliente de LSP en Neovim:" #. type: delimited block . 4 -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:86 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:103 #, no-wrap msgid "" "# mkdir -p ~/.config/nvim/pack/lsp/start\n" "# git clone https://github.com/prabirshrestha/vim-lsp ~/.config/nvim/pack/lsp/start/vim-lsp\n" msgstr "" "# mkdir -p ~/.config/nvim/pack/lsp/start\n" -"# git clone https://github.com/prabirshrestha/vim-lsp ~/.config/nvim/pack/" -"lsp/start/vim-lsp\n" +"# git clone https://github.com/prabirshrestha/vim-lsp ~/.config/nvim/pack/lsp/start/vim-lsp\n" #. type: Plain text -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:89 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:106 msgid "and for Vim:" msgstr "y para Vim:" #. type: delimited block . 4 -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:94 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:111 #, no-wrap msgid "" "# mkdir -p ~/.vim/pack/lsp/start\n" "# git clone https://github.com/prabirshrestha/vim-lsp ~/.vim/pack/lsp/start/vim-lsp\n" msgstr "" "# mkdir -p ~/.vim/pack/lsp/start\n" -"# git clone https://github.com/prabirshrestha/vim-lsp ~/.vim/pack/lsp/start/" -"vim-lsp\n" +"# git clone https://github.com/prabirshrestha/vim-lsp ~/.vim/pack/lsp/start/vim-lsp\n" #. type: Plain text -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:97 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:114 msgid "" "To enable the LSP client plugin in the editor, add the following snippet " "into [.filepath]#~/.config/nvim/init.vim# when using Neovim, or [." @@ -200,14 +245,14 @@ msgstr "" "filepath]#~/.vim/vimrc# cuando uses Vim:" #. type: Block title -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:98 -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:184 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:115 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:203 #, no-wrap msgid "For ccls" msgstr "Para ccls" #. type: delimited block . 4 -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:110 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:127 #, no-wrap msgid "" "au User lsp_setup call lsp#register_server({\n" @@ -231,19 +276,19 @@ msgstr "" " \\ }})\n" #. type: Block title -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:112 -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:169 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:129 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:188 #, no-wrap msgid "For clangd" msgstr "Para clangd" #. type: delimited block . 4 -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:121 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:138 #, no-wrap msgid "" "au User lsp_setup call lsp#register_server({\n" " \\ 'name': 'clangd',\n" -" \\ 'cmd': {server_info->['clangd12', '--background-index', '--header-insertion=never']},\n" +" \\ 'cmd': {server_info->['clangd15', '--background-index', '--header-insertion=never']},\n" " \\ 'allowlist': ['c', 'cpp', 'objc'],\n" " \\ 'initialization_options': {},\n" " \\ })\n" @@ -257,7 +302,16 @@ msgstr "" " \\ })\n" #. type: Plain text -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:125 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:141 +msgid "" +"Depending on the version that you installed for `clangd` you might need to " +"update the `server-info` to point to the correct binary." +msgstr "" +"Dependiendo de la versión de `clangd` que hayas instalado podrías necesitar " +"actualizar la `server-info` para apuntar al binario adecuado." + +#. type: Plain text +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:144 msgid "" "Please refer to link:https://github.com/prabirshrestha/vim-lsp/blob/master/" "README.md#registering-servers[] to learn about setting up key bindings and " @@ -272,7 +326,7 @@ msgstr "" "link:https://github.com/MaskRay/ccls/[]." #. type: Plain text -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:128 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:147 msgid "" "Below are the reference settings of keybindings and code completions. Put " "the following snippet into [.filepath]#~/.config/nvim/init.vim#, or [." @@ -283,7 +337,7 @@ msgstr "" "config/nvim/init.vim#, o [.filepath]#~/.vim/vimrc# para usarlo con Vim:" #. type: delimited block . 4 -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:135 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:154 #, no-wrap msgid "" "function! s:on_lsp_buffer_enabled() abort\n" @@ -297,7 +351,7 @@ msgstr "" " setlocal keywordprg=:LspHover\n" #. type: delimited block . 4 -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:149 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:168 #, no-wrap msgid "" " nmap <buffer> <C-]> <plug>(lsp-definition)\n" @@ -329,7 +383,7 @@ msgstr "" "endfunction\n" #. type: delimited block . 4 -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:154 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:173 #, no-wrap msgid "" "augroup lsp_install\n" @@ -343,13 +397,13 @@ msgstr "" "augroup END\n" #. type: Title === -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:157 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:176 #, no-wrap msgid "VSCode" msgstr "VSCode" #. type: Plain text -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:164 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:183 msgid "" "LSP client plugins are required to launch the language server daemon. Press " "`Ctrl+Shift+X` to show the extension online search panel. Enter `llvm-vs-" @@ -362,7 +416,7 @@ msgstr "" "clangd` cuando utilices clangd, o `ccls-project.ccls` cuando utilices ccls." #. type: Plain text -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:168 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:187 msgid "" "Then, press `Ctrl+Shift+P` to show the editor commands palette. Enter " "`Preferences: Open Settings (JSON)` into the palette and hit `Enter` to open " @@ -377,7 +431,7 @@ msgstr "" "JSON en [.filepath]#settings.json#:" #. type: delimited block . 4 -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:182 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:201 #, no-wrap msgid "" "[\n" @@ -403,7 +457,7 @@ msgstr "" "]\n" #. type: delimited block . 4 -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:193 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:212 #, no-wrap msgid "" "[\n" @@ -421,18 +475,18 @@ msgstr "" "]\n" #. type: Title == -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:196 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:215 #, no-wrap msgid "Compilation database" msgstr "Base de datos de compilación" #. type: Plain text -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:202 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:221 msgid "" "A Compilation database contains an array of compile command objects. Each " "object specifies a way of compiling a source file. The compilation database " -"file is usually [.filename]#compile_commands.json#. The database is used " -"by language server implementations for indexing purpose." +"file is usually [.filename]#compile_commands.json#. The database is used by " +"language server implementations for indexing purpose." msgstr "" "Una base de datos de compilación contiene un array de objetos de comandos de " "compilación. Cada objeto especifica una forma de compilar un fichero fuente. " @@ -441,7 +495,7 @@ msgstr "" "servidor de lenguajes con propósitos de indexado." #. type: Plain text -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:204 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:223 msgid "" "Please refer to link:https://clang.llvm.org/docs/JSONCompilationDatabase." "html#format[] for details on the format of the compilation database file." @@ -451,25 +505,25 @@ msgstr "" "datos de compilación." #. type: Title === -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:206 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:225 #, no-wrap msgid "Generators" msgstr "Generadores" #. type: Title ==== -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:209 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:228 #, no-wrap msgid "Using scan-build-py" msgstr "Utilizando scan-build-py" #. type: Title ===== -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:211 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:230 #, no-wrap msgid "Installation" msgstr "Instalación" #. type: Plain text -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:215 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:234 msgid "" "`intercept-build` tool from scan-build-py is used to generate compilation " "database." @@ -478,7 +532,7 @@ msgstr "" "base de datos de compilación." #. type: Plain text -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:218 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:237 msgid "" "Install package:devel/python[] to get python interpreter first. To get " "`intercept-build` from LLVM:" @@ -487,14 +541,13 @@ msgstr "" "Para obtener `intercept-build` de LLVM:" #. type: delimited block . 4 -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:222 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:241 #, no-wrap msgid "# git clone https://github.com/llvm/llvm-project /path/to/llvm-project\n" -msgstr "" -"# git clone https://github.com/llvm/llvm-project /path/to/llvm-project\n" +msgstr "# git clone https://github.com/llvm/llvm-project /path/to/llvm-project\n" #. type: Plain text -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:225 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:244 msgid "" "where [.filename]#/path/to/llvm-project/# is your desired path for the " "repository. Make an alias in the shell configuration file for convenience:" @@ -504,15 +557,13 @@ msgstr "" "comodidad:" #. type: delimited block . 4 -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:229 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:248 #, no-wrap msgid "alias intercept-build='/path/to/llvm-project/clang/tools/scan-build-py/bin/intercept-build'\n" -msgstr "" -"alias intercept-build='/path/to/llvm-project/clang/tools/scan-build-py/bin/" -"intercept-build'\n" +msgstr "alias intercept-build='/path/to/llvm-project/clang/tools/scan-build-py/bin/intercept-build'\n" #. type: Plain text -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:235 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:254 msgid "" "link:https://github.com/rizsotto/scan-build[rizsotto/scan-build] can be used " "instead of LLVM's scan-build-py. The LLVM's scan-build-py was rizsotto/scan-" @@ -527,14 +578,14 @@ msgstr "" "`intercept-build` está en [.filename]#~/.local/bin# por defecto." #. type: Title ===== -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:236 -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:252 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:255 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:271 #, no-wrap msgid "Usage" msgstr "Uso" #. type: Plain text -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:239 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:258 msgid "" "In the top-level directory of the FreeBSD src tree, generate the compilation " "database with `intercept-build`:" @@ -543,15 +594,13 @@ msgstr "" "base de datos de compilación con `intercept-build`:" #. type: delimited block . 4 -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:243 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:262 #, no-wrap msgid "# intercept-build --append make buildworld buildkernel -j`sysctl -n hw.ncpu`\n" -msgstr "" -"# intercept-build --append make buildworld buildkernel -j`sysctl -n hw.ncpu`" -"\n" +msgstr "# intercept-build --append make buildworld buildkernel -j`sysctl -n hw.ncpu`\n" #. type: Plain text -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:248 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:267 msgid "" "The `--append` flag tells the `intercept-build` to read an existing " "compilation database (if a compilation database exists) and append the " @@ -566,13 +615,13 @@ msgstr "" "el directorio de trabajo actual como [.filename]#compile_commands.json#." #. type: Title ==== -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:250 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:269 #, no-wrap msgid "Using devel/bear" msgstr "Usando devel/bear" #. type: Plain text -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:255 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:274 msgid "" "In the top-level directory of the FreeBSD src tree, to generate compilation " "database with `bear`:" @@ -581,13 +630,13 @@ msgstr "" "base de datos de compilación con `bear`:" #. type: delimited block . 4 -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:259 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:278 #, no-wrap msgid "# bear --append -- make buildworld buildkernel -j`sysctl -n hw.ncpu`\n" msgstr "# bear --append -- make buildworld buildkernel -j`sysctl -n hw.ncpu`\n" #. type: Plain text -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:264 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:283 msgid "" "The `--append` flag tells `bear` to read an existing compilation database if " "it is present, and append the results to the database. Entries with " @@ -602,13 +651,13 @@ msgstr "" "de trabajo actual como [.filename]#compile_commands.json#." #. type: Title == -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:266 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:285 #, no-wrap msgid "Final" msgstr "Final" #. type: Plain text -#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:270 +#: documentation/content/en/articles/freebsd-src-lsp/_index.adoc:289 msgid "" "Once the compilation database is generated, open any source files in the " "FreeBSD src tree and LSP server daemon will be launched as well in " @@ -632,6 +681,13 @@ msgstr "" "completos para ficheros fuentes que no se compilan durante la ejecución de " "`make`." +#~ msgid "" +#~ "This guide is about setting up a FreeBSD src tree with language servers " +#~ "performing source code indexing." +#~ msgstr "" +#~ "Esta guía es acerca de cómo configurar un árbol src de FreeBSD con " +#~ "servidores de lenguajes para realizar indexado de código fuente." + #~ msgid "" #~ "include::shared/attributes/attributes-{{% lang %}}.adoc[] include::shared/" #~ "{{% lang %}}/teams.adoc[] include::shared/{{% lang %}}/mailing-lists."