This repository was archived by the owner on Apr 14, 2022. It is now read-only.
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
Specified argument was out of the range of valid values. #1313
Closed
Description
Issue Type: Bug
When I open any python file "Specified argument was out of the range of valid values." notification occurs. Moreover, Python autocomplete can't work.
Note: I tried to update and downgrade Vscode version. I have tried on both version 1_35 and 1_36
Environment data
- VS Code version: Code 1.35.1 (c7d83e57cd18f18026a8162d042843bda1bcf21f, 2019-06-12T14:27:31.086Z)
- Extension version (available under the Extensions sidebar): 2019.6.22090
- OS and version: Linux x64 4.15.0-54-generic
- Python version (& distribution if applicable, e.g. Anaconda): Python 2.7.15+
- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
- Relevant/affected Python packages and their versions:
clipboard==0.0.4
,random
,selenium==3.141.0
- Jedi or Language Server? (i.e. what is
"python.jediEnabled"
set to; more info #3977): XXX
System Info
Item | Value |
---|---|
CPUs | Intel(R) Celeron(R) CPU 1007U @ 1.50GHz (2 x 945) |
GPU Status | 2d_canvas: enabled checker_imaging: disabled_off flash_3d: enabled flash_stage3d: enabled flash_stage3d_baseline: enabled gpu_compositing: enabled multiple_raster_threads: disabled_off native_gpu_memory_buffers: disabled_software rasterization: disabled_software surface_synchronization: enabled_on video_decode: unavailable_off webgl: enabled webgl2: enabled |
Load (avg) | 1, 1, 2 |
Memory (System) | 3.74GB (0.11GB free) |
Process Argv | --unity-launch |
Screen Reader | no |
VM | 0% |
Expected behaviour
XXX
Actual behaviour
XXX
Steps to reproduce:
- It is a pop-up notification in VSCode.
Logs
Pyhton Output Console
Starting Microsoft Python language server.
[Info - 12:49:58 AM] Analysis cache path: /home/ebubekirtrkr/.cache/Microsoft/Python Language Server
[Info - 12:49:58 AM] GetCurrentSearchPaths /usr/bin/python
[Info - 12:49:59 AM] Interpreter search paths:
[Info - 12:49:59 AM] /usr/lib/python2.7
[Info - 12:49:59 AM] /usr/lib/python2.7/plat-x86_64-linux-gnu
[Info - 12:49:59 AM] /usr/lib/python2.7/lib-tk
[Info - 12:49:59 AM] /usr/lib/python2.7/lib-dynload
[Info - 12:49:59 AM] /home/ebubekirtrkr/.local/lib/python2.7/site-packages
[Info - 12:49:59 AM] /usr/local/lib/python2.7/dist-packages
[Info - 12:49:59 AM] /usr/lib/python2.7/dist-packages
[Info - 12:49:59 AM] /usr/lib/python2.7/dist-packages/gtk-2.0
[Info - 12:49:59 AM] User search paths:
[Info - 12:49:59 AM] /home/ebubekirtrkr/Desktop/Codes/SeleniumScripts/~/google-cloud-sdk/platform/google_appengine/lib/webapp2-2.5.2
[Info - 12:49:59 AM] /home/ebubekirtrkr/Desktop/Codes/SeleniumScripts/~/google-cloud-sdk/platform/google_appengine
[Info - 12:49:59 AM] /home/ebubekirtrkr/Desktop/Codes/SeleniumScripts/~/google-cloud-sdk/lib
[Info - 12:49:59 AM] /home/ebubekirtrkr/Desktop/Codes/SeleniumScripts/~/google-cloud-sdk/platform/google_appengine/lib/endpoints-1.0
[Info - 12:49:59 AM] /home/ebubekirtrkr/Desktop/Codes/SeleniumScripts/~/google-cloud-sdk/platform/google_appengine/lib/protorpc-1.0
[Error - 12:50:00 AM] Server initialization failed.
Message: Specified argument was out of the range of valid values.
Code: -32000
at System.ReadOnlySpan`1..ctor(Void* pointer, Int32 length)
at Interop.Sys.DirectoryEntry.GetName(Span`1 buffer)
at System.IO.Enumeration.FileSystemEntry.get_FileName()
at System.IO.Enumeration.FileSystemEnumerableFactory.<>c__DisplayClass3_0.<UserFiles>b__1(FileSystemEntry& entry)
at System.IO.Enumeration.FileSystemEnumerable`1.DelegateEnumerator.ShouldIncludeEntry(FileSystemEntry& entry)
at System.IO.Enumeration.FileSystemEnumerator`1.MoveNext()
at System.Collections.Generic.LargeArrayBuilder`1.AddRange(IEnumerable`1 items)
at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at Microsoft.Python.Core.IO.PathUtils.EnumerateFiles(String root, String pattern, Boolean recurse, Boolean fullPaths)+MoveNext() in E:\A\_work\1\s\src\Core\Impl\IO\PathUtils.cs:line 289
at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.MoveNext()
at Microsoft.Python.Analysis.Modules.Resolution.ModuleResolutionBase.ReloadModulePaths(IEnumerable`1& rootPaths) in E:\A\_work\1\s\src\Analysis\Ast\Impl\Modules\Resolution\ModuleResolutionBase.cs:line 120
at Microsoft.Python.Analysis.Modules.Resolution.MainModuleResolution.ReloadAsync(CancellationToken cancellationToken) in E:\A\_work\1\s\src\Analysis\Ast\Impl\Modules\Resolution\MainModuleResolution.cs:line 237
at Microsoft.Python.Analysis.Modules.Resolution.MainModuleResolution.InitializeAsync(CancellationToken cancellationToken) in E:\A\_work\1\s\src\Analysis\Ast\Impl\Modules\Resolution\MainModuleResolution.cs:line 62
at Microsoft.Python.Analysis.Analyzer.PythonInterpreter.LoadBuiltinTypesAsync(String root, IServiceManager sm, CancellationToken cancellationToken) in E:\A\_work\1\s\src\Analysis\Ast\Impl\Analyzer\PythonInterpreter.cs:line 59
at Microsoft.Python.Analysis.Analyzer.PythonInterpreter.CreateAsync(InterpreterConfiguration configuration, String root, IServiceManager sm, CancellationToken cancellationToken) in E:\A\_work\1\s\src\Analysis\Ast\Impl\Analyzer\PythonInterpreter.cs:line 67
at Microsoft.Python.LanguageServer.Implementation.Server.InitializeAsync(InitializeParams params, CancellationToken cancellationToken) in E:\A\_work\1\s\src\LanguageServer\Impl\Implementation\Server.cs:line 145
at Microsoft.Python.LanguageServer.Implementation.LanguageServer.Initialize(JToken token, CancellationToken cancellationToken) in E:\A\_work\1\s\src\LanguageServer\Impl\LanguageServer.Lifetime.cs:line 36
Problems
No problems have been detected in the workspace so far.