e.g. :
ryan@DevPC-LX2 ~ $ rlwrap dart
/usr/lib/dart/bin/snapshots/analysis_server.dart.snapshot
{"event":"server.connected","params":{"version":"1.18.0","pid":20025,"sessionId":""}}
{"id": "1", "method": "analysis.updateContent", "params": {"files":
{"/tst.dart": {"type": "add", "content": "void main() => int."}}}}
{"id":"1","result":{}}
{"id": "2", "method": "completion.getSuggestions", "params": {"file":
"/tst.dart", "offset": 19}}
{"id":"2","error":{"code":"UNKNOWN_SOURCE","message":"Unknown source"}}
Why the UNKNOWN_SOURCE error? I already added the file using
analysis.updateContent...what am I missing here?
--
Ryan (ライアン)
Yoko Shimomura, ryo (supercell/EGOIST), Hiroyuki Sawano >> everyone else
https://refi64.com/