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

Compile error: no enclosing instance of type 'XXX' is in scope #670

Open
yueliangwen opened this issue Feb 13, 2025 · 3 comments · May be fixed by #671
Open

Compile error: no enclosing instance of type 'XXX' is in scope #670

yueliangwen opened this issue Feb 13, 2025 · 3 comments · May be fixed by #671

Comments

@yueliangwen
Copy link

yueliangwen commented Feb 13, 2025

Describe the bug
There is a "no enclosing instance of type 'XXX' is in scope" error when using manifold-ext.
I upload a full problem example. The screenshot code causes the compile error.

To Reproduce
Steps to reproduce the behavior:

  1. Exec ./gradlew clean build, you will see the compile error.

Screenshots

Image

Desktop (please complete the following information):

  • Manifold version: 2024.1.55

scope.tar.gz

@EotT123
Copy link
Contributor

EotT123 commented Feb 13, 2025

Probably caused by this PR. If you change the method reference to a lambda expression (i.e. Completable.defer(() -> super.rxStop());), it works. Running with manifold 2024.1.54 also works.

@EotT123 EotT123 linked a pull request Feb 13, 2025 that will close this issue
@EotT123
Copy link
Contributor

EotT123 commented Feb 13, 2025

I've submitted a PR that addresses the issue. In the meantime, you can use one of the workarounds mentioned above until the fix is released.

@yueliangwen
Copy link
Author

yueliangwen commented Feb 14, 2025

Probably caused by this PR. If you change the method reference to a lambda expression (i.e. Completable.defer(() -> super.rxStop());), it works. Running with manifold 2024.1.54 also works.

Yeah, you're right. Because the 2024.1.55 version also caused the conflict problem with the guice lib, I rolled back to the 2025.1.54 version.

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

Successfully merging a pull request may close this issue.

2 participants