Skip to content
This repository was archived by the owner on Jan 2, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .github/workflows/tauri-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,6 @@ jobs:
run: |
cargo --locked test --verbose --release -p bloop

- name: Download binaries (windows) (windows is disabled)
if: matrix.name == 'windows-latest'
shell: bash
run: |
dirname=2022-12-05%2Fp5.9.20221204.0-5-gf9d21e7
filename=ctags-2022-12-05_p5.9.20221204.0-5-gf9d21e7-clang-x64.zip
curl -LO https://github.com/universal-ctags/ctags-win32/releases/download/$dirname/$filename
echo "7c7b7e2645347d092474a942f988988ee12e045d1d8e65ae7ced68ecaf672130 $filename" |sha256sum -c -

unzip $filename || true
mv ctags.exe ${{ env.TAURI_BIN_PATH }}/ctags-$(rustc -Vv |grep host |cut -d\ -f2).exe

- name: Check if Segment key exists
env:
segment_key: ${{ secrets.ANALYTICS_FE_WRITE_KEY_PROD }}
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions apps/desktop/src-tauri/bin/aarch64-apple-darwin/libz.dylib

This file was deleted.

3 changes: 0 additions & 3 deletions apps/desktop/src-tauri/bin/ctags-aarch64-apple-darwin

This file was deleted.

3 changes: 0 additions & 3 deletions apps/desktop/src-tauri/bin/ctags-x86_64-apple-darwin

This file was deleted.

3 changes: 0 additions & 3 deletions apps/desktop/src-tauri/bin/ctags-x86_64-unknown-linux-gnu

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions apps/desktop/src-tauri/bin/x86_64-apple-darwin/libiconv.dylib

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions apps/desktop/src-tauri/bin/x86_64-apple-darwin/libz.dylib

This file was deleted.

3 changes: 1 addition & 2 deletions apps/desktop/src-tauri/src/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use once_cell::sync::OnceCell;
use sentry::ClientInitGuard;
use tracing::info;

use super::{plugin, relative_command_path, App, Manager, Payload, Runtime};
use super::{plugin, App, Manager, Payload, Runtime};

// a hack to get server/bleep/tests/desktop to run correctly
#[cfg(not(test))]
Expand Down Expand Up @@ -35,7 +35,6 @@ where
Configuration::from_cli().unwrap(),
);
configuration.qdrant_url = Some("http://127.0.0.1:6334".into());
configuration.ctags_path = relative_command_path("ctags");
configuration.max_threads = bleep::default_parallelism() / 2;
configuration.model_dir = app
.path_resolver()
Expand Down
1 change: 0 additions & 1 deletion apps/desktop/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
"depends": []
},
"externalBin": [
"bin/ctags",
"bin/qdrant"
],
"icon": [
Expand Down
20 changes: 9 additions & 11 deletions server/bleep/benches/indexes.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
use bleep::{
indexes::{reader::ContentReader, DocumentRead, File},
intelligence::TreeSitterFile,
semantic::Semantic,
symbol::{Symbol, SymbolLocations},
symbol::SymbolLocations,
Application, Configuration, Environment,
};
use criterion::{black_box, criterion_group, criterion_main, Criterion};
Expand All @@ -10,16 +11,13 @@ use std::{path::Path, sync::Arc};
use tantivy::doc;
use tempdir::TempDir;

async fn get_symbols() -> Vec<Symbol> {
let syms = bleep::ctags::get_symbols(&Path::new(".").canonicalize().unwrap(), &[]).await;
async fn get_symbols() -> SymbolLocations {
let file = std::fs::read_to_string("./js-sample-big-symbols.js").unwrap();
let scope_graph = TreeSitterFile::try_build(file.as_bytes(), "javascript")
.and_then(TreeSitterFile::scope_graph)
.unwrap();

syms.into_iter()
.find(|(k, _)| {
k.components()
.any(|c| c.as_os_str() == "js-sample-big-symbols.js")
})
.map(|(_, v)| v)
.unwrap()
SymbolLocations::TreeSitter(scope_graph)
}

async fn index(index_dir: &Path) {
Expand Down Expand Up @@ -82,7 +80,7 @@ pub fn criterion_benchmark(c: &mut Criterion) {
file.lang => &b"JavaScript"[..],
file.avg_line_length => 42.0,
file.last_commit_unix_seconds => 42.0,
file.symbol_locations => bincode::serialize(&SymbolLocations::Ctags(symbols.clone())).unwrap(),
file.symbol_locations => bincode::serialize(&symbols).unwrap(),
}
},
|tantivy_doc| ContentReader.read_document(black_box(&file), black_box(tantivy_doc)),
Expand Down
Loading