mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fixed issues with very long errors
This commit is contained in:
parent
a70b993686
commit
aa89d7d496
3 changed files with 17 additions and 4 deletions
|
@ -276,7 +276,15 @@ namespace IDE.ui
|
|||
SetLabel(item, codeStr);
|
||||
|
||||
let descItem = item.GetSubItem(1);
|
||||
String errStr = scope String(32)..Append(error.mError);
|
||||
String errStr = scope String(32);
|
||||
int maxLen = 4*1024;
|
||||
if (error.mError.Length > maxLen)
|
||||
{
|
||||
errStr.Append(error.mError.Substring(0, maxLen));
|
||||
errStr.Append("...");
|
||||
}
|
||||
else
|
||||
errStr.Append(error.mError);
|
||||
errStr.Replace('\n', ' ');
|
||||
|
||||
SetLabel(descItem, errStr);
|
||||
|
|
|
@ -738,7 +738,7 @@ namespace IDE.ui
|
|||
String val = scope String();
|
||||
if (evalString.StartsWith(":", StringComparison.Ordinal))
|
||||
{
|
||||
var showString = scope String(evalString, 1);
|
||||
var showString = scope String(4096)..Append(evalString, 1);
|
||||
bool isShowingDoc = showString.Contains('\x01');
|
||||
if (!isShowingDoc)
|
||||
{
|
||||
|
|
|
@ -5073,7 +5073,11 @@ namespace IDE.ui
|
|||
String showMouseoverString = null;
|
||||
if (bestError.mError != null)
|
||||
{
|
||||
showMouseoverString = scope:: String(":", bestError.mError);
|
||||
int maxLen = 16*1024;
|
||||
if (bestError.mError.Length > maxLen)
|
||||
showMouseoverString = scope:: String()..Concat(":", StringView(bestError.mError, 0, maxLen), "...");
|
||||
else
|
||||
showMouseoverString = scope:: String()..Concat(":", bestError.mError);
|
||||
|
||||
if (bestError.mMoreInfo != null)
|
||||
{
|
||||
|
@ -5676,7 +5680,8 @@ namespace IDE.ui
|
|||
}
|
||||
}
|
||||
|
||||
UpdateMouseover();
|
||||
if (gApp.mIsUpdateBatchStart)
|
||||
UpdateMouseover();
|
||||
|
||||
var compiler = ResolveCompiler;
|
||||
var bfSystem = BfResolveSystem;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue