[norg] compilation error on Macbook Air M1 #634
Answered
by
molleweide
molleweide
asked this question in
Q&A
-
|
Does this mean that the wrong version of [nvim-treesitter] [1/2, failed: 1] Downloading tree-sitter-norg...
[nvim-treesitter] [1/2, failed: 1] Creating temporary directory
[nvim-treesitter] [1/2, failed: 1] Extracting tree-sitter-norg...
[nvim-treesitter] [1/2, failed: 1] Generating source files from grammar.js...
[nvim-treesitter] [1/2, failed: 1] Compiling...
nvim-treesitter[norg]: Error during compilation
src/scanner.cc:162:35: error: expected expression
return std::vector<TokenType>({lhs, static_cast<TokenType>(rhs)});
^
src/scanner.cc:165:23: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
std::vector<TokenType>&& operator|(std::vector<TokenType>&& lhs, TokenType rhs)
^
src/scanner.cc:165:58: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
std::vector<TokenType>&& operator|(std::vector<TokenType>&& lhs, TokenType rhs)
^
src/scanner.cc:177:10: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
for (auto& elem : vec)
^
src/scanner.cc:177:21: warning: range-based for loop is a C++11 extension [-Wc++11-extensions]
for (auto& elem : vec)
^
src/scanner.cc:542:28: error: expected ';' at end of declaration list
size_t& get_tag_level() noexcept { return m_TagLevel; }
^
;
src/scanner.cc:919:23: warning: in-class initialization of non-static data member is a C++11 extension [-Wc++11-extensions]
size_t m_TagLevel = 0;
^
src/scanner.cc:923:27: warning: in-class initialization of non-static data member is a C++11 extension [-Wc++11-extensions]
TokenType m_LastToken = NONE;
^
src/scanner.cc:926:26: warning: in-class initialization of non-static data member is a C++11 extension [-Wc++11-extensions]
size_t m_ParsedChars = 0;
^
src/scanner.cc:929:54: warning: in-class initialization of non-static data member is a C++11 extension [-Wc++11-extensions]
const std::array<int32_t, 9> m_DetachedModifiers = {'*', '-', '>', '|', '=',
^
src/scanner.cc:931:70: warning: in-class initialization of non-static data member is a C++11 extension [-Wc++11-extensions]
const std::unordered_map<int32_t, TokenType> m_AttachedModifiers = {
^
src/scanner.cc:931:72: error: non-aggregate type 'const std::unordered_map<int32_t, TokenType>' (aka 'const unordered_map<int, TokenType>') cannot be i
nitialized with an initializer list
const std::unordered_map<int32_t, TokenType> m_AttachedModifiers = {
...
...
^
src/scanner.cc:236:17: error: use of undeclared identifier 'skip'
skip(lexer);
^
src/scanner.cc:241:17: error: use of undeclared identifier 'advance'
advance(lexer);
^
src/scanner.cc:251:21: error: use of undeclared identifier 'advance'
advance(lexer);
^
src/scanner.cc:254:25: error: use of undeclared identifier 'advance'
advance(lexer);
^
src/scanner.cc:257:29: error: use of undeclared identifier 'advance'
advance(lexer);
^
src/scanner.cc:262:37: error: use of undeclared identifier 'advance'
advance(lexer);
^
src/scanner.cc:294:17: error: use of undeclared identifier 'advance'
advance(lexer);
^
src/scanner.cc:300:24: error: use of undeclared identifier 'parse_text'
return parse_text(lexer);
^
src/scanner.cc:312:32: error: expected expression
{'*'}) != NONE)
^
src/scanner.cc:316:92: error: expected expression
if (check_detached(lexer, QUOTE1 | QUOTE2 | QUOTE3 | QUOTE4 | QUOTE5 | QUOTE6, {'>'}) !=
^
src/scanner.cc:328:32: error: expected expression
{'-'},
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
9 warnings and 20 errors generated. |
Beta Was this translation helpful? Give feedback.
Answered by
molleweide
Oct 17, 2022
Replies: 1 comment
-
|
solved it with doom-neovim/doom-nvim#246 (comment) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
molleweide
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
solved it with doom-neovim/doom-nvim#246 (comment)