Skip to content

Conversation

@RamSaw
Copy link
Contributor

@RamSaw RamSaw commented Aug 15, 2018

When any error occurred in plugin it will be reported as github issue.

apply plugin: 'idea'

dependencies {
compile group: 'org.eclipse.mylyn.github', name: 'org.eclipse.egit.github.core', version: '2.1.5'
Copy link
Collaborator

Choose a reason for hiding this comment

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

может быть следовать одному стандарту описания зависимостей?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

какому?
В features-extraction есть такое:
testCompile group: 'org.hamcrest', name: 'hamcrest-all', version: '1.3'

Там тогда тоже надо менять

Copy link
Collaborator

Choose a reason for hiding this comment

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

ну хотя бы в пределах одного файла

Copy link
Contributor Author

Choose a reason for hiding this comment

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

так там остальное это jar и модули, они по другому подключаются же.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Не понял, как ты хочешь написать.

Copy link
Collaborator

Choose a reason for hiding this comment

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

ну через colon
'org.eclipse.mylyn.github:org.eclipse.egit.github.core:2.1.5'

Copy link
Collaborator

Choose a reason for hiding this comment

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

Maven при копировании для gradle предлагает тот вариант, который сейчас.

Copy link
Collaborator

Choose a reason for hiding this comment

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

ну да и ладно, пусть так будет


/**
* Extends the standard class to provide the hash of the thrown exception stack trace.
* @author patrick (17.06.17).
Copy link
Collaborator

Choose a reason for hiding this comment

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

не ну как так

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed


GitHubErrorBean(Throwable throwable, String lastAction) {
super(throwable, lastAction);
final int hashCode = Arrays.hashCode(throwable.getStackTrace());
Copy link
Collaborator

Choose a reason for hiding this comment

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

тут отрицательные числа вылезают, они как то странно выглядят. а можно это превратить в положительное число и вернуть стринг типа hex-value?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ну по идее можно привести к более большему типу и вычесть Integer.MIN

Copy link
Collaborator

Choose a reason for hiding this comment

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

Long.toHexString(Integer.toUnsignedLong(...))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

сейчас так: e2a83758
0x писать или так нормально?

Copy link
Collaborator

Choose a reason for hiding this comment

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

и так норм

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

result = new SubmittedReportInfo(htmlUrl, message, isNewIssue ? SubmissionStatus.NEW_ISSUE : SubmissionStatus.DUPLICATE);
return result;
} catch (Exception e) {
return new SubmittedReportInfo(null,
Copy link
Collaborator

Choose a reason for hiding this comment

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

давай еще приложим ссылку на github/issues типа пойди ручками отправь, мы не смогли.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

return new SubmittedReportInfo(HTML_URL_TO_CREATE_NEW_ISSUE,
ArchitectureReloadedBundle.message("report.error.connection.failure",
HTML_URL_TO_CREATE_NEW_ISSUE,
e.getMessage()),
Copy link
Collaborator

Choose a reason for hiding this comment

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

тут оно не оч читаемо, лучше убрать часть про error reason

image
image

@RamSaw RamSaw merged commit 6473390 into master Aug 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants