# Why using JLD2 leads to LoadError: too many parameters for type in VS code?

**URL:** <https://discourse.julialang.org/t/why-using-jld2-leads-to-loaderror-too-many-parameters-for-type-in-vs-code/71169>\
**Category:** General Usage\
**Tags:** question\
**Created:** [November 8, 2021, 7:16pm UTC](https://discourse.julialang.org/t/why-using-jld2-leads-to-loaderror-too-many-parameters-for-type-in-vs-code/71169 "2021-11-08T19:16:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amro](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@Amro](https://discourse.julialang.org/u/Amro)\
**Post date:** [November 8, 2021, 7:16pm UTC](https://discourse.julialang.org/t/why-using-jld2-leads-to-loaderror-too-many-parameters-for-type-in-vs-code/71169/1 "2021-11-08T19:16:55Z")

</div>

@simonster  
@lhupe  
@staticfloat  
@ararslan  
@tim.holy  
@giordano  
@jeff.bezanson  
@gdkrmr  
@JonasIsensee  
I am working on VS code with julia v1.4.3 extension. When I call the `using JLD2`, I have the bellow error. However, I dont have this error when using julia from its own environment tool. Any idea how to solve it?

```julia
[Info: Precompiling JLD2 [033835bb-8acc-5ee8-8aae-3f567f8a3819]
ERROR: LoadError: too many parameters for type
Stacktrace:

```

when I call `using JLD2` again, I got the following error:

```julia
ERROR: LoadError: Failed to precompile JLD2 [033835bb-8acc-5ee8-8aae-3f567f8a3819] to C:\Users\amroa\.julia\compiled\v1.6\JLD2\jl_17CC.tmp.
Stacktrace:

```

---

<div class="post-metadata">

**Author:** ![JonasIsensee](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jonasisensee/32/4704_2.png) [@JonasIsensee](https://discourse.julialang.org/u/JonasIsensee)\
**Post date:** [November 9, 2021, 2:24pm UTC](https://discourse.julialang.org/t/why-using-jld2-leads-to-loaderror-too-many-parameters-for-type-in-vs-code/71169/2 "2021-11-09T14:24:05Z")

</div>

Hi @Amro,

there’s no need to tag everyone here.

Very likely, there is a problem with the different software versions involved.  
Can you check the environment that VSCode uses for your packages?

---

<div class="post-metadata">

**Author:** ![Amro](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@Amro](https://discourse.julialang.org/u/Amro)\
**Post date:** [November 9, 2021, 2:27pm UTC](https://discourse.julialang.org/t/why-using-jld2-leads-to-loaderror-too-many-parameters-for-type-in-vs-code/71169/3 "2021-11-09T14:27:19Z")

</div>

I am sorry if tagging was improper, I just thought it would be easier to reach the professional guys in this matter.  
Could you please tell me where can I check the environment?

---

<div class="post-metadata">

**Author:** ![JonasIsensee](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jonasisensee/32/4704_2.png) [@JonasIsensee](https://discourse.julialang.org/u/JonasIsensee)\
**Post date:** [November 9, 2021, 2:32pm UTC](https://discourse.julialang.org/t/why-using-jld2-leads-to-loaderror-too-many-parameters-for-type-in-vs-code/71169/4 "2021-11-09T14:32:17Z")

</div>

Inside VSCode, open a REPL and type  
`] status` and paste the output here.

for good measure you can also just try and update the packages with  
`] up` to see if that already solves the issue

---

<div class="post-metadata">

**Author:** ![Amro](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@Amro](https://discourse.julialang.org/u/Amro)\
**Post date:** [November 9, 2021, 2:43pm UTC](https://discourse.julialang.org/t/why-using-jld2-leads-to-loaderror-too-many-parameters-for-type-in-vs-code/71169/5 "2021-11-09T14:43:26Z")

</div>

I have tried `] up` and it works properly.  
Thank you very much and sorry again for any inconvenience.
