-
Notifications
You must be signed in to change notification settings - Fork 5
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
Import fails with file does not exist #101
Comments
Here is more information regarding the setup of the module. https://github.com/jasonmarcher/PowerTab/blob/master/Docs/Setup/ConfigFile.md Run the following commands. Changing the path as you see fit. New-TabExpansionConfig Then add the line below to your config. Import-Module PowerTab -ArgumentList C:\Users\USER\PowerTabConfig.xml This fixed it for me. |
How would I run |
Just import the module and run the setup. Then run the export command.
…On Wed, May 9, 2018, 19:02 Dan Friedman ***@***.***> wrote:
How would I run New-TabExpansionConfig if the module isn't imported yet?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#101 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ASmitD6FANwd4mHNYYEbdMVUbkhzxqF5ks5twyETgaJpZM4TxJ_s>
.
|
That's the whole point. I can't import the module because it errors out. |
I had the same errors. You can still continue with the setup. Just ignore it as it is an error for the path missing. Continue the setup and then run the export command. Then add the command I wrote above to import it. |
This isn't a blocked error, but I will get it fixed. The module needs to recognized when it is loading from a clean slate. |
I'm running into this same problem. It seems to be a problem with the
|
I've been investigating this issue a bit and the problem seems to be this bit in if ($ConfigurationPath) {
$script:ConfigurationPathParam = $ConfigurationPath
} elseif ($PrivateData = (Parse-Manifest).PrivateData) {
$script:ConfigurationPathParam = $PrivateData
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ This line is the problem!
} elseif (Test-Path (Join-Path (Split-Path $Profile) $ConfigFileName)) {
$script:ConfigurationPathParam = (Join-Path (Split-Path $Profile) $ConfigFileName)
} elseif (Test-Path (Join-Path $PSScriptRoot $ConfigFileName)) {
$script:ConfigurationPathParam = (Join-Path $PSScriptRoot $ConfigFileName)
} It seems that |
I successfully installed PowerTab, but when I went to import it, I get errors:
I also added the import to
profile.ps1
, but the error still appears every time a new PowerShell host opens.The text was updated successfully, but these errors were encountered: