tree-sitter / tree-sitter-haskell

Haskell grammar for tree-sitter.
MIT License
152 stars 36 forks source link

Fails to build on Windows #37

Closed archseer closed 3 years ago

archseer commented 3 years ago

Hi, we've imported the grammar into helix, now that #27 was addressed! A bug report was just opened (https://github.com/helix-editor/helix/issues/117) regarding building the grammar on Windows, it seems that there's some errors with scanner.cc:

  languages\tree-sitter-haskell\src\scanner.cc(1555): error C3861: 'to_string': identifier not found
  languages\tree-sitter-haskell\src\scanner.cc(1556): error C3861: 'to_string': identifier not found
  languages\tree-sitter-haskell\src\scanner.cc(1557): error C3536: 'col': cannot be used before it is initialized
  languages\tree-sitter-haskell\src\scanner.cc(1557): error C2676: binary '+': 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' does not define this operator or a conversion to a type acceptable to the predefined operator
  languages\tree-sitter-haskell\src\scanner.cc(1557): error C2672: 'operator __surrogate_func': no matching overloaded function found
  exit code: 2
archseer commented 3 years ago

I think this is possibly because we build the grammars with default settings that might not be C++14. I'll update our build setup.

archseer commented 3 years ago

Closing as duplicate of #34