puppet-vscode icon indicating copy to clipboard operation
puppet-vscode copied to clipboard

Autocomplete of class parameters and built-in functions inside classes does not work

Open nscheer opened this issue 4 years ago • 4 comments

What Versions are you running?

OS Version: Windows 10 Pro 20H2 / WSL2 with Debian 10 VSCode Version: 1.60.0 Puppet Extension Version: 1.3.0 PDK Version: 2.2.0 (installed in WSL2 Debian)

What You Are Seeing?

In an empty .pp file, built-in function are auto completed, so when I type something like

$x = spl

"split" is suggested. After autocompleting the function it shows its various signatures as well, as I have activated the puppetstrings feature.

But inside a class, built-in functions are not autocompleted anymore:

# Class: test
#
#
class test {
  $x = sp
}

Here I only get "no suggestions".

Furthermore, vscode knows the core data types for class parameters, but does not seem able to autocomplete them:

# Class: test
#
#
class test (
  Str
){

}

So no suggestion for "String" is shown here. If I complete the parameter and hover over "String" it displays "The String core data type".

What is Expected?

Autocompletion of built-in functions inside classes should work. It would be nice if types could be autocompleted as well.

How Did You Get This To Happen? (Steps to Reproduce)

Navigate to an empty folder in WSL2 and open vscode using code .. Create a new file "test.pp".

nscheer avatar Sep 03 '21 10:09 nscheer

Thanks for reporting @nscheer - I've been able to reproduce this

sanfrancrisko avatar Sep 06 '21 09:09 sanfrancrisko

Any news on this? Have the same Issue...

CryoRig avatar Oct 19 '21 14:10 CryoRig

@CryoRig the ticket is in our backlog to be worked upon. Unfortunately, given resourcing on the team, we're unable to pick this up in the near future. Monday is the day we focus on issues raised across the 24 repositories under our remit and it's in our pipeline to tackle as soon as we can.

sanfrancrisko avatar Nov 01 '21 11:11 sanfrancrisko

Thank you for the update

CryoRig avatar Nov 01 '21 11:11 CryoRig