update start_ide and fix clean thread
This commit is contained in:
@@ -25,10 +25,14 @@ let
|
|||||||
pkgs.gccStdenv
|
pkgs.gccStdenv
|
||||||
pkgs.binutils
|
pkgs.binutils
|
||||||
pkgs.gnupg
|
pkgs.gnupg
|
||||||
|
pkgs.cacert
|
||||||
];
|
];
|
||||||
|
|
||||||
|
moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz);
|
||||||
|
nightly_rust_pkgs = import <nixpkgs> { overlays = [ moz_overlay ]; };
|
||||||
|
|
||||||
projectDependencies = [
|
projectDependencies = [
|
||||||
pkgs.rustc
|
nightly_rust_pkgs.latest.rustChannels.nightly.rust
|
||||||
pkgs.rls
|
pkgs.rls
|
||||||
pkgs.cargo
|
pkgs.cargo
|
||||||
pkgs.clippy
|
pkgs.clippy
|
||||||
@@ -91,7 +95,6 @@ let
|
|||||||
vscode-rust = "https://open-vsx.org/api/vscode/rust/1.46.1/file/vscode.rust-1.46.1.vsix";
|
vscode-rust = "https://open-vsx.org/api/vscode/rust/1.46.1/file/vscode.rust-1.46.1.vsix";
|
||||||
formulahendry-code-runner = "https://open-vsx.org/api/formulahendry/code-runner/0.10.0/file/formulahendry.code-runner-0.10.0.vsix";
|
formulahendry-code-runner = "https://open-vsx.org/api/formulahendry/code-runner/0.10.0/file/formulahendry.code-runner-0.10.0.vsix";
|
||||||
rust-lang-rust = "https://open-vsx.org/api/rust-lang/rust/0.7.8/file/rust-lang.rust-0.7.8.vsix";
|
rust-lang-rust = "https://open-vsx.org/api/rust-lang/rust/0.7.8/file/rust-lang.rust-0.7.8.vsix";
|
||||||
# swellaby-vscode-rust-test-adapter = "https://open-vsx.org/api/Swellaby/vscode-rust-test-adapter/0.11.0/file/Swellaby.vscode-rust-test-adapter-0.11.0.vsix";
|
|
||||||
serayuzgur-crates = "https://open-vsx.org/api/serayuzgur/crates/0.5.0/file/serayuzgur.crates-0.5.0.vsix";
|
serayuzgur-crates = "https://open-vsx.org/api/serayuzgur/crates/0.5.0/file/serayuzgur.crates-0.5.0.vsix";
|
||||||
belfz-search-crates-io = "https://open-vsx.org/api/belfz/search-crates-io/1.2.1/file/belfz.search-crates-io-1.2.1.vsix";
|
belfz-search-crates-io = "https://open-vsx.org/api/belfz/search-crates-io/1.2.1/file/belfz.search-crates-io-1.2.1.vsix";
|
||||||
};
|
};
|
||||||
@@ -182,5 +185,6 @@ pkgs.mkShell {
|
|||||||
export PROJECT_FOLDER=$(realpath ${projectFolder})
|
export PROJECT_FOLDER=$(realpath ${projectFolder})
|
||||||
export WORKING_FOLDER=$(realpath ${workingFolder})
|
export WORKING_FOLDER=$(realpath ${workingFolder})
|
||||||
'';
|
'';
|
||||||
|
LD_LIBRARY_PATH="${pkgs.stdenv.cc.cc.lib}/lib64:$LD_LIBRARY_PATH";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -257,7 +257,7 @@ fn clean_thread(thread_param: &ThreadRunningParam) {
|
|||||||
.unwrap_or_default();
|
.unwrap_or_default();
|
||||||
eng.save().unwrap_or_default();
|
eng.save().unwrap_or_default();
|
||||||
// todo delete container
|
// todo delete container
|
||||||
fs::remove_dir_all(eng.working_folder).unwrap_or_default();
|
fs::remove_dir_all(&thread_param.ide_folder).unwrap_or_default();
|
||||||
}
|
}
|
||||||
|
|
||||||
fn working_thread(thread_param: &ThreadRunningParam) -> Result<(), Error> {
|
fn working_thread(thread_param: &ThreadRunningParam) -> Result<(), Error> {
|
||||||
|
|||||||
Reference in New Issue
Block a user