Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DSC IntelliSense can cause the language server to crash #391

Closed
Persistent13 opened this issue Dec 16, 2016 · 2 comments
Closed

DSC IntelliSense can cause the language server to crash #391

Persistent13 opened this issue Dec 16, 2016 · 2 comments
Labels
Issue-Bug A bug to squash.
Milestone

Comments

@Persistent13
Copy link

System Details

  • Operating system name and version: Microsoft Windows 10 Pro Insider Preview
  • VS Code version: 1.8.0
  • PowerShell extension version: 0.8.0
  • Output from $PSVersionTable:
Name                           Value
----                           -----
PSVersion                      5.1.14971.1000
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14971.1000
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Issue Description

When writing a DSC file if I attempt to use intellisense to complete the name field of WindowsFeature shown below the PowerShell session will crash.

configuration WebServer
{
    node $ComputerName
    {
        File DSC-Log
        {
            Ensure = 'Present'
            Type = 'Directory'
            DestinationPath = "$env:SystemDrive\DSCBuildLog"
        }
        WindowsFeature IIS
        {
            Ensure = 'Present'
            LogPath = "$env:SystemDrive\DSCBuildLog\IIS.log"
            Name = 
        }
    }
}

The crashing stops if I remove the DSC-Log code block.

Let me know if you need any further details!

Attached Logs

Logs

@daviwil
Copy link
Contributor

daviwil commented Dec 16, 2016

Thanks Dakota! I see the crash in the logs, will try to get this fixed for an 0.8.1 update next week.

@daviwil daviwil added this to the 0.8.1 milestone Dec 16, 2016
@daviwil daviwil added the Issue-Bug A bug to squash. label Dec 17, 2016
@daviwil
Copy link
Contributor

daviwil commented Dec 19, 2016

I've got a fix ready for this, it will go out with the 0.8.1 update this week!

@daviwil daviwil changed the title Desired State Configureation WindowsFeature Name Field Intellisense Crashes PowerShell Session DSC IntelliSense can cause the language server to crash Jan 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug A bug to squash.
Projects
None yet
Development

No branches or pull requests

2 participants