{"action":"created","issue":{"url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/issues/554","repository_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn","labels_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/issues/554/labels{/name}","comments_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/issues/554/comments","events_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/issues/554/events","html_url":"https://github.com/OmniSharp/omnisharp-roslyn/issues/554","id":154917223,"number":554,"title":"Exception thrown when autocomplete is called","user":{"login":"jtbm37","id":536407,"avatar_url":"https://avatars.githubusercontent.com/u/536407?v=3","gravatar_id":"","url":"https://api.github.com/users/jtbm37","html_url":"https://github.com/jtbm37","followers_url":"https://api.github.com/users/jtbm37/followers","following_url":"https://api.github.com/users/jtbm37/following{/other_user}","gists_url":"https://api.github.com/users/jtbm37/gists{/gist_id}","starred_url":"https://api.github.com/users/jtbm37/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtbm37/subscriptions","organizations_url":"https://api.github.com/users/jtbm37/orgs","repos_url":"https://api.github.com/users/jtbm37/repos","events_url":"https://api.github.com/users/jtbm37/events{/privacy}","received_events_url":"https://api.github.com/users/jtbm37/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-15T16:33:51Z","updated_at":"2016-05-15T16:42:02Z","closed_at":null,"body":"At this time, I am on the latest on `dev` branch. Latest commit `6d410ed432da8a11988f9ab9668a77599c07fa76`. \r\n\r\n`dotnet --info`\r\n```\r\n.NET Command Line Tools (1.0.0-preview1-002700)\r\n\r\nProduct Information:\r\n Version:     1.0.0-preview1-002700\r\n Commit Sha:  0336f6bb34\r\n\r\nRuntime Environment:\r\n OS Name:     Windows\r\n OS Version:  6.1.7601\r\n OS Platform: Windows\r\n RID:         win7-x64\r\n```\r\n\r\n```\r\n      POST - /autocomplete\r\ndbug: OmniSharp.Middleware.LoggingMiddleware[0]\r\n      ************ Headers ************\r\ndbug: OmniSharp.Middleware.LoggingMiddleware[0]\r\n      Content-Length - 8427\r\ndbug: OmniSharp.Middleware.LoggingMiddleware[0]\r\n      Content-Type - application/x-www-form-urlencoded\r\ndbug: OmniSharp.Middleware.LoggingMiddleware[0]\r\n      Accept - */*\r\ndbug: OmniSharp.Middleware.LoggingMiddleware[0]\r\n      Accept-Encoding - deflate, gzip\r\ndbug: OmniSharp.Middleware.LoggingMiddleware[0]\r\n      Expect - 100-continue\r\ndbug: OmniSharp.Middleware.LoggingMiddleware[0]\r\n      Host - 192.168.56.101:2000\r\ndbug: OmniSharp.Middleware.LoggingMiddleware[0]\r\n      User-Agent - curl/7.38.0\r\ndbug: OmniSharp.Middleware.LoggingMiddleware[0]\r\n      ************  Body ************\r\ndbug: OmniSharp.Middleware.LoggingMiddleware[0]\r\n      {\"WantDocumentationForEveryCompletionResult\":false,\"WantMethodHeader\":true,\"WantReturnType\":true,\"WantSnippet\":true,\"WantImportableTypes\":false,\"WordToComplete\":\"invo\",\"FileName\":\"c:\\\\Users\\\\jtbm37\\\\Github\\\\omnisharp-roslyn\\\\src\\\\OmniSharp.Roslyn.CSharp\\\\Services\\\\Signatures\\\\SignatureHelpService.cs\",\"Line\":\"27\",\"Column\":\"17\",\"Buffer\":\"[...]\"}\r\nfail: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware[0]\r\n      An unhandled exception has occurred: The type initializer for 'OmniSharp.CSharpSyntaxContext' threw an exception.\r\nSystem.TypeInitializationException: The type initializer for 'OmniSharp.CSharpSyntaxContext' threw an exception. ---> System.IO.FileLoadException: Could not load file or assembly 'Microsoft.CodeAnalysis.Workspaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)\r\n   at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)\r\n   at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName)\r\n   at System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)\r\n   at System.Type.GetType(String typeName, Boolean throwOnError)\r\n   at OmniSharp.CSharpSyntaxContext..cctor() in C:\\Users\\jtbm37\\Github\\omnisharp-roslyn\\src\\OmniSharp.Roslyn.CSharp\\Workers\\Intellisense\\CSharpSyntaxContext.cs:line 435\r\n   --- End of inner exception stack trace ---\r\n   at OmniSharp.CSharpSyntaxContext.CreateContext(Workspace workspace, SemanticModel semanticModel, Int32 position, CancellationToken cancellationToken)\r\n   at OmniSharp.Roslyn.CSharp.Services.Intellisense.IntellisenseService.AddKeywords(HashSet`1 completions, SemanticModel model, Int32 position, Boolean wantKind, String wordToComplete) in C:\\Users\\jtbm37\\Github\\omnisharp-roslyn\\src\\OmniSharp.Roslyn.CSharp\\Services\\Intellisense\\IntellisenseService.cs:line 74\r\n   at OmniSharp.Roslyn.CSharp.Services.Intellisense.IntellisenseService.<Handle>d__3.MoveNext() in C:\\Users\\jtbm37\\Github\\omnisharp-roslyn\\src\\OmniSharp.Roslyn.CSharp\\Services\\Intellisense\\IntellisenseService.cs:line 46\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at OmniSharp.Middleware.Endpoint.EndpointHandler`2.<HandleSingleRequest>d__18.MoveNext() in C:\\Users\\jtbm37\\Github\\omnisharp-roslyn\\src\\OmniSharp.Host\\Middleware\\Endpoint\\EndpointHandler.cs:line 0\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at OmniSharp.Middleware.Endpoint.EndpointHandler`2.<Process>d__16.MoveNext() in C:\\Users\\jtbm37\\Github\\omnisharp-roslyn\\src\\OmniSharp.Host\\Middleware\\Endpoint\\EndpointHandler.cs:line 130\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at OmniSharp.Middleware.EndpointMiddleware.<Invoke>d__7.MoveNext() in C:\\Users\\jtbm37\\Github\\omnisharp-roslyn\\src\\OmniSharp.Host\\Middleware\\EndpointMiddleware.cs:line 91\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>d__6.MoveNext()\r\ndbug: OmniSharp.Middleware.LoggingMiddleware[0]\r\n      ************  Response ************\r\ninfo: OmniSharp.Middleware.LoggingMiddleware[0]\r\n      /autocomplete: 500 79ms\r\n```\r\n(For the sake of brevity, I replaced the buffer content with `[...]`)\r\n\r\nIt is trying to load Microsoft.CodeAnalysis.Workspaces v1.0.0.0 whereas the one on disk is v1.3.0.60429.\r\n"},"comment":{"url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/issues/comments/219296387","html_url":"https://github.com/OmniSharp/omnisharp-roslyn/issues/554#issuecomment-219296387","issue_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/issues/554","id":219296387,"user":{"login":"jtbm37","id":536407,"avatar_url":"https://avatars.githubusercontent.com/u/536407?v=3","gravatar_id":"","url":"https://api.github.com/users/jtbm37","html_url":"https://github.com/jtbm37","followers_url":"https://api.github.com/users/jtbm37/followers","following_url":"https://api.github.com/users/jtbm37/following{/other_user}","gists_url":"https://api.github.com/users/jtbm37/gists{/gist_id}","starred_url":"https://api.github.com/users/jtbm37/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtbm37/subscriptions","organizations_url":"https://api.github.com/users/jtbm37/orgs","repos_url":"https://api.github.com/users/jtbm37/repos","events_url":"https://api.github.com/users/jtbm37/events{/privacy}","received_events_url":"https://api.github.com/users/jtbm37/received_events","type":"User","site_admin":false},"created_at":"2016-05-15T16:42:02Z","updated_at":"2016-05-15T16:42:02Z","body":"Note that other functions like `findsymbols` or `gotodefinition` do work fine."}}