Skip to content

Commit

Permalink
Set status bar to "loading" when downloading Flowistry, fix outdated …
Browse files Browse the repository at this point in the history
…links and messages, bump to 0.5.1
  • Loading branch information
willcrichton committed Feb 22, 2022
1 parent f173d3b commit e468ea8
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
with:
command: build
args: --release
- run: zip ${{ matrix.target }}.zip cargo-flowistry* flowistry-driver*
- run: rm -f cargo-flowistry.d flowistry-driver.d && zip ${{ matrix.target }}.zip cargo-flowistry* flowistry-driver*
working-directory: target/release
- uses: actions/upload-artifact@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion crates/flowistry/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "flowistry"
version = "0.5.0"
version = "0.5.1"
edition = "2021"
authors = ["Will Crichton <[email protected]>"]
description = "Modular information flow analysis"
Expand Down
4 changes: 2 additions & 2 deletions crates/flowistry_ide/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "flowistry_ide"
version = "0.5.0"
version = "0.5.1"
edition = "2021"
authors = ["Will Crichton <[email protected]>"]
description = "Information Flow in the IDE for Rust"
Expand All @@ -11,7 +11,7 @@ license = "MIT"
rustc_private = true

[dependencies]
flowistry = {version = "0.5.0", path = "../flowistry"}
flowistry = {version = "0.5.1", path = "../flowistry"}
anyhow = "1"
log = "0.4"
fluid-let = "1.0"
Expand Down
4 changes: 2 additions & 2 deletions crates/flowistry_ifc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
name = "flowistry_ifc"
version = "0.5.0"
version = "0.5.1"
edition = "2021"

[dependencies]
flowistry = {version = "0.5.0", path = "../flowistry"}
flowistry = {version = "0.5.1", path = "../flowistry"}
env_logger = "0.9"
termcolor = "1.1"
anyhow = "1"
2 changes: 1 addition & 1 deletion crates/flowistry_ifc_traits/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "flowistry_ifc_traits"
version = "0.5.0"
version = "0.5.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion ide/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"type": "git"
},
"description": "Information Flow in the IDE for Rust",
"version": "0.5.0",
"version": "0.5.1",
"engines": {
"vscode": "^1.54.0"
},
Expand Down
3 changes: 3 additions & 0 deletions ide/src/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ import path from "path";
import * as util from "util";

import { log } from "./logging";
import { globals } from "./extension";

declare const VERSION: string;

export let download = async () => {
globals.status_bar.set_state("loading", "Downloading Flowistry");
let exec = async (cmd: string) => {
let exec = util.promisify(cp.exec);
let { stdout } = await exec(cmd);
Expand All @@ -36,4 +38,5 @@ export let download = async () => {
let buffer = await got.get(release_url).buffer();
let zip = new AdmZip(buffer);
zip.extractAllTo(cargo_bin);
globals.status_bar.set_state("idle");
};
4 changes: 2 additions & 2 deletions ide/src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export async function setup(

if (choice === "Show fix") {
open(
"https://github.com/willcrichton/flowistry/blob/master/README.md#rustup-fails-on-installation"
"https://github.com/willcrichton/flowistry/blob/master/README.md#1-rustup-fails-on-installation"
);
await vscode.window.showInformationMessage(
'Click "Continue" once you have completed the fix.',
Expand All @@ -171,7 +171,7 @@ export async function setup(

if (version === "") {
vscode.window.showInformationMessage(
"Flowistry has successfully installed! Try selecting a variable in a function, then do: right click -> Flowistry -> Backward Highlight."
"Flowistry has successfully installed!"
);
}
}
Expand Down

0 comments on commit e468ea8

Please sign in to comment.