Skip to content
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

Unresolved references for standard library dependencies (mostly fixed) #610

Open
Gouvernathor opened this issue Jan 18, 2025 · 2 comments
Open

Comments

@Gouvernathor
Copy link

When writing mapOf<Any, Any>(), mapOf is underlined with Unresolved reference: mapOf kotlin(UNRESOLVED_REFERENCE).
Despite mapOf being in the standard imports of the standard library. Same with sequence and listOf.

I have kotlinc version 2.1.0 and java version 23.0.1.

@Decodetalkers
Copy link
Contributor

Decodetalkers commented Jan 18, 2025

I think I have solve this problem, https://github.com/mykotlinlab/kotlin-language-server, I made a fork myself, because the first fork is also inactive

This problem is because of the bug in old exposed, it existed under version 0.40, and kts use 0.33. And if kts cannot insert data to the database, it will throw away all the depencies. And, yes, when kts insert the data to database, it will always throw the error, and made the editor all red. now it is solved in my fork.

Maybe you can take a try to my fork

@Gouvernathor Gouvernathor changed the title Unresolved references for standard library dependencies Unresolved references for standard library dependencies (mostly fixed) Jan 19, 2025
@Gouvernathor
Copy link
Author

Following recent commits, mapOf now seems to work, but imports from kotlin.test all fail. Maybe it's unrelated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants