tree-sitter / tree-sitter-rust

Rust grammar for tree-sitter
MIT License
337 stars 96 forks source link

Compiling on Windows fails due to invalid numeric argument /Wno-unused-parameter #222

Closed Profiidev closed 3 months ago

Profiidev commented 4 months ago
The following warnings were emitted during compilation:     

warning: tree-sitter-rust@0.21.0: cl : Command line error D8021 : invalid numeric argument '/Wno-unused-parameter'

error: failed to run custom build command for `tree-sitter-rust v0.21.0`

Caused by:
  process didn't exit successfully: `C:\Users\***\Documents\Coding\Apps\CodeForge\src-tauri\target\debug\build\tree-sitter-rust-4bf300168c778a12\build-script-build` (exit code: 1)
  --- stderr

  error occurred: Command "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.37.32822\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-std:c11" "-I" "src" "-W4" "-Wno-unused-parameter" "-FoC:\\Users\\***\\Documents\\Coding\\Apps\\CodeForge\\src-tauri\\target\\debug\\build\\tree-sitter-rust-b51e979015ad4c6a\\out\\2e40c9e35e9506f4-parser.o" "-c" "src\\parser.c" with args cl.exe did not execute successfully (status code exit code: 2).
jamesbascle commented 3 months ago

Currently experiencing this bug my first time trying to use tree-sitter!

amaanq commented 3 months ago

thanks, sorry about that