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 — Fix incorrect name check when autoloading required modules by rjmholt · Pull Request #8218 · PowerShell/PowerShell Conversation
|
|
Thanks for handling the issue. I'd consider a regression test for this important feature to be essential. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Agreed that it's essential -- I'm pretty surprised we didn't have one already. I'm halfway through writing some already. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
3205e0d to
ae5c56b
Compare
|
Ok, feel free to add the test in a 2nd PR as I can understand that this is a time-pressing issue that can initially be verified with some manual testing (please include Windows as test platform though) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
We also seem to do required module autoloading in PowerShell/src/System.Management.Automation/engine/CommandDiscovery.cs Lines 307 to 313 in 4118fd2
If those are supposed to allow paths, I'll need to do the same path normalisation logic there. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Rob Holt (@rjmholt) 1 new test is failing on Linux and macOS. Please have a look. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The failing AppVeyor test is passing on my machine. Looking into it. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
| // Paths in the module name may fail here because | ||
| // they the wrong directory separator or are relative. | ||
| // Fix with the code below: | ||
| // FullyQualifiedName = FullyQualifiedName.Select(ms => ms.WithNormalizedName(Context, SessionState.Path.CurrentLocation.Path)).ToArray(); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
What's the concern about putting this fix in place? Regression? Perf degradation?
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.
Just keeping the fix constrained in this PR. It shouldn't cause regressions or perf degradations, but to ensure there are no regressions (since this PR is a regression fix itself) I just left it as a comment.
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.
Will you open issue to track all those todo comments? They can be easily forgotten :)
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.
Did you open an issue to track those todo's?
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.
Next on my list
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
| // Paths in the module name may fail here because | ||
| // they the wrong directory separator or are relative. | ||
| // Fix with the code below: | ||
| // FullyQualifiedName = FullyQualifiedName.Select(ms => ms.WithNormalizedName(Context, SessionState.Path.CurrentLocation.Path)).ToArray(); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Did you open an issue to track those todo's?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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.
Only pending action item left is to open an issue tracking all "TODO" comments.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Since the CodeFactor issues are for existing methods, re-ordering will cause larger diffs. We can ignore CodeFactor issues for this PR. |
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.
RequiredModules manifest property stopped working recently (noticed in daily build)
There was an error while loading. Please reload this page.