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.

Stops working when upgrading above 0.28.3

See original GitHub issue

Describe the bug

Hi!

Firstly, great work on the project!

We have been using the YAML parser for a bit of time now and it’s been working great, but now we want to upgrade our dependencies and have a problem when trying to upgrade above 0.28.3.

On 0.28.3 it works as usual, but any version number above that we are getting errors.

We are experiencing the following error during compilation: Unresolved reference: Yaml

We are using a kotlin and maven project. And are getting errors when trying to import ‘com.charleskorn.kaml.Yaml’ as well.

This is with no change in our code, only version number upgrade.

Let me know if there is need for more information.

Reproduction repo

No response

Steps to reproduce

Kotlin and maven project. Include This in your pom <dependency> <groupId>com.charleskorn.kaml</groupId> <artifactId>kaml</artifactId> <version>0.29.0</version> </dependency>

Try to import import com.charleskorn.kaml.Yaml

Create a method and use a YAML.xxx method, like Yaml.default.decodeFromString(“testing”)

This gives us import errors and unresolved reference errors.

Expected behaviour

Expect it to find the project and import correctly.

Actual behaviour

Error during import and Unresolved Reference during compilation. No error in pole file and jar files are downloaded during compilation.

Version information

anything above 0.28.3 failes. 0.28.3 works.

Any other information

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
charleskorncommented, May 6, 2022

0.29.0 was the first version to be published using Kotlin’s multiplatform project format.

I’ve never used Maven with a multiplatform library, so I’m not sure if Kaml would need to be referenced in a slightly different way to support this. For example, you may need to change <artifactId>kaml</artifactId> to <artifactId>kaml-jvm</artifactId>.

(Gradle automatically picks up the right variant of the library based on your target platform, which is why this just works for Gradle users.)

0reactions
stale[bot]commented, Aug 11, 2022

This issue has been automatically closed because it has not had any recent activity.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Something went wrong installing the "sharp" module ...
It looks like I can install sharp with 'npm i', but it shows errors during 'gatsby develop'. npm i > sharp@0.27.2 install ...
Read more >
massive performance issues since 22.04 upgrade
Hi, After upgrading to 22.04 i had to fight with massive performance ... I had no CPU usage spike over say 70% on...
Read more >
1758588 – dnf system-upgrade reboot fails due to depresolv ...
Description of problem: dnf system-upgrade reboot does not come to the same depresolv conclusion than dnf system-upgrade download.
Read more >
Can't install Sharp - node.js - Stack Overflow
I have the same project running on another machine, and there, the install works flawlessly. But on my other machine (both run Linux...
Read more >
New-Lenovo-Legion-T5-26AMR5-experiencing-OS-issues ...
Re:New Lenovo Legion T5-26AMR5 experiencing OS issues/crashes - HELP! Hi. I aint no kinda expert. I had to look up error: 0xC0000022. https:// ......
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