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
Julia + VSCode produces import error from ModelingToolkit #1444
Comments
@chriselrod I thought you said versioning should prevent this? |
It should. @koustav-pal, could you give me your ArrayInterface.jl and LoopVectorization.jl versions? |
Hi @chriselrod , For LoopVectorization version is
However, ArrayInterface version is v3.2.2. Edited because the package had not been imported from the registry
Running Julia conda build
Full conda environment listed below
|
Could you function Loop(ls::LoopSet, ex::Expr, sym::Symbol, ::Type{R}) where {R<:AbstractRange}
f = ArrayInterface.known_first(R)
s = ArrayInterface.known_step(R)
l = ArrayInterface.known_last(R)
ub = upper_bound(R)
Loop(ls, ex, sym, f, s, l, ub)
end I want to know the type of function Loop(ls::LoopSet, ex::Expr, sym::Symbol, ::Type{R}) where {R<:AbstractRange}
f = ArrayInterface.known_first(R)
s = ArrayInterface.known_step(R)
l = ArrayInterface.known_last(R)
ub = upper_bound(R)
@show f, s, l
@show Main.@which ArrayInterface.known_first(R)
@show Main.@which ArrayInterface.known_step(R)
@show Main.@which ArrayInterface.known_last(R)
Loop(ls, ex, sym, f, s, l, ub)
end Then run the code to get this error again, and show me what it says. Also, the package versions of the packages that show up in the |
I'm fairly certain that if other versions of |
If it really is a Pkg bug, it'd be great if we can get a reproducible example of it choosing incompatible versions so that we can file an issue. I'd also like to see the array types, because maybe they're defined in some other package that saw |
Hi @chriselrod , I did a few tests.
So, I guess whatever error occured, it occurred before Do you think we can close this issue for now? |
No one can reproduce it (AFAIK?), but it keeps coming up. |
Experienced this on v8.5.2 too. I updated everything, tried adding LoopVectorization explicitly and precompiling it on its own. Nothing worked. |
This should be solved by now? All of the ArrayInterface stuff received its bump? Can you try |
Seems to work, or at least I can not reproduce the issue anymore. |
Seems safe to close it now? |
Hi,
I’m trying to get started with ModelingToolKit. I’m using Julia through a jupyter notebook in VSCode. The environment is different from the default environment used by the command line julia executable. Julia itself is installed under a conda environment.
I’m running into an import error from ModelingToolKit
ModelingToolkit was installed using
Pkg.add("ModelingToolkit", preserve = PRESERVE_ALL)
which should preserve all dependencies from ModelingToolkit.How can I rectify this? Should I just set the JuliaEnvironmentpath to the
manifest.toml
used by the commandline julia executable?The text was updated successfully, but these errors were encountered: