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

Error in Test extension #53

Closed
juliohm opened this issue Oct 9, 2024 · 4 comments
Closed

Error in Test extension #53

juliohm opened this issue Oct 9, 2024 · 4 comments

Comments

@juliohm
Copy link

juliohm commented Oct 9, 2024

Appreciate if someone can work on a hotfix:

Error: Error during loading of extension InverseFunctionsTestExt of InverseFunctions, use `Base.retry_load_extensions()` to retry.
│   exception =1-element ExceptionStack:
│    ArgumentError: Package InverseFunctionsTestExt [05f3ecc3-30a3-5b98-a414-5bae29b80c93] is required but does not seem to be installed:- Run `Pkg.instantiate()` to install all recorded dependencies.

I am on Julia v1.11

@devmotion
Copy link
Member

devmotion commented Oct 9, 2024

This is most likely the same issue as discussed in #52 (comment) and #51 (comment). That is, most likely there's a problem with your dependency stack, not with InverseFunctions.

In particular, I don't think there's a general issue with InverseFunctions since it can't be reproduced in a clean environment:

julia> using InverseFunctions
[ Info: Precompiling InverseFunctionsDatesExt [33677a4c-2dac-51eb-93f3-7ff1c38acef2]

julia> using Test
[ Info: Precompiling InverseFunctionsTestExt [05f3ecc3-30a3-5b98-a414-5bae29b80c93]

julia>

@devmotion
Copy link
Member

But it's difficult to tell exactly what your problem is without additional information about the environment (Manifest file) where you encountered the error message.

@juliohm
Copy link
Author

juliohm commented Oct 9, 2024

I can reproduce the issue in the main branch of GeoStatsFunctions.jl:

] activate . # activate package env
using GeoStatsFunctions # load package
] activate test # activate test folder of package
using Test # triggers error

@devmotion
Copy link
Member

I can reproduce it (I had to run instantiate as well in both environments). AFAICT the problem is that you switch between different projects and that test/Project.toml (and hence also the corresponding Manifest file) does not include GeoStatsFunctions. This seems to be problematic for Pkg. Merging both projects (similar to what Pkg.test does which does not show any errors in CI) fixes this issue:

julia> ] activate test

julia> ] dev .

julia> using GeoStatsFunctions, Test

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