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

Method Overwriting Conflict #34

Closed
stefanbringuier opened this issue Apr 18, 2024 · 3 comments
Closed

Method Overwriting Conflict #34

stefanbringuier opened this issue Apr 18, 2024 · 3 comments

Comments

@stefanbringuier
Copy link

Seeing a warning and an error in my notebooks that use PlutoExtras. Seems to prevent precompiling which may leading to potential issues in notebook functionality?

WARNING: Method definition @bind(LineNumberNode, Module, Any, Any) in module PlutoExtras at /home/stefanbringuier/.julia/packages/PlutoExtras/WGpIT/src/editable.jl:8 overwritten at /home/stefanbringuier/.julia/packages/PlutoExtras/WGpIT/src/stringonenter.jl:8.
ERROR: Method overwriting is not permitted during Module precompilation. Use __precompile__(false) to opt-out of precompilation.

Environment

  • Julia Version: 1.10.2
  • OS: Ubuntu 22.04.4 LTS
  • Pluto.jl version: 0.19.40
  • PlutoExtras version: 0.7.8
@disberd
Copy link
Owner

disberd commented Apr 19, 2024

Yeah I have always disliked the automatic insertion of @bind definition in the notebook file. I'll try to see if it's feasible to release a patch version removing all those definition and maybe try to see if it's possible to add an option in Pluto to opt out of this.

I realized after writing the comment that the issue you are facing should be fixed since PlutExtras v0.7.9 where I stopped using notebooks directly as source code of the package.

@stefanbringuier Is there a specific reason you are still using 0.7.8 and/or can you try with the latest version?

@stefanbringuier
Copy link
Author

stefanbringuier commented Apr 19, 2024

Is there a specific reason you are still using 0.7.8 and/or can you try with the latest version?

No, it is just part of my template notebook I use. Let me try latest version.

@stefanbringuier
Copy link
Author

Bumping version solves issue. Thanks.

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