-
Notifications
You must be signed in to change notification settings - Fork 26
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
Losing jumpstat data, when working from multiply powershell windows #37
Comments
Cannot repro it anymore |
Repro:
Expected: Actual: |
I'm wondering if I'm seeing the same thing. I have multiple powershell windows open all the time and my jumplist only ever contains one item (C:\users\Patrick.VanDerVelde which is my user directory from which powershell starts). I don't normally spend any time in that directory but navigate away to my GIT repo directories and stay there but they never show up. Could that be due to this issue or is it maybe another issue? |
If you don't have any PS windows open in this directory, it's probably something different. Update logic is not very robust, unfortunately. |
Running 0.6.0 based on my module list: C:\Users\Patrick.VanDerVelde> Get-Module ModuleType Version Name ExportedCommands Binary 0.6.0.0 Jump.Location {Get-JumpStatus, Set-JumpLocation} Looking at the job list it seems that the job is there in one of my windows C:\Users\Patrick.VanDerVelde> get-Job | fl Module : __DynamicModule_3ac53c16-7d67-4e73-add2-02c45bf0a477 JobStateInfo : Running In the other window I get this: C:\vcs\git\devinfrastructure\Scripts [master +10 ~0 -0 !]> get-Job | fl Module : __DynamicModule_79e2e61d-d974-4772-bb70-1062c2005f29 JobStateInfo : NotStarted Creating another window and running Get-Job again indicates that this last output is from the second window I started. Shutting down all powershell windows (including ISE) and then starting a new window still doesn't start the job. Currently can't be bothered rebooting the machine to test further. |
I see similar results. In fact, if I run powershell.exe, JobStateInfo is always NotStarted. When I use powershell_ise.exe (which I usually use), Job is Running. |
Looks like it relate to interaction between Jump-Location and PSReadLine. Everything works fine, if I disable PSReadLine. @pvandervelde do you use it? |
I opened #56 to track problem with PSReadLine. @pvandervelde let me know, if it's something different for you. |
Yeah I have that module loaded as well! |
@pvandervelde as a work-around you can pre-populate jump location DB in powershell session without PSReadLine (i.e. powershell_ise.exe). Then you will be able to use it with PSReadLine, but no new info will be added. |
Same issue when I run powershell in both VSCode and Cmder. When I use jump-location in either, it wipes the stats accumulated from the other shell. |
I called jumpstat sequentially and data is not consistent: it's wiped at some point.
Should be a problem with DB -> file save logic
The text was updated successfully, but these errors were encountered: