fzyzcjy / dart_interactive

REPL (interactive shell) for Dart, supporting 3rd party packages, hot reload, and full grammar
https://github.com/fzyzcjy/dart_interactive
MIT License
217 stars 13 forks source link

fails to launch #92

Closed asmrtfm closed 3 months ago

asmrtfm commented 4 months ago

Following these instructions:

"Getting started"

Install (just standard procedure of installing global dart packages): dart pub global activate interactive Use (just a normal binary): interactive

Results in this error:

Run: /usr/bin/flutter/bin/cache/dart-sdk/bin/dart [--enable-vm-service=34467, file:///home/me/.pub-cache/global_packages/interactive/bin/interactive.dart-3.4.0.snapshot, --vm-service-was-enabled]
Workspace: /tmp/dart_interactive_workspace_2024-05-14T174404964295
The Dart VM service is listening on http://127.0.0.1:34467/rR3gWUo72JQ=/
The Dart DevTools debugger and profiler is available at: http://127.0.0.1:34467/rR3gWUo72JQ=/devtools?uri=ws://127.0.0.1:34467/rR3gWUo72JQ=/ws
welcome[bot] commented 4 months ago

Hi! Thanks for opening your first issue here! :smile:

fzyzcjy commented 4 months ago

Hi, do you see >>>?

For me I see:

(base) ➜  research_mono git:(master) interactive
Run: /Users/tom/fvm/versions/3.19.2/bin/cache/dart-sdk/bin/dart [--enable-vm-service=62128, file:///Users/tom/.pub-cache/global_packages/interactive/bin/interactive.dart-3.3.0.snapshot, --vm-service-was-enabled]
The Dart VM service is listening on http://127.0.0.1:62128/ID8JjrzMOfw=/
The Dart DevTools debugger and profiler is available at: http://127.0.0.1:62128/ID8JjrzMOfw=/devtools?uri=ws://127.0.0.1:62128/ID8JjrzMOfw=/ws
Workspace: /var/folders/j5/j6ymn7yd70564hzt31pq_0g80000gn/T/dart_interactive_workspace_2024-05-15T082218312739
>>> a=1
1

And btw, check whether you have http proxy set (i.e. disable proxies if any), since there is possibility the code cannot connect to dart service due to this.

asmrtfm commented 4 months ago

no it just dumps me back out to my normal bash prompt I do not have any proxies. I'm running on ubuntu 22.04 with dart installed via the instructions on their page using their official binary (not snap)

fzyzcjy commented 4 months ago

Hmm, so I guess one way is to run it by source (git clone the repo and execute dart ... in a command), and add a lot of print here and there (or use your favorite debugger), to see where it gets stucked.

asmrtfm commented 3 months ago

didn't have time to gather/provide actually valuable debug data and it felt rude to leave this open.