GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||
GeezerVison is showing github.com — Allow root node of format.ps1xml to have attributes that are ignored by SteveL-MSFT · Pull Request #7987 · PowerShell/PowerShell Conversation
|
|
Figured out cause of test failure, but not sure why yet. A different test is updating formatdata with invalid ps1xml. Somehow, this causes importing of some (but not all) modules to fail complaining about the invalid ps1xml file. Can repro it manually with 6.1.0 without my change so my change is unrelated, but looks like a real bug. Investigating further. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
It appears the problem is that the invalid format ps1xml still gets into the formattable of the session so when importing a module that has a format.ps1xml it fails to update due to the previously bad format.ps1xml file still being cached. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Andrew (@anmenaga) can you re-review? Had to make additional fixes due to CI test failures |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Looks good to me. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Aditya Patwardhan (@adityapatwardhan) this contains fix for CI failures. Please give this PR a priority. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Context.InitialSessionState.Formats.Add() has an overload which takes an IEnumerable<T>
So this should be
Context.InitialSessionState.Formats.Clear(); Context.InitialSessionState.Formats.Add(originalFormats);
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'll submit the test-connection test fix as separate PR since it's affecting other PRs |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Steve Lee (@SteveL-MSFT) now that the test CI fix is merge, please remove the fix in this PR. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
added tests for format and types
…for initialsessionstate
785d273 to
0251824
Compare
|
Aditya Patwardhan (@adityapatwardhan) can you update your review? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.