This commit is contained in:
Бондарев Иван 2020-10-11 12:18:25 +02:00
parent e9191db820
commit 1942ffca6d
3 changed files with 16 additions and 2 deletions

View file

@ -115,10 +115,12 @@ namespace VisualPascalABC
lvErrorsList.Items[i].SubItems[ErrorListLineCol].Text = er.SourceLocation.BeginPosition.Line.ToString();
}
}
if (Err is PascalABCCompiler.Errors.CompilerInternalError)
else if (Err is PascalABCCompiler.Errors.CompilerInternalError)
{
lvErrorsList.Items[i].SubItems[ErrorListDescrCol].Text = (Err as PascalABCCompiler.Errors.CompilerInternalError).ToString();
}
else
lvErrorsList.Items[i].SubItems[ErrorListDescrCol].Text = Err.Message;
i++;
}
if (ErrorsList.Count > 0 && !(ErrorsList[0] is PascalABCCompiler.Errors.CompilerWarning))

View file

@ -106,6 +106,10 @@
<Project>{1E42361A-EDA3-4872-88AF-A3AAF600D36D}</Project>
<Name>Compiler</Name>
</ProjectReference>
<ProjectReference Include="..\..\Errors\Errors.csproj">
<Project>{44a01f9e-dce7-470c-aae5-c3de0ccbee3b}</Project>
<Name>Errors</Name>
</ProjectReference>
<ProjectReference Include="..\..\Localization\Localization.csproj">
<Project>{2DE2842F-0912-4251-BC0F-480854C44A13}</Project>
<Name>Localization</Name>

View file

@ -142,7 +142,15 @@ namespace VisualPascalABCPlugins
pt4setup.StartInfo.FileName = PT4Dir + "\\PT4Setup.exe";
if (System.IO.File.Exists(pt4setup.StartInfo.FileName))
pt4setup.Start();
try
{
pt4setup.Start();
}
catch(Exception ex)
{
VisualEnvironmentCompiler.ExecuteAction(VisualEnvironmentCompilerAction.AddMessageToErrorListWindow,
new List<PascalABCCompiler.Errors.Error>(new PascalABCCompiler.Errors.Error[] { new PascalABCCompiler.Errors.Error(ex.Message) }));
}
}
public void GetGUI(List<IPluginGUIItem> MenuItems, List<IPluginGUIItem> ToolBarItems)
{