Closed kishikaisei closed 2 years ago
I am not sure if this will resolve your issue but you need to update your config to also include src/scanner.cc
like this:
parser_configs.norg = {
install_info = {
url = "https://github.com/vhyrro/tree-sitter-norg",
files = { "src/parser.c", "src/scanner.cc" },
branch = "main"
},
}
See also here
yeah i believe that's the problem too :)
It changed to this now:
[nvim-treesitter] [0/1] Downloading...
[nvim-treesitter] [0/1] Checking out locked revision
[nvim-treesitter] [0/1] Compiling...
nvim-treesitter[norg]: Error during compilation
src/scanner.cc:507:77: error: no matching function for call to 'ispunct'^M
else if (m_TagStack.size() == 0 && (std::iswspace(m_Current) || std::ispunct(m_Current)) && lexer->lookahead == '[')^M
^~~~~~~~~~~~^M
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\include\locale:246:8: note: candidate function template not viable: requires 2 arguments, but 1 was provided^M
bool (ispunct)(_Elem _Ch, const locale& _Loc)^M
^^M
1 error generated.^M
Hey, soz for the late reply man. There's been a tonne going on 😅. I think this may be fixed now (?). Try recompiling and see whether anything works.
Jazz hands to you my dude, it works now!
It seems like this issue reappeared, but only for norg, norg_meta
and norg_table
are all good though.
Hey, could you retry now? I think it should be fixed :crossed_fingers:
You fixed it before me getting my dinner XD Thanks and all praised to you
I am running windows, and I have this after following the documentation:
Console output:
I am pretty sure it use to work before, but for some reason not any more, and I couldn't make sense of what the issue is:
init.lua section: