Skip to content

Error parsing triggers: Cannot find module 'kotlinx-atomicfu' with 0.25.3 #529

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
SUPERCILEX opened this issue Sep 4, 2018 · 12 comments
Closed
Assignees
Labels

Comments

@SUPERCILEX
Copy link
Contributor

@elizarov Could you please add integration tests? It seems like the atomicfu stuff keeps breaking every other release.

SUPERCILEX added a commit to SUPERCILEX/Robot-Scouter that referenced this issue Sep 4, 2018
@elizarov
Copy link
Contributor

elizarov commented Sep 4, 2018

What kind of integration tests you are looking and what atomicfu stuff keeps breaking? Can you, please, be more specific. Are you referring to #510 here?

@SUPERCILEX
Copy link
Contributor Author

These: #396, #370

And the current version broke it again.

@SUPERCILEX
Copy link
Contributor Author

I could give you my project, but you'll have to setup the Firebase CLI.

Run ./gradlew setup && ./gradlew deployServer --only functions:logUserData

@elizarov
Copy link
Contributor

elizarov commented Sep 4, 2018

Can you, please, include some relevant pieces of your build log to help me pinpoint the problem? It is really strange, since 0.25.3 coroutines artifacts do not depends on atomicfu both for JVM and JS versions. This dependency is now fully erased and is an internal implementation detail only.

@elizarov
Copy link
Contributor

elizarov commented Sep 4, 2018

I've found where the extra dependency on atomicfu-common is leaking (and can fix it), but I cannot reproduce your project on my integration tests -- it seems to be deployed to all the appropriate repos.

@SUPERCILEX
Copy link
Contributor Author

SUPERCILEX commented Sep 4, 2018

@elizarov Awesome! And don't worry about my project specifically, I'd just like to see a general "Does this work at runtime" integration test for JS. My project will compile, but it will fail when running firebase deploy and I'm not sure what magic they do to check that stuff.

@elizarov
Copy link
Contributor

elizarov commented Sep 4, 2018

I have no idea either, nor I know how to write a test to check. All I can say is that I see all the latest versions of kotlinx-atomicfu deployed to NPMJS, but I also see that NPSJS package.json for kotlinx-coroutines-core does not declare kotlinx-atomicfu as its dependency anymore. You check it here: https://www.npmjs.com/package/kotlinx-coroutines-core

@SUPERCILEX
Copy link
Contributor Author

Yeah, that's exactly the problem: because it isn't declared, the Firebase thing freaks out. As long as you fix the leak, it should work. 🤷‍♂️

@SUPERCILEX
Copy link
Contributor Author

BTW, for my project, did you say firebase deploy --only functions:logUserData succeeds?

@elizarov
Copy link
Contributor

elizarov commented Sep 4, 2018

Something went wrong with npm upload in this release. Wrong aftefact got uploaded. For JS use 0.25.0 for now, there are no changes. Will fix.

@SUPERCILEX
Copy link
Contributor Author

SGTM 👍

@elizarov elizarov self-assigned this Sep 5, 2018
@elizarov elizarov added the bug label Sep 5, 2018
qwwdfsad pushed a commit that referenced this issue Sep 6, 2018
@LouisCAD
Copy link
Contributor

LouisCAD commented Sep 7, 2018

The title should specify that it only affects JS.

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

No branches or pull requests

3 participants