Skip to content

Julia + VSCode produces import error from ModelingToolkit #1444

@koustav-pal

Description

@koustav-pal

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

ERROR: LoadError: MethodError: no method matching static_loop(::Symbol, ::Int64, ::Int64, ::Missing)
Closest candidates are:
  static_loop(::Symbol, ::Int64, ::Int64, ::Int64) at ~/anaconda3/envs/julia-1.7.1/share/julia/packages/LoopVectorization/ndGJi/src/reconstruct_loopset.jl:64

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions