at master 1.2 kB view raw
1diff --git a/cli/src/lib.rs b/cli/src/lib.rs 2index 4a00747e..e17d253b 100644 3--- a/cli/src/lib.rs 4+++ b/cli/src/lib.rs 5@@ -6,7 +6,6 @@ pub mod highlight; 6 pub mod init; 7 pub mod input; 8 pub mod logger; 9 pub mod parse; 10-pub mod playground; 11 pub mod query; 12 pub mod query_testing; 13 pub mod tags; 14diff --git a/cli/src/main.rs b/cli/src/main.rs 15index 1758fada..4bc56cc2 100644 16--- a/cli/src/main.rs 17+++ b/cli/src/main.rs 18@@ -23,7 +23,7 @@ use tree_sitter_cli::{ 19 input::{get_input, get_tmp_source_file, CliInput}, 20 logger, 21 parse::{self, ParseDebugType, ParseFileOptions, ParseOutput, ParseTheme}, 22- playground, query, 23+ query, 24 tags::{self, TagsOptions}, 25 test::{self, TestOptions, TestStats}, 26 test_highlight, test_tags, util, version, wasm, 27@@ -1614,10 +1614,8 @@ impl Tags { 28 29 impl Playground { 30 fn run(self, current_dir: &Path) -> Result<()> { 31- let open_in_browser = !self.quiet; 32- let grammar_path = self.grammar_path.as_deref().map_or(current_dir, Path::new); 33- playground::serve(grammar_path, open_in_browser)?; 34- Ok(()) 35+ println!("ERROR: web-ui is not available in this nixpkgs build; enable the webUISupport"); 36+ std::process::exit(1); 37 } 38 } 39