-
Notifications
You must be signed in to change notification settings - Fork 298
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
PSReadLine cannot handle super large history file properly #3771
Comments
It looks like you are on a pretty old version of PSReadLine, can you try upgrading to the latest stable version (2.2.6) and see if you still come across the issue? You can upgrade by running the following: |
Hi, I have updated the same but now again the same exception has come.
[image: image.png]
*Thanks and RegardsAjay Kumar Gupta *
…On Mon, 7 Aug 2023 at 21:45, Steven Bucher ***@***.***> wrote:
It looks like you are on a pretty old version of PSReadLine, can you try
upgrading to the latest stable version (2.2.6) and see if you still come
across the issue? You can upgrade by running the following:
Install-Module -Name PSReadLine -RequiredVersion 2.2.6
Be sure to restart PowerShell session for changes to take affect
—
Reply to this email directly, view it on GitHub
<#3771 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFMRQWRPGKRBMB3G2EBQTC3XUEIAJANCNFSM6AAAAAA3G46CL4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
@ajayguptarrk I cant seem to see the image you attached to the issue, can you please try to reattach it again? Maybe via GitHub instead of email. |
|
Please see if you are able to see updated image |
Sure .please find attached image. |
@ajayguptarrk I still cannot see the updated image. The image above still shows it's a very old version -- 2.0.0-beta2 or prior indicated by the reporting URL: |
Unfortunately it does not seem like we can see the images still @ajayguptarrk |
@ajayguptarrk The size of your history file is too big -- it exceeds the size limit of a generic list in .NET (~2 GB). |
@daxian-dbw this would be another good reason for this feature request as that would move it outside of .NET limitations |
Even after moving to using sqlite for history, the file-based history saving will need to be preserved indefinitely to make it backward compatible. I'm planning to update the code to only read the last 1mb content from the history file, so this issue can be avoided. |
Prerequisites
Exception report
System out of memory and it consume lots of memory when i see in task manager.
Screenshot
Environment data
Steps to reproduce
Start powershell in visual code or windows it always crashed
Expected behavior
always crashed
Actual behavior
Start powershell in visual code or windows it always crashed
The text was updated successfully, but these errors were encountered: