Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

An error occurred in the command truffle dashboard when using vscode remote development #6095

Closed
fsrm365 opened this issue Jun 15, 2023 · 3 comments

Comments

@fsrm365
Copy link

fsrm365 commented Jun 15, 2023


Issue

/code/coins/MetaCoin$ truffle dashboard
Truffle Dashboard running at http://localhost:24012
DashboardProvider RPC endpoint running at http://localhost:24012/rpc
Error: spawn xdg-open ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
at onErrorNT (node:internal/child_process:476:16)
at processTicksAndRejections (node:internal/process/task_queues:82:21)

Steps to Reproduce

I use the remote development of vscode. The remote server is a linux system. No browser installed. lead to errors.

Expected Behavior

Is it possible to add an option to the command truffle dashboard to decide whether to open the browser automatically?

Environment

  • Operating System: local:mac os 13.4 remote: ubuntu 22.04
  • Ethereum client: None
  • Truffle version (truffle version): Truffle v5.9.4 (core: 5.9.4)
  • node version (node --version): Node v18.16.0
  • npm version (npm --version): 9.7.1
@gnidan
Copy link
Contributor

gnidan commented Jun 15, 2023

Good catch! Thanks for raising this. We're implementing this for you over in #6096.

Something else you might want to be aware of: if you're trying to use truffle dashboard via a different machine, you might want to bind the hostname to 0.0.0.0 (as opposed to 127.0.0.1), since you won't be able to access the latter from your terminal machine.

@haltman-at
Copy link
Contributor

This is released now in Truffle 5.10.0!

@fsrm365
Copy link
Author

fsrm365 commented Jun 17, 2023

@gnidan @haltman-at thank you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants