Fix Java 8 resolution for MfApi restart, refresh targets after settings, and copy errors to clipboard.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -11,8 +11,8 @@ public sealed class RuntimeEnvironmentValidator
|
||||
{
|
||||
List<string> issues = [];
|
||||
|
||||
string javaExecutablePath =
|
||||
PathResolver.ResolvePath(
|
||||
string? javaExecutablePath =
|
||||
JavaRuntimeLocator.Resolve(
|
||||
settings.JavaExecutablePath);
|
||||
|
||||
string sonicClientLibraryPath =
|
||||
@@ -21,10 +21,11 @@ public sealed class RuntimeEnvironmentValidator
|
||||
|
||||
string javaVersion = string.Empty;
|
||||
|
||||
if (!File.Exists(javaExecutablePath))
|
||||
if (javaExecutablePath is null)
|
||||
{
|
||||
issues.Add(
|
||||
$"Java wurde nicht gefunden: {javaExecutablePath}");
|
||||
"Java 8 wurde nicht gefunden. "
|
||||
+ "Runtime:JavaExecutablePath oder installierte jre1.8* prüfen.");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -80,7 +81,7 @@ public sealed class RuntimeEnvironmentValidator
|
||||
return new RuntimeValidationResult
|
||||
{
|
||||
IsValid = issues.Count == 0,
|
||||
JavaExecutablePath = javaExecutablePath,
|
||||
JavaExecutablePath = javaExecutablePath ?? string.Empty,
|
||||
SonicClientLibraryPath = sonicClientLibraryPath,
|
||||
JavaVersion = javaVersion,
|
||||
Issues = issues
|
||||
|
||||
Reference in New Issue
Block a user