# Linter highlights missing references in Project.toml file

**URL:** <https://discourse.julialang.org/t/linter-highlights-missing-references-in-project-toml-file/122211>\
**Category:** General Usage\
**Tags:** vscode, linter\
**Created:** [November 3, 2024, 10:15pm UTC](https://discourse.julialang.org/t/linter-highlights-missing-references-in-project-toml-file/122211 "2024-11-03T22:15:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![CameronBieganek](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cameronbieganek/32/6915_2.png) [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Post date:** [November 3, 2024, 10:15pm UTC](https://discourse.julialang.org/t/linter-highlights-missing-references-in-project-toml-file/122211/1 "2024-11-03T22:15:29Z")

</div>

Sometimes the Julia VS Code linter highlights missing references in the Project.toml file (screenshot below). I’ve seen this before but never got around to reporting or asking about it. Has anyone else seen this? Is there a way to fix this?

 ![image](https://global.discourse-cdn.com/julialang/original/3X/7/1/719afa96a513e3a8c8c45fb2e127e5211aed79aa.png)

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [November 4, 2024, 2:05am UTC](https://discourse.julialang.org/t/linter-highlights-missing-references-in-project-toml-file/122211/2 "2024-11-04T02:05:28Z")

</div>

Are you sure it is the linter? I never had this issue. Which version of the Julia VSCode plugin do you have?

---

<div class="post-metadata">

**Author:** ![CameronBieganek](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cameronbieganek/32/6915_2.png) [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Post date:** [November 4, 2024, 2:13am UTC](https://discourse.julialang.org/t/linter-highlights-missing-references-in-project-toml-file/122211/3 "2024-11-04T02:13:11Z")

</div>

This definitely looks like the Julia linter:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/1/c/1c8dc91dd426f623d83c39c75a89dd70c09616e9.png)

The Julia extension auto-updates. I’m on the latest version, v1.127.2.

Maybe there’s a weird linter interaction with a different extension.

---

<div class="post-metadata">

**Author:** ![mrufsvold](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mrufsvold/32/31600_2.png) [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Post date:** [November 4, 2024, 2:18am UTC](https://discourse.julialang.org/t/linter-highlights-missing-references-in-project-toml-file/122211/4 "2024-11-04T02:18:25Z")

</div>

I get this too from time to time. I can’t find a reproducible set of steps to make it happen. Sorry! Restarting the language server usually straightens things out.

---

<div class="post-metadata">

**Author:** ![mrufsvold](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mrufsvold/32/31600_2.png) [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Post date:** [November 4, 2024, 2:36am UTC](https://discourse.julialang.org/t/linter-highlights-missing-references-in-project-toml-file/122211/5 "2024-11-04T02:36:50Z")

</div>

Actually, question – are you seeing this behavior when your Workplace directory is the parent directory of the package with the `Project.toml`? I usually (only?) see this behavior in a monorepo, and I’ve wondered if the `.jl` in the folder name tricks the linter into thinking the `Project.toml` path contains a `.jl` extension pattern.

---

<div class="post-metadata">

**Author:** ![CameronBieganek](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cameronbieganek/32/6915_2.png) [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Post date:** [November 4, 2024, 3:11pm UTC](https://discourse.julialang.org/t/linter-highlights-missing-references-in-project-toml-file/122211/6 "2024-11-04T15:11:28Z")

</div>

No, in my case the workspace directory in VS Code is the package directory, i.e. the `Foo.jl` directory, not the parent directory of that directory.

I guess I’ll open a Github issue.

---

<div class="post-metadata">

**Author:** ![jaredjeya](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jaredjeya/32/47454_2.png) [@jaredjeya](https://discourse.julialang.org/u/jaredjeya)\
**Post date:** [November 12, 2024, 6:21pm UTC](https://discourse.julialang.org/t/linter-highlights-missing-references-in-project-toml-file/122211/7 "2024-11-12T18:21:32Z")

</div>

I’ve got the same issue. It’s an incredibly simple structure:

```julia
project_root/
├─ script.jl
├─ Manifest.toml
├─ Project.toml
├─ test/
│ ├─ ... some random data files ...

```

But then I’m getting 700+ “Missing Reference” errors in Manifest.toml.

I’m using Julia 1.11 and the latest VSCode, Version: 1.95.2, with v1.127.2  
of the Julia extension.

Do you mind linking the GitHub issue you opened so I could follow it?
