Add extra installation instructions about administrator privileges and PSCore6 modules
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 42/100
- Issue-Typ
- Dokumentation
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- powershell
- Bereich
- documentation
Rechercherichtung
Beginne mit den Installationsanweisungen und den README-Abschnitten zu Start-PSBuild, PowerShell-Snippets und Invoke-Build. Dokumentiere die Notwendigkeit einer Administratorsitzung und den Schritt zur Wiederherstellung des PSCore6-Moduls und sorge anschließend für einheitliche Befehlsbeispiele; als abgeschlossen gilt die Arbeit, wenn die gemeldeten Einrichtungsprobleme und die Verwirrung über das Prompt-Format abgedeckt sind.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
I was trying to build PowerShellEditorServices on my machine with the following $PSVersionTable:
Name Value
---- -----
PSVersion 6.0.1
PSEdition Core
GitCommitId v6.0.1-235-g3f7494e5435bd776ad04ef426c00874410924486
OS Microsoft Windows 10.0.16299
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Install-Module not found
Due to self-hosting on PSCore6, there was no Install-Module cmdlet. It might be worth having a note somewhere (possibly here or in the PowerShell README?) to make sure people use Start-PSBuild -PSModuleRestore when building PSCore6 and get the PowerShellGet module.
Invoke-Build: IsBypassed not supported error
Then at the step where Invoke-Build is used, I got the following error:
PS> Invoke-Build Build
Build Build C:\Users\roholt\Documents\PowerShellEditorServices\PowerShellEditorServices.build.ps1
Task /Build/SetupDotNet
### Installing .NET CLI 2.0.0...
C:
dotnet-install: Downloading link: https://dotnetcli.azureedge.net/dotnet/Sdk/2.0.0/dotnet-sdk-2.0.0-win-x64.zip
dotnet-install: Cannot download: https://dotnetcli.azureedge.net/dotnet/Sdk/2.0.0/dotnet-sdk-2.0.0-win-x64.zip
dotnet-install: Downloading legacy link: https://dotnetcli.azureedge.net/dotnet/Sdk/2.0.0/dotnet-dev-win-x64.2.0.0.zip
ERROR: Exception calling "IsBypassed" with "1" argument(s): "Operation is not supported on this platform."
At C:\Users\roholt\AppData\Local\Temp\dotnet-install.ps1:175 char:20
+ ... if($DefaultProxy -and (-not $DefaultProxy.IsBypassed($Uri))) ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
At C:\Users\roholt\Documents\PowerShellEditorServices\PowerShellEditorServices.build.ps1:21 char:1
+ task SetupDotNet -Before Clean, Build, TestHost, TestServer, TestProt ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
At C:\Users\roholt\Documents\PowerShellEditorServices\PowerShellEditorServices.build.ps1:129 char:1
+ task Build {
+ ~~~~~~~~~~~~
Build FAILED. 2 tasks, 1 errors, 0 warnings 00:00:04.8974401
Exception calling "IsBypassed" with "1" argument(s): "Operation is not supported on this platform."
At C:\Users\roholt\AppData\Local\Temp\dotnet-install.ps1:175 char:20
+ ... if($DefaultProxy -and (-not $DefaultProxy.IsBypassed($Uri))) ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : PlatformNotSupportedException
I needed some trial and error to work out that I just needed to be running an administrator session. For the sake of completeness, there is a fixed dotnet-cli issue that looks like this, but we only need administrator privileges here.
PowerShell snippets in README
Also, the PowerShell snippets in the instructions are inconsistent about giving a prompt and we should make them agree. Not including a prompt makes copy-pasting easier, but including a prompt gives more information on where the user should be executing commands. The ideal is including the prompt and having it unselectable -- GitHub does this in their SSH key pages using ::before in CSS, but that can only be set once. It may not be possible in GitHub Markdown, but I've put an attempt below that doesn't work in preview, but may be a start.
PS C:\path\to\dir> Invoke-Command "do something"
Filing this as an issue chiefly to document it for anyone else who encounters problems but also for discussion.
- Vorherrschende Sprache
- C#
- Sterne
- 767
- Forks
- 266
- Ø Merge
- 3 T. 16 Std.
- Gemergte PRs (30 T.)
- 1
Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus PowerShell/PowerShellEditorServices
-
[Bug] None of the string overloads of `EditorExtensionServiceProvider.GetService()` work on .NET. Offen
PowerShell/PowerShellEditorServices#2331 · 1 Reaktion · 2 zugewiesene Personen ·
-
Area-Language Server Issue-Enhancement
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
PowerShell/PowerShellEditorServices#2315 · 1 Kommentar ·
-
Area-Debugging Issue-Enhancement
PowerShell/PowerShellEditorServices#2294 · 1 Reaktion · 2 zugewiesene Personen ·
-
Issue-Bug Needs: Triage
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
PowerShell/PowerShellEditorServices#2293 · 1 Kommentar ·
-
PowerShell/PowerShellEditorServices#2282 · 1 Kommentar · 1 Reaktion · 2 zugewiesene Personen ·
Alle Issues in PowerShell/PowerShellEditorServices
Ähnliche Issues
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
nightscout/nocturne#1425 ·
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
-
Documentation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
cake-build/cake#5024 ·
-
Frontend status/draft TechnicalDebt
Schwierigkeit 2/5 1-2 Tage Anfängerfreundlichkeit 75/100
Altinn/altinn-auth#4143 ·