question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if youā€™re still stuck at the end, weā€™re happy to hop on a call to see how we can help out.

Some problems following Getting Started

See original GitHub issue

Hi there! First of all, excited to try out anything that lets me do gamedev in Kotlin šŸ˜„

However, I ran into a number of hitches in the getting started:

If you navigate directly to Getting Started from the README, it shows documentation for a prerelease version, which is a bit confusing. You can click on the link under the ā€œRelease READMEā€ heading, but it didnā€™t occur to me to do that.

The documented build.gradle.kts includes this bit:

    mavenCentral {
        content {
            excludeModule("org.jetbrains.kotlinx", "kotlinx-coroutines-core-native")
            excludeModule("org.jetbrains.kotlinx", "atomicfu-native")
        }
    }

which seems to be invalid Gradle, at least in 5.x and 6.x. I think this works instead:

    mavenCentral().mavenContent {
        excludeModule("org.jetbrains.kotlinx", "kotlinx-coroutines-core-native")
        excludeModule("org.jetbrains.kotlinx", "atomicfu-native")
    }

The example uses an older version of Kotlin, 1.3.61, instead of 1.3.72, but I guess this is fine; I left it on 1.3.61.

The source sets seem not to work with IntelliJ; Iā€™d expect after a refresh for src/main/kotlin to be marked as a module, but itā€™s not.

When I perform a Gradle Sync, I get the following error:

Warning:<i><b>root project 'GodotKotlinTestGame': Unable to build Kotlin project configuration</b>
Details: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':kotlinCompilerPluginClasspath'.
Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve org.godotengine.kotlin:annotations-jvm:0.1.0-3.2.
Required by:
    project : > org.godotengine.kotlin:kotlin-compiler-plugin:0.1.0-3.2 > org.godotengine.kotlin:godot-annotation-processor:0.1.0-3.2
Caused by: org.gradle.internal.component.AmbiguousConfigurationSelectionException: Cannot choose between the following variants of org.godotengine.kotlin:annotations-jvm:0.1.0-3.2:
  - jvm-api
  - jvm-runtime
  - metadata-api
All of them match the consumer attributes:
  - Variant 'jvm-api' capability org.godotengine.kotlin:annotations-jvm:0.1.0-3.2:
      - Unmatched attributes:
          - Found org.gradle.libraryelements 'jar' but wasn't required.
          - Found org.gradle.status 'release' but wasn't required.
          - Found org.gradle.usage 'java-api' but wasn't required.
          - Found org.jetbrains.kotlin.platform.type 'jvm' but wasn't required.
  - Variant 'jvm-runtime' capability org.godotengine.kotlin:annotations-jvm:0.1.0-3.2:
      - Unmatched attributes:
          - Found org.gradle.libraryelements 'jar' but wasn't required.
          - Found org.gradle.status 'release' but wasn't required.
          - Found org.gradle.usage 'java-runtime' but wasn't required.
          - Found org.jetbrains.kotlin.platform.type 'jvm' but wasn't required.
  - Variant 'metadata-api' capability org.godotengine.kotlin:annotations-jvm:0.1.0-3.2:
      - Unmatched attributes:
          - Found org.gradle.status 'release' but wasn't required.
          - Found org.gradle.usage 'kotlin-api' but wasn't required.
          - Found org.jetbrains.kotlin.platform.type 'common' but wasn't required.</i>

Using Gradle 6.3 and IntelliJ 2019.3.4.

Thanks!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
chippmanncommented, May 6, 2020

@nanodeath Yes but not without hassle. Personally i would just wait until we finished the rework as it shouldnā€™t take that long anymore until we have a beta ready. But if you really want to: You should be able to build the latest master branch. All you should have to do is checkout the project, init and update the submodules and execute gradlew build (optionally with your desired platform). It automatically should put the outputs into you mavenLocal. It might be possible that you still get IDE dependency resolution errors after that (through commandline it should work then). Some users had this problem. Then you can write those here and I (hopefully) provide you with a fix. (We managed to fix the resolution issues for those users). But note: if you want to try it out now, you are stuck with the gradle and kotlin version defined in master (i believe 1.3.61 and 6.0.1) and your kotlin plugin for the IDE has to be at this version as well! Otherwise it will not work. All of that said, I still think you probably should wait until we are ready for a beta with our current rework.

0reactions
chippmanncommented, May 12, 2020

@nanodeath Ok for you to close this issue? Btw: If you are interested in the progress, just frequently look into https://github.com/utopia-rise/godot-kotlin/tree/master-merge and the PR section šŸ˜ƒ

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Overcome the Difficulties of Getting Started - Due
One of the biggest issues many of us face with our businesses is getting started. Here's how to overcome that difficulty.
Read more >
Why Getting Started Is So Difficult for Adults with ADHD
Getting started on tasks is difficult for adults with ADHD and executive dysfunction. Learn how and why task initiation is impaired.
Read more >
Computer Basics: Basic Troubleshooting Techniques
Simple solutions to common problems Ā· Problem: Power button will not start computer Ā· Problem: An application is running slowly Ā· Problem: An...
Read more >
35 problem-solving techniques and methods for ... - SessionLab
Solving challenges is easier with the right methods. Create innovative solutions and solve tough problems fast with these problem-solvingĀ ...
Read more >
Misunderstood Minds . Writing Difficulties - PBS
Attention Problem Ā· difficulty getting started on writing assignments Ā· easy distractibility during writing tasks Ā· mental fatigue or tiredness while writingĀ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found