Commit Graph

4618 Commits

Author SHA1 Message Date
danrubel@google.com 9e21e89d95 gracefully degrade with response to client if fail to access client specified dart sdk
+ return response if client specifies inaccessible sdk
+ cleanup JSON encode/decode references
+ cleanup channel close processing

R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org//187603010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33355 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-05 23:30:45 +00:00
danrubel@google.com dc1d6bcacf guard against invalid request id / method
BUG=
R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org//180743020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33337 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-05 18:40:29 +00:00
danrubel@google.com 2231a169fd restructure client api to use streams
+ restructure client api to use streams for notifications and responses
+ client waits for server shutdown response
+ cleanup channel tests

R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org//185313002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33330 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-05 15:41:08 +00:00
danrubel@google.com dbb20f6746 split client and server channels
R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org//182903005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33131 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-27 20:23:37 +00:00
danrubel@google.com c1c75d48ae update client to use channel rather than socket
BUG=
R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org//176873015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33080 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-26 20:11:00 +00:00
danrubel@google.com ee9f48440f Error handling and code cleanup
+ cleanup futures code and error handling
+ send message to request server shutdown
+ normalize strings to match codebase

R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org//180253005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33063 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-26 14:39:40 +00:00
danrubel@google.com ecdbe3b6ab Analysis server connect fixes
+ new option for connecting to already running analysis server
+ gracefully handle unknown arguments
+ fix bugs in analysis server websocket connect

R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org//175183008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32974 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-24 17:41:22 +00:00
danrubel@google.com a633f22d76 first cut cmdline analysis server launcher
BUG=
R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org//175173002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32903 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-21 15:54:21 +00:00
danrubel@google.com 2743d06073 set analysis server exitCode on invalid cmdline arguments
BUG=
R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org//171363007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32902 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-21 15:42:22 +00:00
brianwilkerson@google.com 66590d7363 Use Future for error handling. This appears to be the recommended way of doing things because it is safer.
R=devoncarew@google.com, scheglov@google.com

Review URL: https://codereview.chromium.org//166703004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32748 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-18 17:20:14 +00:00
brianwilkerson@google.com 238ca64ce9 Server code clean-up
R=scheglov@google.com

Review URL: https://codereview.chromium.org//139983004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32466 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-08 15:25:37 +00:00
brianwilkerson@google.com a9a2021517 Fix test failures
Review URL: https://codereview.chromium.org//152893004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32372 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-06 18:01:32 +00:00
brianwilkerson@google.com e28a252941 Add structured error support
R=scheglov@google.com

Review URL: https://codereview.chromium.org//138833010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32366 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-06 17:11:39 +00:00
brianwilkerson@google.com d5c3a07611 Add top-level server
R=danrubel@google.com, devoncarew@google.com

Review URL: https://codereview.chromium.org//138163006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32008 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-25 18:46:04 +00:00
brianwilkerson@google.com 93ce7745ca Fix the build
Review URL: https://codereview.chromium.org//145973002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31983 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-23 19:51:08 +00:00
brianwilkerson@google.com 8a0bf15dcf Add server and request handlers
Review URL: https://codereview.chromium.org//137703010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31982 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-23 18:50:26 +00:00
brianwilkerson@google.com fe37bca654 Basic communication protocol for server
R=devoncarew@google.com, scheglov@google.com

Review URL: https://codereview.chromium.org//137853026

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31951 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-21 03:20:52 +00:00
brianwilkerson@google.com 5388d0ce8b Logging support for server
R=devoncarew@google.com, scheglov@google.com

Review URL: https://codereview.chromium.org//136333008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31926 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-17 16:52:25 +00:00