Skip to content

Commit

Permalink
Ошибка работы quickfix, если в тексте ошибки есть запятая
Browse files Browse the repository at this point in the history
  • Loading branch information
DoublesunRUS committed Dec 12, 2019
1 parent ef8c289 commit 291a332
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
А= 1;
А =1;
А=1;
NumberOfValuesInStructureConstructor(1,2,3,4);

КонецПроцедуры

Expand Down Expand Up @@ -483,7 +484,14 @@
&НаСервере
Процедура MissingTemporaryFileDeletion() Экспорт

ИмяФайла = ПолучитьИмяВременногоФайла("json");
А = Истина;
Если А Тогда
ИмяФайла = ПолучитьИмяВременногоФайла("json");

Иначе
ИмяФайла = "ААА";

КонецЕсли;

КонецПроцедуры

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public void processBslLanguageServerDiagnostic(final Issue issue, final IssueRes
if (issueLine.isEmpty())
continue;

String[] issueList = issueLine.split("[,]"); //$NON-NLS-1$
String[] issueList = issueLine.split("[|]"); //$NON-NLS-1$

String issueCommand = issueList[0];
String issueMessage = issueList[1];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ private static StringBuilder getIssueData(Diagnostic diagnostic, Class<? extends

if (issueData.length() != 0)
issueData.append(System.lineSeparator());
issueData.append(String.join(",", issueLine)); //$NON-NLS-1$
issueData.append(String.join("|", issueLine)); //$NON-NLS-1$
}

return issueData;
Expand Down

1 comment on commit 291a332

@nixel2007
Copy link
Contributor

@nixel2007 nixel2007 commented on 291a332 Dec 12, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А зачем ты это возвращаешь в виде string builder? Почему не завернуть в DTO/POJO?

Please sign in to comment.