Skip to content

Commit

Permalink
fix: new dependencies break CI (#31)
Browse files Browse the repository at this point in the history
* fix: install `arm-linux-gnueabihf-g++` as suggested by err

* fix: restrict visibility of modules

* fix: add `g++-aarch64-linux-gnu`
  • Loading branch information
McPatate authored Oct 11, 2023
1 parent cdbf76f commit fdd55dd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ jobs:

- name: Install AArch64 target toolchain
if: matrix.target == 'aarch64-unknown-linux-gnu'
run: sudo apt-get install gcc-aarch64-linux-gnu libc6-dev-arm64-cross
run: sudo apt-get install gcc-aarch64-linux-gnu libc6-dev-arm64-cross g++-aarch64-linux-gnu

- name: Install ARM target toolchain
if: matrix.target == 'arm-unknown-linux-gnueabihf'
run: sudo apt-get install gcc-arm-linux-gnueabihf
run: sudo apt-get install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf

- name: Dist
run: cargo xtask dist
Expand Down
10 changes: 5 additions & 5 deletions crates/llm-ls/src/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,16 +165,16 @@ fn get_parser(language_id: LanguageId) -> Result<Parser> {
}
}

pub struct Document {
pub(crate) struct Document {
#[allow(dead_code)]
language_id: LanguageId,
pub text: Rope,
pub(crate) text: Rope,
parser: Parser,
pub tree: Option<Tree>,
pub(crate) tree: Option<Tree>,
}

impl Document {
pub async fn open(language_id: &str, text: &str) -> Result<Self> {
pub(crate) async fn open(language_id: &str, text: &str) -> Result<Self> {
let language_id = language_id.into();
let rope = Rope::from_str(text);
let mut parser = get_parser(language_id)?;
Expand All @@ -187,7 +187,7 @@ impl Document {
})
}

pub async fn change(&mut self, text: &str) -> Result<()> {
pub(crate) async fn change(&mut self, text: &str) -> Result<()> {
let rope = Rope::from_str(text);
self.tree = self.parser.parse(text, None);
self.text = rope;
Expand Down
4 changes: 2 additions & 2 deletions crates/llm-ls/src/language_id.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::fmt;

#[derive(Clone, Copy)]
pub enum LanguageId {
pub(crate) enum LanguageId {
Bash,
C,
Cpp,
Expand Down Expand Up @@ -59,7 +59,7 @@ impl fmt::Display for LanguageId {
}
}

pub struct LanguageIdError {
pub(crate) struct LanguageIdError {
language_id: String,
}

Expand Down

0 comments on commit fdd55dd

Please sign in to comment.