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

Fix node version detect logic to handle node v10 #2025

Merged
merged 1 commit into from
Jun 25, 2019

Conversation

rkeithhill
Copy link
Contributor

PR Summary

The script told me I needed nodeJS v6 or higher but I have node 10. The script wasn't handling a two digit major version.

PR Checklist

Note: Tick the boxes below that apply to this pull request by putting an x between the square brackets.
Please mark anything not applicable to this PR NA.

  • PR has a meaningful title
  • Summarized changes
  • [NA] PR has tests
  • This PR is ready to merge and is not work in progress
    • If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready

@rkeithhill
Copy link
Contributor Author

Looks like the PSES build is failing which should have nothing to do with this PR:

D:\a\1\PowerShellEditorServices\src\PowerShellEditorServices.Host\PowerShellEditorServices.Host.csproj : error NU1102: Unable to find package NETStandard.Library with version (>= 2.0.3) [D:\a\1\PowerShellEditorServices\PowerShellEditorServices.sln]
D:\a\1\PowerShellEditorServices\src\PowerShellEditorServices.Host\PowerShellEditorServices.Host.csproj : error NU1102:   - Found 2 version(s) in Microsoft Visual Studio Offline Packages [ Nearest version: 1.6.1 ] [D:\a\1\PowerShellEditorServices\PowerShellEditorServices.sln]
D:\a\1\PowerShellEditorServices\src\PowerShellEditorServices.Host\PowerShellEditorServices.Host.csproj : error NU1101: Unable to find package PowerShellStandard.Library. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\1\PowerShellEditorServices\PowerShellEditorServices.sln]
D:\a\1\PowerShellEditorServices\src\PowerShellEditorServices.Host\PowerShellEditorServices.Host.csproj : error NU1102: Unable to find package Microsoft.CSharp with version (>= 4.5.0) [D:\a\1\PowerShellEditorServices\PowerShellEditorServices.sln]
D:\a\1\PowerShellEditorServices\src\PowerShellEditorServices.Host\PowerShellEditorServices.Host.csproj : error NU1102:   - Found 3 version(s) in Microsoft Visual Studio Offline Packages [ Nearest version: 4.3.0 ] [D:\a\1\PowerShellEditorServices\PowerShellEditorServices.sln]
D:\a\1\PowerShellEditorServices\src\PowerShellEditorServices.Host\PowerShellEditorServices.Host.csproj : error NU1101: Unable to find package UnixConsoleEcho. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\1\PowerShellEditorServices\PowerShellEditorServices.sln]
D:\a\1\PowerShellEditorServices\src\PowerShellEditorServices.Host\PowerShellEditorServices.Host.csproj : error NU1102: Unable to find package Serilog with version (>= 2.8.0) [D:\a\1\PowerShellEditorServices\PowerShellEditorServices.sln]
D:\a\1\PowerShellEditorServices\src\PowerShellEditorServices.Host\PowerShellEditorServices.Host.csproj : error NU1102:   - Found 1 version(s) in Microsoft Visual Studio Offline Packages [ Nearest version: 2.3.0 ] [D:\a\1\PowerShellEditorServices\PowerShellEditorServices.sln]
D:\a\1\PowerShellEditorServices\src\PowerShellEditorServices.Host\PowerShellEditorServices.Host.csproj : error NU1101: Unable to find package Serilog.Sinks.Console. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\1\PowerShellEditorServices\PowerShellEditorServices.sln]
D:\a\1\PowerShellEditorServices\src\PowerShellEditorServices.Host\PowerShellEditorServices.Host.csproj : error NU1102: Unable to find package Serilog.Sinks.File with version (>= 4.0.0) [D:\a\1\PowerShellEditorServices\PowerShellEditorServices.sln]
D:\a\1\PowerShellEditorServices\src\PowerShellEditorServices.Host\PowerShellEditorServices.Host.csproj : error NU1102:   - Found 1 version(s) in Microsoft Visual Studio Offline Packages [ Nearest version: 3.1.0 ] [D:\a\1\PowerShellEditorServices\PowerShellEditorServices.sln]
D:\a\1\PowerShellEditorServices\src\PowerShellEditorServices.Host\PowerShellEditorServices.Host.csproj : error NU1101: Unable to find package Serilog.Sinks.Async. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\1\PowerShellEditorServices\PowerShellEditorServices.sln]
D:\a\1\PowerShellEditorServices\src\PowerShellEditorServices.Host\PowerShellEditorServices.Host.csproj : error NU1102: Unable to find package System.Runtime.Extensions with version (>= 4.3.1) [D:\a\1\PowerShellEditorServices\PowerShellEditorServices.sln]
D:\a\1\PowerShellEditorServices\src\PowerShellEditorServices.Host\PowerShellEditorServices.Host.csproj : error NU1102:   - Found 3 version(s) in Microsoft Visual Studio Offline Packages [ Nearest version: 4.3.0 ] [D:\a\1\PowerShellEditorServices\PowerShellEditorServices.sln]
D:\a\1\PowerShellEditorServices\src\PowerShellEditorServices.Host\PowerShellEditorServices.Host.csproj : error NU1102: Unable to find package Microsoft.Extensions.FileSystemGlobbing with version (>= 2.2.0) [D:\a\1\PowerShellEditorServices\PowerShellEditorServices.sln]
D:\a\1\PowerShellEditorServices\src\PowerShellEditorServices.Host\PowerShellEditorServices.Host.csproj : error NU1102:   - Found 4 version(s) in Microsoft Visual Studio Offline Packages [ Nearest version: 1.1.1 ] [D:\a\1\PowerShellEditorServices\PowerShellEditorServices.sln]
D:\a\1\PowerShellEditorServices\src\PowerShellEditorServices.Host\PowerShellEditorServices.Host.csproj : error NU1102: Unable to find package Newtonsoft.Json with version (>= 10.0.3) [D:\a\1\PowerShellEditorServices\PowerShellEditorServices.sln]
D:\a\1\PowerShellEditorServices\src\PowerShellEditorServices.Host\PowerShellEditorServices.Host.csproj : error NU1102:   - Found 1 version(s) in Microsoft Visual Studio Offline Packages [ Nearest version: 9.0.1 ] [D:\a\1\PowerShellEditorServices\PowerShellEditorServices.sln]
D:\a\1\PowerShellEditorServices\src\PowerShellEditorServices.Host\PowerShellEditorServices.Host.csproj : error NU1101: Unable to find package System.IO.Pipes.AccessControl. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [D:\a\1\PowerShellEditorServices\PowerShellEditorServices.sln]
  Restore failed in 32.9 sec for D:\a\1\PowerShellEditorServices\src\PowerShellEditorServices.Host\PowerShellEditorServices.Host.csproj.
  Restore completed in 32.9 sec for D:\a\1\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\PowerShellEditorServices.Protocol.csproj.
  Restore completed in 38.62 ms for D:\a\1\PowerShellEditorServices\src\PowerShellEditorServices\PowerShellEditorServices.csproj.
  Restore completed in 57.69 ms for D:\a\1\PowerShellEditorServices\src\PowerShellEditorServices.VSCode\PowerShellEditorServices.VSCode.csproj.
  Restore completed in 52.26 sec for D:\a\1\PowerShellEditorServices\test\PowerShellEditorServices.Test.Protocol\PowerShellEditorServices.Test.Protocol.csproj.
  Restore completed in 52.37 sec for D:\a\1\PowerShellEditorServices\test\PowerShellEditorServices.Test.Host\PowerShellEditorServices.Test.Host.csproj.
  Restore completed in 37.86 ms for D:\a\1\PowerShellEditorServices\test\PowerShellEditorServices.Test.Shared\PowerShellEditorServices.Test.Shared.csproj.
  Restore completed in 203.89 ms for D:\a\1\PowerShellEditorServices\test\PowerShellEditorServices.Test\PowerShellEditorServices.Test.csproj.
  Restore completed in 12.88 sec for D:\a\1\PowerShellEditorServices\test\PowerShellEditorServices.Test\PowerShellEditorServices.Test.csproj.
ERROR: Command { & $script:dotnetExe restore } exited with code 1.

@rjmholt
Copy link
Contributor

rjmholt commented Jun 14, 2019

Looks like the PSES build is failing

Hmmm, I'll look into it

Copy link
Member

@TylerLeonhardt TylerLeonhardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow. LGTM

@TylerLeonhardt TylerLeonhardt merged commit 0b4e032 into PowerShell:master Jun 25, 2019
@rkeithhill rkeithhill deleted the fix-node-ver-detect branch July 2, 2019 01:22
rjmholt pushed a commit to rjmholt/vscode-powershell that referenced this pull request Jul 24, 2019
rjmholt added a commit that referenced this pull request Jul 26, 2019
* Edit snippets to support $TM_SELECTED_TEXT (#1945)

Edit all-and-only applicable snippets to support $TM_SELECTED_TEXT,
where "applicable" is approximated by whether a snippet contains a
user-specified PowerShell expression, block, or body. Do not add,
remove, or otherwise change any placeholder number or name in order to
preserve backwards-compatibility.

Edit the following snippets (listed by name, not prefix):
- Class
- Constructor
- Method
- Enum
- Cmdlet
- Function-Advanced
- DSC Resource Provider (class-based)
- DSC Resource Provider (function-based)
- comment block
- do-until
- do-while
- while
- for
- for-reversed
- foreach
- function
- Function-Inline
- if
- elseif
- else
- switch
- try-catch
- try-catch-finally
- try-finally
- Workflow
- Workflow ForEachParallel
- Workflow InlineScript
- Workflow Parallel
- Workflow Sequence
- Region Block
- IfShouldProcess
- CalculatedProperty
- PesterDescribeContextIt
- PesterDescribeBlock
- PesterContextIt
- PesterContext
- PesterIt

* Add ArgumentCompleter snippets (#1946)

* Define snippet named 'ArgumentCompleterAttribute with ScriptBlock'

* Define snippet named 'IArgumentCompleter Class'

* Define snippet named 'ArgumentCompleterAttribute ScriptBlock'

* Add #Requires snippets (#1974)

* Add script requirement directive snippets

Adds the following snippets (listed by name, not prefix):
- Requires Assembly
- Requires Assembly Path
- Requires Assembly Version
- Requires Module
- Requires Module RequiredVersion
- Requires Module Version
- Requires PSEdition
- Requires PSSnapin
- Requires PSSnapin Version
- Requires RunAsAdministrator
- Requires ShellId
- Requires Version

* Fix node version detect logic to handle node v10 (#2025)

* #1019: Get format settings from document editor instead of global. (#2035)

* Update PSSA docs Url to point to master branch because master is now the default branch (#2037)

* add machine scope (#2039)

* add machine scope

* use a different setting for test and add user setting test

* remove isExecutable and remove powershell.developer.powerShellExePath

* Add param-block snippet (#2081)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants