# No autocompletion for the built-in Dates module?

**URL:** https://discourse.julialang.org/t/no-autocompletion-for-the-built-in-dates-module/108015
**Category:** VS Code
**Tags:** question, package
**Created:** [December 24, 2023, 6:59pm UTC](https://discourse.julialang.org/t/no-autocompletion-for-the-built-in-dates-module/108015 "2023-12-24T18:59:03Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![GeorgeTheFifth](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/georgethefifth/32/205718_2.png) [@GeorgeTheFifth](https://discourse.julialang.org/u/GeorgeTheFifth)
#### Post date: [December 24, 2023, 6:59pm UTC](https://discourse.julialang.org/t/no-autocompletion-for-the-built-in-dates-module/108015/1 "2023-12-24T18:59:03Z")

</div>

I am using the VSCode Julia extension `v1.65.2`. When I `import Dates`, I get no autocompletion for `Dates.`. Simply the extension does not suggest anything from `Dates` module. Is this behavior normal? Is VSCode Julia extension unable to resolve the functions inside the module? What are the workarounds or solutions?

Dates module loads in the workspace tab of VSCode, however, as you can see, it is unable to resolve the functions inside the module.

 ![unresolved-dates](https://global.discourse-cdn.com/julialang/original/3X/a/b/abd3e7c048008a35a6e639978d439252dfbc3eb0.png)

---

<div class="post-metadata">

### Author: ![DaveMacMahon](https://avatars.discourse-cdn.com/v4/letter/d/9f8e36/32.png) [@DaveMacMahon](https://discourse.julialang.org/u/DaveMacMahon)
#### Post date: [December 26, 2023, 12:49am UTC](https://discourse.julialang.org/t/no-autocompletion-for-the-built-in-dates-module/108015/2 "2023-12-26T00:49:39Z")

</div>

I had to “execute” (e.g. using `Ctrl-Enter`) the `import Dates` line before autocompletion worked. Not sure if that’s how it’s supposed to work, but that’s how it did work for me.

---

<div class="post-metadata">

### Author: ![GeorgeTheFifth](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/georgethefifth/32/205718_2.png) [@GeorgeTheFifth](https://discourse.julialang.org/u/GeorgeTheFifth)
#### Post date: [December 26, 2023, 12:51am UTC](https://discourse.julialang.org/t/no-autocompletion-for-the-built-in-dates-module/108015/3 "2023-12-26T00:51:28Z")

</div>

In the screenshot it is not shown. I have executed the `import Dates` before actually trying to test autocompletion. It seems the autocompletion is broken on my system. Not sure why.

---

<div class="post-metadata">

### Author: ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)
#### Post date: [December 26, 2023, 1:24am UTC](https://discourse.julialang.org/t/no-autocompletion-for-the-built-in-dates-module/108015/4 "2023-12-26T01:24:33Z")

</div>

How did you execute the line?

---

<div class="post-metadata">

### Author: ![GeorgeTheFifth](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/georgethefifth/32/205718_2.png) [@GeorgeTheFifth](https://discourse.julialang.org/u/GeorgeTheFifth)
#### Post date: [December 26, 2023, 1:49am UTC](https://discourse.julialang.org/t/no-autocompletion-for-the-built-in-dates-module/108015/5 "2023-12-26T01:49:29Z")

</div>

`CTRL + Enter` and I got a checkmark on the right side of `import Dates` and REPL started.

---

<div class="post-metadata">

### Author: ![GeorgeTheFifth](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/georgethefifth/32/205718_2.png) [@GeorgeTheFifth](https://discourse.julialang.org/u/GeorgeTheFifth)
#### Post date: [December 26, 2023, 2:36am UTC](https://discourse.julialang.org/t/no-autocompletion-for-the-built-in-dates-module/108015/6 "2023-12-26T02:36:48Z")

</div>

I have found out that Julia Language Server does not cache symbols after executing `import Dates`. Sometimes after opening and closing VSCode and even the REPL several times and executing `import Dates` the intellisense starts to work properly(Exactly after outputting the messages about caching the symbols of the specific module in use).

However, I don’t exactly know why the language server does not cache symbols of the imported modules properly.

---

<div class="post-metadata">

### Author: ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)
#### Post date: [December 26, 2023, 4:56am UTC](https://discourse.julialang.org/t/no-autocompletion-for-the-built-in-dates-module/108015/7 "2023-12-26T04:56:29Z")

</div>

Have you changed rhe environment to one where you have added `Dates`?
