-
Notifications
You must be signed in to change notification settings - Fork 1
Implemented error reporting #139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ser info to comment.
| apply plugin: 'idea' | ||
|
|
||
| dependencies { | ||
| compile group: 'org.eclipse.mylyn.github', name: 'org.eclipse.egit.github.core', version: '2.1.5' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
может быть следовать одному стандарту описания зависимостей?
There was a problem hiding this comment.
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'
Там тогда тоже надо менять
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ну хотя бы в пределах одного файла
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
так там остальное это jar и модули, они по другому подключаются же.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Не понял, как ты хочешь написать.
There was a problem hiding this comment.
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'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maven при копировании для gradle предлагает тот вариант, который сейчас.
There was a problem hiding this comment.
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). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
не ну как так
There was a problem hiding this comment.
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()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
тут отрицательные числа вылезают, они как то странно выглядят. а можно это превратить в положительное число и вернуть стринг типа hex-value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ну по идее можно привести к более большему типу и вычесть Integer.MIN
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Long.toHexString(Integer.toUnsignedLong(...))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
сейчас так: e2a83758
0x писать или так нормально?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
и так норм
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
давай еще приложим ссылку на github/issues типа пойди ручками отправь, мы не смогли.
There was a problem hiding this comment.
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()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.


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