-
-
Notifications
You must be signed in to change notification settings - Fork 809
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
"Error An expression was expected after '('or on" whenever I open a powershell prompt #180
Comments
I'm having the same problem. I can't seem to find any solutions online. Did you find a solution? |
I had this issue too. I changed my file to look like this: Make sure you check out the last line and fix the REPLACEME text |
I had the same problem. It turned out for me that all the lines in I separated it out like this and it fixed it: Rename-Item Function:\Prompt PoshGitPrompt -Force if(--$global:poshScope -eq 0) { |
I got the same issue, but RobAhnemann SunsetQuest's tip fixed it. Thanks! |
I ran into this as well trying to follow along with the Microsoft Virtual Academy series on VS and Git here. Must be a line-ending encoding issue? |
That's exactly were I ran into it also. (http://www.microsoftvirtualacademy.com/training-courses/using-git-with-visual-studio-2013-jump-start) It's possible something changed since the original post date. |
I'll look into this as part of #184 (fixing the Chocolate package). Sorry for your troubles, hopefully the workaround has gotten you by so far. |
@SunsetQuest It worked out perfectly, I wonder how you knew that was what to do |
@tobitech I found the failing script (I think i got the name/location from the opening post) so I thought I would take a quick gander inside and then noticed everything was bunched on one line. |
I've confirmed this issue is specific to installs when the Should be an easy fix. |
I tried recreating this by deleting I wasn't able to test it with what's in master as chocolatey didn't want to resolve dependencies when installing from a nuspec file and reproducing this seemed to require that. Perhaps the It's worth noting that I didn't try this with an existing |
I've updated #184 with a tentative fix that is awaiting Chocolatey moderation. I believe you can try it today with |
FYI I just encountered this exact issue after installing poshgit from chocolatey. Installed version is 0.6.0.20160310. @SunsetQuest's workaround still solves the problem. |
Sigh. I forgot that 0.5.2 had shipped without actually merging #184. I just published 0.6.1, pending moderation. Please let me know if that doesn't resolve the issue. |
I was having this problem but then I realized I forgot to put a ":" after defining a function. |
I just installed poshgit. Now every time I open a powershell prompt I get the following. I try cinst -force poshgit and I still get the same error.
Windows PowerShell
Copyright (C) 2014 Microsoft Corporation. All rights reserved.
At C:\Users\swarwick\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:1 char:66
The text was updated successfully, but these errors were encountered: