Skip to content

Commit

Permalink
Improved error messages when debugging fails
Browse files Browse the repository at this point in the history
If Lime is not installed, says that instead of suggesting that the version is older than 7.3.0

When an older version is installed, mentions which version it is.
  • Loading branch information
joshtynjala committed Mar 26, 2024
1 parent 50d1b91 commit ac91a6b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/lime/extension/Main.hx
Original file line number Diff line number Diff line change
Expand Up @@ -764,9 +764,15 @@ class Main

if (!hasProjectFile || !isProviderActive) return config;

if (limeVersion < new SemVer(7, 3, 0))
if (limeVersion == new SemVer(0, 0, 0))
{
var message = 'Lime debug support requires Lime 7.3.0 (or greater)';
var message = 'Lime debug support requires Lime 7.3.0 (or greater) to be installed, but Lime not found.';
window.showWarningMessage(message);
return config;
}
else if (limeVersion < new SemVer(7, 3, 0))
{
var message = 'Lime debug support requires Lime 7.3.0 (or greater). Found Lime ${limeVersion.major}.${limeVersion.minor}.${limeVersion.patch} instead.';
window.showWarningMessage(message);
return config;
}
Expand Down

0 comments on commit ac91a6b

Please sign in to comment.