summary refs log tree commit diff
path: root/pkgs/development/tools/parsing/tree-sitter/disable-web-ui.patch
blob: 6065aa9e7fdbcecd289f4adff2aee26b2216b2a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
diff --git a/cli/src/lib.rs b/cli/src/lib.rs
index 33a9904f..633032d7 100644
--- a/cli/src/lib.rs
+++ b/cli/src/lib.rs
@@ -8,7 +8,7 @@ pub mod parse;
 pub mod test;
 pub mod util;
 pub mod wasm;
-pub mod web_ui;
+// pub mod web_ui;
 
 #[cfg(test)]
 mod tests;
diff --git a/cli/src/main.rs b/cli/src/main.rs
index 23e7fc1a..9d784c8a 100644
--- a/cli/src/main.rs
+++ b/cli/src/main.rs
@@ -4,7 +4,7 @@ use std::{env, fs, u64};
 use std::path::Path;
 use std::process::exit;
 use tree_sitter_cli::{
-    config, error, generate, highlight, loader, logger, parse, test, wasm, web_ui,
+    config, error, generate, highlight, loader, logger, parse, test, wasm,
 };
 
 const BUILD_VERSION: &'static str = env!("CARGO_PKG_VERSION");
@@ -250,7 +250,9 @@ fn run() -> error::Result<()> {
         let grammar_path = current_dir.join(matches.value_of("path").unwrap_or(""));
         wasm::compile_language_to_wasm(&grammar_path, matches.is_present("docker"))?;
     } else if matches.subcommand_matches("web-ui").is_some() {
-        web_ui::serve(&current_dir);
+        print!("ERROR: web-ui is not available in the nixpkgs tree-sitter-cli at the moment.");
+        std::process::exit(1);
+        // web_ui::serve(&current_dir);
     }
 
     Ok(())