# Regarding missing references in VSCode

**URL:** https://discourse.julialang.org/t/regarding-missing-references-in-vscode/105197
**Category:** VS Code
**Created:** [October 19, 2023, 7:01pm UTC](https://discourse.julialang.org/t/regarding-missing-references-in-vscode/105197 "2023-10-19T19:01:42Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![LeoK987](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/leok987/32/4880_2.png) [@LeoK987](https://discourse.julialang.org/u/LeoK987)
#### Post date: [October 19, 2023, 7:01pm UTC](https://discourse.julialang.org/t/regarding-missing-references-in-vscode/105197/1 "2023-10-19T19:01:42Z")

</div>

I found the latest extension working well with symbols in packages and modules. But it appears it doesn’t work with includes. Symbols are marked missing both in included and including sides. Not sure if it is what it is, or there are some tricks I need to know.

---

<div class="post-metadata">

### Author: ![nsajko](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nsajko/32/221187_2.png) [@nsajko](https://discourse.julialang.org/u/nsajko)
#### Post date: [October 19, 2023, 9:14pm UTC](https://discourse.julialang.org/t/regarding-missing-references-in-vscode/105197/2 "2023-10-19T21:14:31Z")

</div>

Works for me. One trick, I think, is that you need to open the whole directory with the Code editor, instead of opening the files one by one.

---

<div class="post-metadata">

### Author: ![LeoK987](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/leok987/32/4880_2.png) [@LeoK987](https://discourse.julialang.org/u/LeoK987)
#### Post date: [October 19, 2023, 10:06pm UTC](https://discourse.julialang.org/t/regarding-missing-references-in-vscode/105197/3 "2023-10-19T22:06:39Z")

</div>

uhn, interesting.

I actually open my entire project together with code. the project contains a few packages and in the packages some files get included by others, and that’s where I see quite many missing references.

---

<div class="post-metadata">

### Author: ![nsajko](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nsajko/32/221187_2.png) [@nsajko](https://discourse.julialang.org/u/nsajko)
#### Post date: [October 19, 2023, 10:27pm UTC](https://discourse.julialang.org/t/regarding-missing-references-in-vscode/105197/4 "2023-10-19T22:27:57Z")

</div>

Maybe Code can’t handle multiple packages being open simultaneously?

Are all of those packages either `dev`-ed or `add`-ed?

---

<div class="post-metadata">

### Author: ![LeoK987](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/leok987/32/4880_2.png) [@LeoK987](https://discourse.julialang.org/u/LeoK987)
#### Post date: [October 20, 2023, 7:20am UTC](https://discourse.julialang.org/t/regarding-missing-references-in-vscode/105197/5 "2023-10-20T07:20:19Z")

</div>

My local packages are dev’ed packages. Package symbols are recognized in other packages in code.

After re-checking, I’m not sure if my issues are due to includes. Somewhere, symbols through includes appear to be recognised. Something else is strange.

---

<div class="post-metadata">

### Author: ![LeoK987](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/leok987/32/4880_2.png) [@LeoK987](https://discourse.julialang.org/u/LeoK987)
#### Post date: [October 20, 2023, 10:40am UTC](https://discourse.julialang.org/t/regarding-missing-references-in-vscode/105197/6 "2023-10-20T10:40:53Z")

</div>

One thing I found with includes that cause VSCode to complain about missing reference is as following:

in file A.jl:

bFile = “B.jl”  
include(bFile)

If I do the include directly, like:

include(“B.jl”)

then things appear OK

---

<div class="post-metadata">

### Author: ![nsajko](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nsajko/32/221187_2.png) [@nsajko](https://discourse.julialang.org/u/nsajko)
#### Post date: [October 20, 2023, 11:09am UTC](https://discourse.julialang.org/t/regarding-missing-references-in-vscode/105197/7 "2023-10-20T11:09:37Z")

</div>

Well, yeah, it’s based on static analysis, so it’s somewhat bound to be limited like that. I wonder though, maybe it would be possible to augment the language server’s information with run time data? Perhaps with the help of SnoopCompile?
