resolver

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Introduce resolver request correlation id

And make it possible to correlate events from the Kotlin DSL resolver

log with the daemon log.

    • -12
    • +23
    ./KotlinBuildScriptDependenciesResolver.kt
  1. … 1 more file in changeset.
Replace exceptions by strings in TAPI model

In order to avoid serialization issues observed on Java 11.

Resolves #1308

  1. … 3 more files in changeset.
Move kotlin-dsl in a sub directory

    • -219
    • +0
    ./KotlinBuildScriptDependenciesResolver.kt
    • -96
    • +0
    ./KotlinBuildScriptModelRepository.kt
    • -192
    • +0
    ./KotlinBuildScriptModelRequest.kt
  1. … 1569 more files in changeset.
Serve the right classpath for scripts in nested projects

By doing a 2nd tooling API query against a potential nested project

whenever the given script cannot be determined to belong to the

imported project.

    • -26
    • +0
    ./KotlinBuildScriptDependenciesResolver.kt
  1. … 5 more files in changeset.
Move project root discovery logic lower in the stack

So it can be tested separately from the resolver.

    • -13
    • +1
    ./KotlinBuildScriptDependenciesResolver.kt
  1. … 2 more files in changeset.
Always resolve the script classpath against the imported project dir

To account for subprojects outside the root project directory.

This commit temporarily breaks the support for nested projects like

the ones found in `kotlin-dsl/samples` which shall be restored in a

subsequent commit.

Resolves #1231

    • -3
    • +16
    ./KotlinBuildScriptDependenciesResolver.kt
  1. … 7 more files in changeset.
Merge pull request #1281 from gradle/eskatos/resolver-logger/cleanup

Cleanup IDE resolver logs older than 7 days

Make the resolver thread a daemon thread

And fix the name of the class.

  1. … 3 more files in changeset.
Fix typo in kdoc

Let resolver log cancelled requests

    • -1
    • +5
    ./KotlinBuildScriptDependenciesResolver.kt
Remove unused resolver event types

Trigger IDE resolver log files cleanup once a day

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

Cleanup IDE resolver logs older than 7 days

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

Prefer %LOCALAPPDATA% on Windows if available for IDE resolver logs

and prefer "$HOME/AppData/Local" over "$HOME/Application Data" if not

this moves log files from the roaming dir to the local dir

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

Let script dependencies resolver prioritise requests by recency

And signal the cancellation of superseded requests by responding with

`null`.

    • -0
    • +101
    ./ConcurrentGroupingQueue.kt
    • -40
    • +6
    ./KotlinBuildScriptDependenciesResolver.kt
    • -0
    • +96
    ./KotlinBuildScriptModelRepository.kt
  1. … 6 more files in changeset.
Polish `KotlinBuildScriptDependenciesResolver`

- join internal constructor with field declaration

- delegate to primary constructor

- explicit declare non-obvious return type

    • -12
    • +8
    ./KotlinBuildScriptDependenciesResolver.kt
Polish `CompactTree`

Fix script editor dependency resolution on tapi client <4.9

This reverts commit 88bbca6a67c049e8f3441bdac7ad909cb18a9346

and re-polish that function.

IDE resolver distinguishes TAPI failures and early build failures

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

    • -0
    • +12
    ./KotlinBuildScriptDependenciesResolver.kt
  1. … 1 more file in changeset.
Put location aware hints editors behind an internal gradle property

and refine the 'runtime failure from current script' use case when

they are disabled, the default

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

  1. … 4 more files in changeset.
Fix mapping to IDE editor line number

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

    • -1
    • +1
    ./KotlinBuildScriptDependenciesResolver.kt
  1. … 1 more file in changeset.
Disable editor syntax highlighting on unrecoverable failure

and report an error if able to reuse previous dependencies

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

    • -6
    • +6
    ./KotlinBuildScriptDependenciesResolver.kt
Let editor messages be actionable

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

Move editor messages out of tooling-models

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

    • -1
    • +0
    ./KotlinBuildScriptDependenciesResolver.kt
  1. … 4 more files in changeset.
Report line error on runtime failure in currently edited script

if location aware

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

    • -6
    • +20
    ./KotlinBuildScriptDependenciesResolver.kt
  1. … 3 more files in changeset.
Migrate off of experimental coroutines API

    • -8
    • +5
    ./KotlinBuildScriptDependenciesResolver.kt
Move warning calculation to the tooling model builder

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

    • -11
    • +15
    ./KotlinBuildScriptDependenciesResolver.kt
  1. … 4 more files in changeset.
Simplify warning message

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

    • -4
    • +2
    ./KotlinBuildScriptDependenciesResolver.kt
Polish `fetchKotlinBuildScriptModelFor`

- Favour expression body over block body

Add coverage for KotlinBuildScriptDependenciesResolver

by making it testable

no change in behavior

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

    • -15
    • +33
    ./KotlinBuildScriptDependenciesResolver.kt
  1. … 1 more file in changeset.