-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
246d1c2
commit 6c890d2
Showing
5 changed files
with
66 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
use std::sync::Arc; | ||
|
||
use hemtt_workspace::reporting::{Code, Diagnostic, Severity}; | ||
|
||
pub struct WineNotFound; | ||
|
||
impl Code for WineNotFound { | ||
fn ident(&self) -> &'static str { | ||
"BBE7" | ||
} | ||
|
||
fn severity(&self) -> Severity { | ||
Severity::Error | ||
} | ||
|
||
fn message(&self) -> String { | ||
String::from("`wine64` not found in PATH.") | ||
} | ||
|
||
fn note(&self) -> Option<String> { | ||
Some(String::from( | ||
"When specifying tools on Linux, make sure `wine64` is in your PATH.", | ||
)) | ||
} | ||
|
||
fn diagnostic(&self) -> Option<Diagnostic> { | ||
Some(Diagnostic::simple(self)) | ||
} | ||
} | ||
|
||
impl WineNotFound { | ||
#[allow(dead_code)] // only used on non-windows platforms | ||
pub fn code() -> Arc<dyn Code> { | ||
Arc::new(Self) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters