Skip to content
This repository has been archived by the owner on Aug 19, 2020. It is now read-only.

Refine messages reported to the IDE editor and their lifecycle #1133

Merged
merged 20 commits into from
Sep 24, 2018

Conversation

eskatos
Copy link
Member

@eskatos eskatos commented Sep 23, 2018

This PR lets text of IDE reports be simpler and actionable and also refine how failures are reported, distinguishing those happening in the currently edited script from those coming from other parts of the build logic. See the added coverage for handled cases.

To try it out:

./gradlew customInstallation

Then import a build in IntelliJ using the Gradle installation from ./build/custom

This PR also introduces support for location aware hints for build configuration runtime failures originating from the currently edited script. This feature is disabled by default and can be enabled using an internal property. There are some UX issues to iron out but this will allow us to try it out, see the added coverage.

This PR is part of #89

by making it testable
no change in behavior

Signed-off-by: Paul Merlin <paul@gradle.com>
Signed-off-by: Paul Merlin <paul@gradle.com>
Signed-off-by: Paul Merlin <paul@gradle.com>
Signed-off-by: Paul Merlin <paul@gradle.com>
Signed-off-by: Paul Merlin <paul@gradle.com>
because the IDE already provides user feedback for those.

Signed-off-by: Paul Merlin <paul@gradle.com>
if location aware

Signed-off-by: Paul Merlin <paul@gradle.com>
Signed-off-by: Paul Merlin <paul@gradle.com>
Signed-off-by: Paul Merlin <paul@gradle.com>
and report an error if able to reuse previous dependencies

Signed-off-by: Paul Merlin <paul@gradle.com>
Signed-off-by: Paul Merlin <paul@gradle.com>
Signed-off-by: Paul Merlin <paul@gradle.com>
by extracting explaining functions

Signed-off-by: Paul Merlin <paul@gradle.com>
Signed-off-by: Paul Merlin <paul@gradle.com>
Signed-off-by: Paul Merlin <paul@gradle.com>
and refine the 'runtime failure from current script' use case when
they are disabled, the default

Signed-off-by: Paul Merlin <paul@gradle.com>
@eskatos
Copy link
Member Author

eskatos commented Sep 23, 2018

@oehme, this should address some of your feedback

keep errors and fatalities to TAPI failures

Signed-off-by: Paul Merlin <paul@gradle.com>
Signed-off-by: Paul Merlin <paul@gradle.com>
@eskatos eskatos merged commit 299f557 into develop Sep 24, 2018
@eskatos eskatos deleted the eskatos/ide-resolver/better branch September 24, 2018 16:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants