<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>51267</bug_id>
          
          <creation_ts>2024-08-24 08:51:14 +0300</creation_ts>
          <short_desc>/usr/share/nvim/runtime/lua/vim/treesitter/language.lua:107: no parser for &apos;lua&apos; language</short_desc>
          <delta_ts>2024-08-27 18:57:59 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>neovim</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugzilla.altlinux.org/show_bug.cgi?id=51257</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Arseny Maslennikov">arseny</reporter>
          <assigned_to name="cow@altlinux.org">cow</assigned_to>
          <cc>cow</cc>
    
    <cc>vladimir.didenko</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>250533</commentid>
    <comment_count>0</comment_count>
    <who name="Arseny Maslennikov">arseny</who>
    <bug_when>2024-08-24 08:51:14 +0300</bug_when>
    <thetext>Если открыть любой lua-файл или выставить у уже открытого буфера filetype=lua, вылетает ошибка (ниже) и редактор просит интерактивного Enter. После этого, например, нет подсветки синтаксиса.

C файлотипами bash, sh, c такого эффекта нет.

Полная паста:

Error detected while processing BufReadPost Autocommands for &quot;*&quot;:
Error executing lua callback: /usr/share/nvim/runtime/filetype.lua:35: Error executing lua: /usr/share/nvim/runtime/filetype.lua:36: BufReadPost Autocommands for &quot;*&quot;..FileType Autocommands for &quot;*&quot;..function &lt;SNR&gt;1_LoadFTPlugin[20]..script /usr/share/nvim/runtime/ftplugin/lua.lua: Vim(runtime):E5113: Error while calling lua chunk: /usr/share/nvim/runtime/lua/vim/treesitter/language.lua:107: no parser for &apos;lua&apos; language, see :help treesitter-parsers
stack traceback:
        [C]: in function &apos;error&apos;
        /usr/share/nvim/runtime/lua/vim/treesitter/language.lua:107: in function &apos;add&apos;
        /usr/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:111: in function &apos;new&apos;
        /usr/share/nvim/runtime/lua/vim/treesitter.lua:41: in function &apos;_create_parser&apos;
        /usr/share/nvim/runtime/lua/vim/treesitter.lua:108: in function &apos;get_parser&apos;
        /usr/share/nvim/runtime/lua/vim/treesitter.lua:416: in function &apos;start&apos;
        /usr/share/nvim/runtime/ftplugin/lua.lua:2: in main chunk
        [C]: in function &apos;nvim_cmd&apos;
        /usr/share/nvim/runtime/filetype.lua:36: in function &lt;/usr/share/nvim/runtime/filetype.lua:35&gt;
        [C]: in function &apos;nvim_buf_call&apos;
        /usr/share/nvim/runtime/filetype.lua:35: in function &lt;/usr/share/nvim/runtime/filetype.lua:10&gt;
stack traceback:
        [C]: in function &apos;nvim_cmd&apos;
        /usr/share/nvim/runtime/filetype.lua:36: in function &lt;/usr/share/nvim/runtime/filetype.lua:35&gt;
        [C]: in function &apos;nvim_buf_call&apos;
        /usr/share/nvim/runtime/filetype.lua:35: in function &lt;/usr/share/nvim/runtime/filetype.lua:10&gt;
stack traceback:
        [C]: in function &apos;nvim_buf_call&apos;
        /usr/share/nvim/runtime/filetype.lua:35: in function &lt;/usr/share/nvim/runtime/filetype.lua:10&gt;
Press ENTER or type command to continue</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>250622</commentid>
    <comment_count>1</comment_count>
    <who name="Владимир Диденко">vladimir.didenko</who>
    <bug_when>2024-08-26 16:56:49 +0300</bug_when>
    <thetext>Я посмотрю. Пока хочется сделать зависимость на tree-sitter-lua, но для этого еще нужно сделать директорию %_libdir/tree-sitter, в которую будут класться симлинки вида &lt;language&gt;.so, чтобы neovim мог оттуда подтягивать парсеры.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>250623</commentid>
    <comment_count>2</comment_count>
    <who name="Владимир Диденко">vladimir.didenko</who>
    <bug_when>2024-08-26 18:12:14 +0300</bug_when>
    <thetext>В первом приближении готово

https://git.altlinux.org/tasks/356104

потестирую немного и отправлю в Сизиф. Потом можно и в p11 скопировать.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>250684</commentid>
    <comment_count>3</comment_count>
    <who name="Владимир Диденко">vladimir.didenko</who>
    <bug_when>2024-08-27 18:57:59 +0300</bug_when>
    <thetext>Исправление в Сизифе.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>