Skip to content

kotlinx-datetime api can not Recognized by idea in wasm environment #462

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

Closed
ericCHensssssssss opened this issue Nov 25, 2024 · 7 comments
Closed

Comments

@ericCHensssssssss
Copy link

i develop wasm project,If i import kotlinx.datetime. api in idea develop Environment. idea tells me that the api does not exist(it worked well at jvm environment)

@ericCHensssssssss
Copy link
Author


idea

@dkhalanskyjb
Copy link
Collaborator

It's probably because Wasm/WASI support was not published yet.

@ericCHensssssssss
Copy link
Author

I build on my local machine . and can find the date for wasm/WASI is success import by gradle

@dkhalanskyjb
Copy link
Collaborator

The commit 30ab530, which introduces Wasm/WASI support to this library, was not in the version 0.6.1, and we didn't publish any version after that. Are you building kotlinx-datetime directly from master?

In any case, if the code successfully builds, but IDEA reports it as red, please report it to https://youtrack.jetbrains.com/, the KTIJ subproject.

@ericCHensssssssss
Copy link
Author

yes . i build kotlinx-datetime directly from master.(The latest codes pulled) , but IDEA still reports it as red.

@ericCHensssssssss
Copy link
Author

And when will you publish the version support Wasm/WASI

@dkhalanskyjb
Copy link
Collaborator

Since the code compiles, but the IDE incorrectly says that there are errors in the code, this means there is a problem with the IDE, so it needs to be reported to https://youtrack.jetbrains.com/newissue?project=KTIJ

@dkhalanskyjb dkhalanskyjb closed this as not planned Won't fix, can't repro, duplicate, stale Jan 8, 2025
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