% HOMEPATH% Erro Posh-Git no Powershell, no ConEmu no Windows 7 de 64 bits

0

Estou sempre recebendo o seguinte erro no Posh-Git em Powershell, no ConEmu no Windows 7 de 64 bits:

Resolve-Path : Cannot find path 'C:\wamp\www\MobileApps\Backbone\%HOMEPATH%' because it
does not exist.
At D:\Users\Andy\Documents\WindowsPowerShell\Modules\posh-git\GitUtils.ps1:265 char:13
+     $home = Resolve-Path (Invoke-NullCoalescing $Env:HOME ~)
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\wamp\www\Mob...bone\%HOMEPATH%:String)
   [Resolve-Path], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.ResolvePathComma
   nd

Join-Path : Cannot bind argument to parameter 'Path' because it is null.
At D:\Users\Andy\Documents\WindowsPowerShell\Modules\posh-git\GitUtils.ps1:266 char:29
+     Resolve-Path (Join-Path $home ".ssh\$File") -ErrorAction SilentlyContinue 2> ...
+                             ~~~~~
    + CategoryInfo          : InvalidData: (:) [Join-Path], ParameterBindingValidationExc
   eption
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.Po
   werShell.Commands.JoinPathCommand

Alguém pode aconselhar o que pode estar errado?

EDITAR: Adicionar configurações XML

<?xml version="1.0" encoding="utf-8"?>
<key name="Software">
    <key name="ConEmu">
        <key name=".Vanilla" modified="2013-10-19 18:24:13" build="131017">
            ...
                <key name="Tasks" modified="2013-10-19 18:24:14" build="131017">
                <value name="Count" type="dword" data="00000003"/>
                        <key name="Task1" modified="2013-10-19 18:24:14" build="131017">
                    <value name="Name" type="string" data="{cmd}"/>
                    <value name="GuiArgs" type="string" data=""/>
                    <value name="Cmd1" type="string" data="cmd.exe &quot;-new_console:d:%userprofile%&quot;"/>
                    <value name="Active" type="dword" data="00000000"/>
                    <value name="Count" type="dword" data="00000001"/>
                </key>
                        <key name="Task2" modified="2013-10-19 18:24:14" build="131017">
                    <value name="Name" type="string" data="{Git Bash}"/>
                    <value name="GuiArgs" type="string" data=""/>
                    <value name="Cmd1" type="string" data="&quot;C:\Program Files (x86)\Git\bin\sh.exe&quot; --login -i"/>
                    <value name="Active" type="dword" data="00000000"/>
                    <value name="Count" type="dword" data="00000001"/>
                </key>
                        <key name="Task3" modified="2013-10-19 18:24:14" build="131017">
                    <value name="Name" type="string" data="{Powershell 3}"/>
                    <value name="GuiArgs" type="string" data="/icon &quot;%SystemRoot%\syswow64\WindowsPowerShell\v1.0\powershell.exe&quot;"/>
                    <value name="Cmd1" type="string" data="%SystemRoot%\syswow64\WindowsPowerShell\v1.0\powershell.exe"/>
                    <value name="Active" type="dword" data="00000000"/>
                    <value name="Count" type="dword" data="00000001"/>
                </key>
            </key>
                <key name="Apps" modified="2013-10-19 18:24:14" build="131017">
                <value name="Count" type="dword" data="00000000"/>
            </key>
                <key name="Colors" modified="2013-10-19 18:24:14" build="131017">
                <value name="Count" type="dword" data="00000000"/>
            </key>
        </key>
    </key>
</key>
    
por atwright147 19.10.2013 / 17:04

1 resposta

0

Você está tentando usar o PowerShell de 32 bits no sistema operacional de 64 bits. Não é um problema ConEmu, mas apenas sua configuração. Use o PowerShell de 64 bits adequado.

%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe
    
por 19.10.2013 / 22:14