# Development package dependencies in VSCodium

**URL:** <https://discourse.julialang.org/t/development-package-dependencies-in-vscodium/51181>\
**Category:** VS Code\
**Tags:** question\
**Created:** [December 3, 2020, 11:15am UTC](https://discourse.julialang.org/t/development-package-dependencies-in-vscodium/51181 "2020-12-03T11:15:42Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![GerhardHippmann](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gerhardhippmann/32/19931_2.png) [@GerhardHippmann](https://discourse.julialang.org/u/GerhardHippmann)\
**Post date:** [December 3, 2020, 11:15am UTC](https://discourse.julialang.org/t/development-package-dependencies-in-vscodium/51181/1 "2020-12-03T11:15:42Z")

</div>

I am working on a development package Modia3D which depends on another development package ModiaMath:

```julia
(@v1.5) pkg> status
Status `~/.julia/environments/v1.5/Project.toml`
...
  [ee78f7c6] Makie v0.11.1
  [eff96d63] Measurements v2.3.0
  [07f2c1e0] Modia3D v0.4.1-dev `~/modia/dev/Modia3D`
  [67ccffd1] ModiaMath v0.6.0-dev `~/modia/dev/ModiaMath`
  [91a5bcdd] Plots v1.9.1
...

```

In the Julia REPL I can execute code using `include` without problems. But when I start VSCodium with workspace ~/modia/dev/Modia3D, open the same source code file and execute “Run without Debugging”, I get the following error:

```julia
Importing Modia3D Version 0.4.2-dev (2020-11-03)
ERROR: LoadError: ArgumentError: Package ModiaMath [67ccffd1-116d-535b-ad39-76a8fd0cbf71] is required but does not seem to be installed:
 - Run `Pkg.instantiate()` to install all recorded dependencies.

```

What is the cause of this error and how can I fix it? VSCodium version is 1.51.1 and Julia language support version is 1.0.10.

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [December 3, 2020, 11:22am UTC](https://discourse.julialang.org/t/development-package-dependencies-in-vscodium/51181/2 "2020-12-03T11:22:33Z")

</div>

Did you check what environment you are in? We might automatically activate your package’s env if that’s the only one in the workspace.

---

<div class="post-metadata">

**Author:** ![GerhardHippmann](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gerhardhippmann/32/19931_2.png) [@GerhardHippmann](https://discourse.julialang.org/u/GerhardHippmann)\
**Post date:** [December 3, 2020, 11:33am UTC](https://discourse.julialang.org/t/development-package-dependencies-in-vscodium/51181/3 "2020-12-03T11:33:32Z")

</div>

The status bar says “julia env: Modia3D”. Is there a way to register the ModiaMath dependency in it?

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [December 3, 2020, 11:34am UTC](https://discourse.julialang.org/t/development-package-dependencies-in-vscodium/51181/4 "2020-12-03T11:34:27Z")

</div>

Just click on it and select `@v1.5`. I actually meant the REPL environment though, which, unfortunately, is a separate issue.

---

<div class="post-metadata">

**Author:** ![GerhardHippmann](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gerhardhippmann/32/19931_2.png) [@GerhardHippmann](https://discourse.julialang.org/u/GerhardHippmann)\
**Post date:** [December 3, 2020, 11:57am UTC](https://discourse.julialang.org/t/development-package-dependencies-in-vscodium/51181/5 "2020-12-03T11:57:55Z")

</div>

Thanks, this solved the dependency problem. 🙂 But now an env defined in .julia/config/startup.jl is not avialable:

```julia
ERROR: LoadError: InitError: KeyError: key "MODIA_PLOT_PACKAGE" not found

```

Isn’t the startup file executed for env v1.5?

---

<div class="post-metadata">

**Author:** ![GerhardHippmann](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gerhardhippmann/32/19931_2.png) [@GerhardHippmann](https://discourse.julialang.org/u/GerhardHippmann)\
**Post date:** [December 4, 2020, 6:22pm UTC](https://discourse.julialang.org/t/development-package-dependencies-in-vscodium/51181/6 "2020-12-04T18:22:28Z")

</div>

I am sure that this can be fixed easily: How can I enable execution of .julia/config/startup.jl when using the standard Julia environment in VSCodium?

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [December 4, 2020, 6:45pm UTC](https://discourse.julialang.org/t/development-package-dependencies-in-vscodium/51181/7 "2020-12-04T18:45:38Z")

</div>

Your `startup.jl` should always be loaded by default, _unless_ you’re using the `Debug File in New Process` command (in which case it’ll be loaded after [https://github.com/julia-vscode/julia-vscode/pull/1806](https://github.com/julia-vscode/julia-vscode/pull/1806) is merged).

---

<div class="post-metadata">

**Author:** ![GerhardHippmann](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gerhardhippmann/32/19931_2.png) [@GerhardHippmann](https://discourse.julialang.org/u/GerhardHippmann)\
**Post date:** [December 7, 2020, 10:59am UTC](https://discourse.julialang.org/t/development-package-dependencies-in-vscodium/51181/8 "2020-12-07T10:59:24Z")

</div>

Sorry, I am not a VSCode expert. What I do is Run → Run without Debugging via the GUI. Does this invoke the `Debug File in New Process` command? If so, how can I work around it?

---

<div class="post-metadata">

**Author:** ![GerhardHippmann](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gerhardhippmann/32/19931_2.png) [@GerhardHippmann](https://discourse.julialang.org/u/GerhardHippmann)\
**Post date:** [December 7, 2020, 11:58am UTC](https://discourse.julialang.org/t/development-package-dependencies-in-vscodium/51181/9 "2020-12-07T11:58:46Z")

</div>

After removing `--startup-file=no` in scripts/debugger/launch\_wrapper.jl:15 it works as expected. Thanks for your help! 🙂

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [December 7, 2020, 12:58pm UTC](https://discourse.julialang.org/t/development-package-dependencies-in-vscodium/51181/10 "2020-12-07T12:58:37Z")

</div>

> [@GerhardHippmann](#):
>
> What I do is Run → Run without Debugging via the GUI. Does this invoke the `Debug File in New Process` command?

It doesn’t invoke that particular command, but does in fact start a new process for your code. I’d recommend using the `Julia: Execute File` command instead, which uses the persistent REPL session for evaluation.
