-
Notifications
You must be signed in to change notification settings - Fork 490
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
Workspace file scanning will throw exceptions on Linux when walking large file trees #908
Comments
i found out that version 1.2.1 at least works after starting code-insiders. |
Wow! That's one I haven't seen before. I think this is due to how we're scanning your workspace's .ps[m]1 files to find function references. Is the number of files in your workspace particularly large? For some reason the implementation of System.IO.Directory.EnumerateFiles on *NIX machines is triggering Linux's ulimit setting for maximum open file handles: https://github.com/dotnet/corefx/issues/12503 The suggestion there is to increase your ulimit for open files. Here's how you can do this:
At any rate, we should be able to catch this error and log it accurately instead of crashing :) I'll fix that. Relevant stack trace:
|
what is the workspace? |
Interesting... If your ulimit is unlimited then you shouldn't be hitting this. Do you have a folder open in VS Code or just a single file? If you have a folder open, that's what I mean by "workspace". |
ah, ok. |
|
thanks. |
at least i am now able to use version 1.4.0 of ms-vscode.PowerShell. |
Glad to hear it's working for you now! I'll fix the crashing issue so that this doesn't happen for someone else :) |
Core PSES issue tracking this is here: PowerShell/PowerShellEditorServices#612 |
System Details
Operating system name and version:
openSUSE Linux
VS Code version:
1.14.0-insider
PowerShell extension version:
[email protected]
Output from
$PSVersionTable
:PSVersion 6.0.0-beta
PSEdition Core
BuildVersion 3.0.0.0
CLRVersion
GitCommitId v6.0.0-beta.2
OS Linux 4.11.6-1.ge566a4a-default Create Yeoman generator for PowerShell projects #1 SMP PREEMPT Sat Jun 17 06:45:51 UTC 2017 (e566a4a)
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Issue Description
when loading a .ps1 file and editing it and trying to use code-completion and/or suggestion, this simply does not work.
there only shows up a "loading...." popup-message which stays forever.
Attached Logs
in the logfiles i can see a "too many open files" exception.
code-insiders-logs.zip
The text was updated successfully, but these errors were encountered: