René's URL Explorer Experiment


Title: ArgumentNullException in GetConstantValueAsString crashes process · Issue #353 · microsoft/python-language-server · GitHub

Open Graph Title: ArgumentNullException in GetConstantValueAsString crashes process · Issue #353 · microsoft/python-language-server

X Title: ArgumentNullException in GetConstantValueAsString crashes process · Issue #353 · microsoft/python-language-server

Description: Having exactly this in a file causes the language server to crash until VSC gives up trying to restart it: from typing import TypeVar def cla _ = TypeVar() Found while making minimal examples for generics. Assertion Failed System.Argumen...

Open Graph Description: Having exactly this in a file causes the language server to crash until VSC gives up trying to restart it: from typing import TypeVar def cla _ = TypeVar() Found while making minimal examples for g...

X Description: Having exactly this in a file causes the language server to crash until VSC gives up trying to restart it: from typing import TypeVar def cla _ = TypeVar() Found while making minimal examples for g...

Opengraph URL: https://github.com/microsoft/python-language-server/issues/353

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ArgumentNullException in GetConstantValueAsString crashes process","articleBody":"Having exactly this in a file causes the language server to crash until VSC gives up trying to restart it:\r\n\r\n```python\r\nfrom typing import TypeVar\r\n\r\ndef cla\r\n\r\n_ = TypeVar()\r\n```\r\n\r\nFound while making minimal examples for generics.\r\n\r\n```\r\nAssertion Failed\r\nSystem.ArgumentNullException: Value cannot be null.\r\nParameter name: source\r\n   at System.Linq.Enumerable.Select[TSource,TResult](IEnumerable`1 source, Func`2 selector)\r\n   at Microsoft.PythonTools.Analysis.AnalysisValueSetExtensions.GetConstantValueAsString(IAnalysisSet values) in C:\\Users\\jabaile\\python-language-server\\src\\Analysis\\Engine\\Impl\\AnalysisValueSetExtensions.cs:line 246\r\n   at Microsoft.PythonTools.Analysis.Values.TypingModuleInfo.\u003c\u003ec__DisplayClass6_0.\u003cNewType_Call\u003eb__0(Node n) in C:\\Users\\jabaile\\python-language-server\\src\\Analysis\\Engine\\Impl\\Values\\TypingModuleInfo.cs:line 56\r\n   at Microsoft.PythonTools.Analysis.Analyzer.InterpreterScope.GetOrMakeNodeValue(Node node, NodeValueKind kind, Func`2 maker) in C:\\Users\\jabaile\\python-language-server\\src\\Analysis\\Engine\\Impl\\Analyzer\\InterpreterScope.cs:line 381\r\n   at Microsoft.PythonTools.Analysis.Values.TypingModuleInfo.NewType_Call(Node node, AnalysisUnit unit, IAnalysisSet[] args, NameExpression[] keywordArgNames) in C:\\Users\\jabaile\\python-language-server\\src\\Analysis\\Engine\\Impl\\Values\\TypingModuleInfo.cs:line 55\r\n   at Microsoft.PythonTools.Analysis.Values.SpecializedCallable.Call(Node node, AnalysisUnit unit, IAnalysisSet[] args, NameExpression[] keywordArgNames) in C:\\Users\\jabaile\\python-language-server\\src\\Analysis\\Engine\\Impl\\Values\\SpecializedCallable.cs:line 49\r\n   at Microsoft.PythonTools.Analysis.Analyzer.ExpressionEvaluator.EvaluateCall(ExpressionEvaluator ee, Node node) in C:\\Users\\jabaile\\python-language-server\\src\\Analysis\\Engine\\Impl\\Analyzer\\ExpressionEvaluator.cs:line 378\r\n   at Microsoft.PythonTools.Analysis.Analyzer.ExpressionEvaluator.EvaluateWorker(Node node) in C:\\Users\\jabaile\\python-language-server\\src\\Analysis\\Engine\\Impl\\Analyzer\\ExpressionEvaluator.cs:line 211\r\n   at Microsoft.PythonTools.Analysis.Analyzer.ExpressionEvaluator.Evaluate(Expression node) in C:\\Users\\jabaile\\python-language-server\\src\\Analysis\\Engine\\Impl\\Analyzer\\ExpressionEvaluator.cs:line 55\r\n   at Microsoft.PythonTools.Analysis.Analyzer.DDG.Walk(AssignmentStatement node) in C:\\Users\\jabaile\\python-language-server\\src\\Analysis\\Engine\\Impl\\Analyzer\\DDG.cs:line 137\r\n   at Microsoft.PythonTools.Parsing.Ast.AssignmentStatement.Walk(PythonWalker walker) in C:\\Users\\jabaile\\python-language-server\\src\\Analysis\\Engine\\Impl\\Parsing\\Ast\\AssignmentStatement.cs:line 41\r\n   at Microsoft.PythonTools.Analysis.Analyzer.DDG.Walk(SuiteStatement node) in C:\\Users\\jabaile\\python-language-server\\src\\Analysis\\Engine\\Impl\\Analyzer\\DDG.cs:line 665\r\n   at Microsoft.PythonTools.Parsing.Ast.SuiteStatement.Walk(PythonWalker walker) in C:\\Users\\jabaile\\python-language-server\\src\\Analysis\\Engine\\Impl\\Parsing\\Ast\\SuiteStatement.cs:line 34\r\n   at Microsoft.PythonTools.Parsing.Ast.PythonAst.Walk(PythonWalker walker) in C:\\Users\\jabaile\\python-language-server\\src\\Analysis\\Engine\\Impl\\Parsing\\Ast\\PythonAst.cs:line 92\r\n   at Microsoft.PythonTools.Analysis.AnalysisUnit.AnalyzeWorker(DDG ddg, CancellationToken cancel) in C:\\Users\\jabaile\\python-language-server\\src\\Analysis\\Engine\\Impl\\AnalysisUnit.cs:line 154\r\n   at Microsoft.PythonTools.Analysis.AnalysisUnit.Analyze(DDG ddg, CancellationToken cancel) in C:\\Users\\jabaile\\python-language-server\\src\\Analysis\\Engine\\Impl\\AnalysisUnit.cs:line 139\r\n   at Microsoft.PythonTools.Analysis.Analyzer.DDG.Analyze(Deque`1 queue, CancellationToken cancel, Action`1 reportQueueSize, Int32 reportQueueInterval) in C:\\Users\\jabaile\\python-language-server\\src\\Analysis\\Engine\\Impl\\Analyzer\\DDG.cs:line 75\r\n   at Microsoft.PythonTools.Analysis.PythonAnalyzer.AnalyzeQueuedEntries(CancellationToken cancel) in C:\\Users\\jabaile\\python-language-server\\src\\Analysis\\Engine\\Impl\\PythonAnalyzer.cs:line 907\r\n   at Microsoft.PythonTools.Intellisense.AnalysisQueue.GroupAnalysis.Analyze(CancellationToken cancel) in C:\\Users\\jabaile\\python-language-server\\src\\Analysis\\Engine\\Impl\\Intellisense\\AnalysisQueue.cs:line 229\r\n   at Microsoft.PythonTools.Intellisense.AnalysisQueue.HandleAnalyzable(IAnalyzable item, AnalysisPriority priority, CancellationToken cancellationToken) in C:\\Users\\jabaile\\python-language-server\\src\\Analysis\\Engine\\Impl\\Intellisense\\AnalysisQueue.cs:line 152\r\n   at Microsoft.PythonTools.Intellisense.AnalysisQueue.ConsumerLoop() in C:\\Users\\jabaile\\python-language-server\\src\\Analysis\\Engine\\Impl\\Intellisense\\AnalysisQueue.cs:line 64\r\n\r\n   at Microsoft.Python.LanguageServer.Implementation.Server.Analysis_UnhandledException(Object sender, UnhandledExceptionEventArgs e) in C:\\Users\\jabaile\\python-language-server\\src\\LanguageServer\\Impl\\Implementation\\Server.cs:line 116\r\n   at Microsoft.PythonTools.Intellisense.AnalysisQueue.ConsumerLoop() in C:\\Users\\jabaile\\python-language-server\\src\\Analysis\\Engine\\Impl\\Intellisense\\AnalysisQueue.cs:line 64\r\n   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()\r\n   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining)\r\n   at System.Threading.Tasks.Task.RunContinuations(Object continuationObject)\r\n   at System.Threading.Tasks.Task`1.TrySetResult(TResult result)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetExistingTaskResult(TResult result)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(TResult result)\r\n   at Microsoft.PythonTools.Intellisense.AnalysisQueue.ConsumeAsync() in C:\\Users\\jabaile\\python-language-server\\src\\Analysis\\Engine\\Impl\\Intellisense\\AnalysisQueue.cs:line 89\r\n   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()\r\n   at System.Threading.ThreadPoolWorkQueue.Dispatch()\r\n```","author":{"url":"https://github.com/jakebailey","@type":"Person","name":"jakebailey"},"datePublished":"2018-11-06T21:01:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/353/python-language-server/issues/353"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8fb8e30e-6718-e656-7254-0e87b8c3212c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idECEA:2E6A7A:33ADE:46FE6:6A4E20F4
html-safe-noncecf030226daa8d360c42eeccd596d2e8ae6b32551a69eea395c627216267b02dc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQ0VBOjJFNkE3QTozM0FERTo0NkZFNjo2QTRFMjBGNCIsInZpc2l0b3JfaWQiOiI1MDUxNDEzNzc4NTIxNzkyNzU2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaccba22b3bc86b300ca66ea26eb26fd7bdd95ec796379f933828e2fa72889f6ecb
hovercard-subject-tagissue:378031475
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/python-language-server/353/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4919d0d7880865fb74fddc3ff7355c9725dac53b3c94fc8852d3d76ef885006b/microsoft/python-language-server/issues/353
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4919d0d7880865fb74fddc3ff7355c9725dac53b3c94fc8852d3d76ef885006b/microsoft/python-language-server/issues/353
og:image:altHaving exactly this in a file causes the language server to crash until VSC gives up trying to restart it: from typing import TypeVar def cla _ = TypeVar() Found while making minimal examples for g...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejakebailey
hostnamegithub.com
expected-hostnamegithub.com
None030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0
turbo-cache-controlno-preview
go-importgithub.com/microsoft/python-language-server git https://github.com/microsoft/python-language-server.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id145901977
octolytics-dimension-repository_nwomicrosoft/python-language-server
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id145901977
octolytics-dimension-repository_network_root_nwomicrosoft/python-language-server
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release5fe497b4815fcce3df76c0e246faa739a82c3124
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/python-language-server/issues/353#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fpython-language-server%2Fissues%2F353
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fpython-language-server%2Fissues%2F353
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2Fpython-language-server
Reloadhttps://github.com/microsoft/python-language-server/issues/353
Reloadhttps://github.com/microsoft/python-language-server/issues/353
Reloadhttps://github.com/microsoft/python-language-server/issues/353
Please reload this pagehttps://github.com/microsoft/python-language-server/issues/353
microsoft https://github.com/microsoft
python-language-serverhttps://github.com/microsoft/python-language-server
Notifications https://github.com/login?return_to=%2Fmicrosoft%2Fpython-language-server
Fork 131 https://github.com/login?return_to=%2Fmicrosoft%2Fpython-language-server
Star 921 https://github.com/login?return_to=%2Fmicrosoft%2Fpython-language-server
Code https://github.com/microsoft/python-language-server
Issues 309 https://github.com/microsoft/python-language-server/issues
Pull requests 6 https://github.com/microsoft/python-language-server/pulls
Projects https://github.com/microsoft/python-language-server/projects
Models https://github.com/microsoft/python-language-server/models
Wiki https://github.com/microsoft/python-language-server/wiki
Security and quality 0 https://github.com/microsoft/python-language-server/security
Insights https://github.com/microsoft/python-language-server/pulse
Code https://github.com/microsoft/python-language-server
Issues https://github.com/microsoft/python-language-server/issues
Pull requests https://github.com/microsoft/python-language-server/pulls
Projects https://github.com/microsoft/python-language-server/projects
Models https://github.com/microsoft/python-language-server/models
Wiki https://github.com/microsoft/python-language-server/wiki
Security and quality https://github.com/microsoft/python-language-server/security
Insights https://github.com/microsoft/python-language-server/pulse
ArgumentNullException in GetConstantValueAsString crashes processhttps://github.com/microsoft/python-language-server/issues/353#top
https://github.com/MikhailArkhipov
Nov 2018.1https://github.com/microsoft/python-language-server/milestone/4
https://github.com/jakebailey
jakebaileyhttps://github.com/jakebailey
on Nov 6, 2018https://github.com/microsoft/python-language-server/issues/353#issue-378031475
MikhailArkhipovhttps://github.com/MikhailArkhipov
Nov 2018.1https://github.com/microsoft/python-language-server/milestone/4
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.