{"action":"created","issue":{"url":"https://api.github.com/repos/natebosch/vim-lsc/issues/66","repository_url":"https://api.github.com/repos/natebosch/vim-lsc","labels_url":"https://api.github.com/repos/natebosch/vim-lsc/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/natebosch/vim-lsc/issues/66/comments","events_url":"https://api.github.com/repos/natebosch/vim-lsc/issues/66/events","html_url":"https://github.com/natebosch/vim-lsc/issues/66","id":287345911,"number":66,"title":"Help debugging Windows 10","user":{"login":"jtmcdole","id":1924313,"avatar_url":"https://avatars1.githubusercontent.com/u/1924313?v=4","gravatar_id":"","url":"https://api.github.com/users/jtmcdole","html_url":"https://github.com/jtmcdole","followers_url":"https://api.github.com/users/jtmcdole/followers","following_url":"https://api.github.com/users/jtmcdole/following{/other_user}","gists_url":"https://api.github.com/users/jtmcdole/gists{/gist_id}","starred_url":"https://api.github.com/users/jtmcdole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtmcdole/subscriptions","organizations_url":"https://api.github.com/users/jtmcdole/orgs","repos_url":"https://api.github.com/users/jtmcdole/repos","events_url":"https://api.github.com/users/jtmcdole/events{/privacy}","received_events_url":"https://api.github.com/users/jtmcdole/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-01-10T08:02:21Z","updated_at":"2018-05-22T16:57:19Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I'm attempting to get vim-lsc working in Windows.  So far:\r\n\r\n* install dart 2.0.0-dev.15.0\r\n* install dart_language_server as documented\r\n* install vim 8.0 in both \"git-bash\" and windows native\r\n* set `let g:lsc_server_commands = {'dart': 'dart_language_server.bat'}` in ~/.vimrc\r\n\r\nI can open files, but completion returns a file error. Random hacking in the vim-lsc base for debugging turned up two things; in git-bash the uri is 'file:///c/Users/...' which doesn't work. Under the cmd.exe, the file path is a string of encoded characters.  Even if I corece this into a URI that makes sense (`file:///C:/User/...'), I still get the same error.\r\n\r\nIs there a better way to go about  debugging this in vim or should I just try raw commands to the dart_language_server till I get a response that works? \r\n\r\n\r\n```shell\r\n{\"method\":\"textDocument/definition\",\"jsonrpc\":\"2.0\",\"id\":2,\"params\":{\"textDocument\":{\"uri\":\"file:///C%3a%5cUsers%5ccodefu%5cdart%5ctesla_dart%5clib%5cvehicle.dart\"},\"positio\r\nn\":{\"character\":3,\"line\":23}}}\r\ncallback!\r\npayload:  {\"jsonrpc\":\"2.0\",\"error\":{\"code\":-32000,\"message\":\"[Analyzer RequestError method: analysis.getNavigation, code: GET_NAVIGATION_INVALID_FILE, message: Error during `ana\r\nlysis.getNavigation`: invalid file.]\",\"data\":{\"full\":\"[Analyzer RequestError method: analysis.getNavigation, code: GET_NAVIGATION_INVALID_FILE, message: Error during `analysis.g\r\netNavigation`: invalid file.]\",\"stack\":\"package:dart_language_server/src/shim.dart 186          AnalysisServerAdapter.textDocumentDefinition.<fn>\\n===== asynchronous gap =======\r\n====================\\ndart:async/future.dart 222                              new Future.sync\\npackage:pool/pool.dart 126                              Pool.withResource.<fn>\\nda\r\nrt:async/zone.dart 1134                               _rootRunUnary\\ndart:async/zone.dart 1031                               _CustomZone.runUnary\\ndart:async/future_impl.dart 12\r\n9                         _FutureListener.handleValue\\ndart:async/future_impl.dart 633                         _Future._propagateToListeners.handleValueCallback\\ndart:async/futu\r\nre_impl.dart 662                         _Future._propagateToListeners\\ndart:async/future_impl.dart 477                         _Future._completeWithValue\\ndart:async/future_imp\r\nl.dart 507                         _Future._asyncComplete.<fn>\\ndart:async/zone.dart 1126                               _rootRun\\ndart:async/zone.dart 1023\r\n         _CustomZone.run\\ndart:async/zone.dart 925                                _CustomZone.runGuarded\\ndart:async/zone.dart 965                                _CustomZone.bin\r\ndCallbackGuarded.<fn>\\ndart:async/schedule_microtask.dart 41                   _microtaskLoop\\ndart:async/schedule_microtask.dart 50                   _startMicrotaskLoop\\ndart:\r\nisolate-patch/dart:isolate/isolate_patch.dart 111  _runPendingImmediateCallback\\ndart:isolate-patch/dart:isolate/isolate_patch.dart 164  _RawReceivePortImpl._handleMessage\\n\",\"r\r\nequest\":{\"method\":\"textDocument/definition\",\"jsonrpc\":\"2.0\",\"id\":2,\"params\":{\"textDocument\":{\"uri\":\"file:///C%3a%5cUsers%5ccodefu%5cdart%5ctesla_dart%5clib%5cvehicle.dart\"},\r\n\"position\":{\"character\":3,\"line\":23}}}}},\"id\":2}\r\nLSC Error!: [Analyzer RequestError method: analysis.getNavigation, code: GET_NAVIGATION_INVALID_FILE, message: Error during `analysis.getNavigation`: invalid file.]\r\n```"},"comment":{"url":"https://api.github.com/repos/natebosch/vim-lsc/issues/comments/391064646","html_url":"https://github.com/natebosch/vim-lsc/issues/66#issuecomment-391064646","issue_url":"https://api.github.com/repos/natebosch/vim-lsc/issues/66","id":391064646,"user":{"login":"natebosch","id":7528195,"avatar_url":"https://avatars3.githubusercontent.com/u/7528195?v=4","gravatar_id":"","url":"https://api.github.com/users/natebosch","html_url":"https://github.com/natebosch","followers_url":"https://api.github.com/users/natebosch/followers","following_url":"https://api.github.com/users/natebosch/following{/other_user}","gists_url":"https://api.github.com/users/natebosch/gists{/gist_id}","starred_url":"https://api.github.com/users/natebosch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natebosch/subscriptions","organizations_url":"https://api.github.com/users/natebosch/orgs","repos_url":"https://api.github.com/users/natebosch/repos","events_url":"https://api.github.com/users/natebosch/events{/privacy}","received_events_url":"https://api.github.com/users/natebosch/received_events","type":"User","site_admin":false},"created_at":"2018-05-22T16:57:19Z","updated_at":"2018-05-22T16:57:19Z","author_association":"OWNER","body":"@jtmcdole - I just published a new version of `dart_language_server` which corrected a bunch of windows path bugs. Can you try the latest and see if it makes any difference for you? It could be that the bugs were all on the server side. Let me know if it still looks like there are bugs on the client side."}}
{"actor":{"display_login":"natebosch"}}