How to autocomplete func names

Dear Team,

I’ve noticed that when using Visual Studio Code for coding in Julia, the auto-completion feature doesn’t seem to work for built-in functions of Pumas. Is this an inherent limitation of the Julia language, or is it due to Pumas being an integrated and closed environment?

Warm regards,
Aleem

Morning @Aleem.

The VSCode Language Server should show auto-completions for Pumas functions fine. The issue you’re facing may be related to which Julia env is currently selected by your editor. See below for what that looks like in your editor, it should be and the bottom of the screen and near the left.

image

Are you using PumasDesktop, or are you running this in JuliaHub? Knowing that will help narrow down the issue that you’re encountering.

Hi Michael, I am using Pumas Desktop v2.5.1 in Windows. I found in REPL the autocompletion works well, but in the file editing area it fails. And in the workplace all packages are loaded successfully.

It is strange that it doesn’t work in the file editing panel.

Thanks @Aleem.

Some further questions:

  • what other extensions are installed within your VSCode. Potentially something else is interfering with the Julia one. Let’s rule that out as a cause.
  • what is the active project in your Julia REPL? Use julia> Base.active_project() to work that out.
  • Does auto-complete work if you instead write NCA.read_ in your editor window rather than just read_?

Thanks. @Michael

  1. I installed Python, Jupyter extensions developed by Microsoft, and Julia extension by julialang.
  2. Base.active_project()
    “C:\Users\m1825\.julia\environments\Pumas_v2.5.1\Project.toml”
  3. No it doesnt work.

Thanks, we’ll continue to debug this internally and report back here once we’ve resolved this.