sumo icon indicating copy to clipboard operation
sumo copied to clipboard

allow starting sumo-gui and netedit from the command line using certain flags without needing to specify a network or config

Open angelobanse opened this issue 3 months ago • 5 comments

starting sumo-gui or netedit only with the --window-size or --window-pos flags will open it correctly, but show the following messages:

netedit Message Window:

Error: No nodes loaded.
Error: Failed to build network.

sumo-gui Message Window:

Error: No network file (-n) specified.
Quitting (on error).

Status line: Loading of '' failed!

I don't want to specify any configuration or network file to be opened, I just want a fresh new instance with the given window size

angelobanse avatar Sep 02 '25 16:09 angelobanse

see also #12681

behrisch avatar Sep 09 '25 12:09 behrisch

eff3494 introduced several problems especially

  • the GUI not finishing anymore when an error occurred on config parsing with quit-on-end being active
  • no proper error message on starting sumo without a network

so I am going to revert it.

behrisch avatar Nov 06 '25 21:11 behrisch

Thanks for raising this issue. I met the same error

Error: No nodes loaded.
Error: Failed to build network.

when running the following command:

netedit -n <network>.net.xml

Yinjie-LUO avatar Dec 07 '25 12:12 Yinjie-LUO

Thanks for raising this issue. I met the same error

Error: No nodes loaded. Error: Failed to build network.

when running the following command:

netedit -n .net.xml

This is something completely different: netedit loads the network with option -s (--sumo-net-file) whereas -n is for loading --node-files.

namdre avatar Dec 07 '25 14:12 namdre

Thanks for raising this issue. I met the same error Error: No nodes loaded. Error: Failed to build network. when running the following command: netedit -n .net.xml

This is something completely different: netedit loads the network with option -s (--sumo-net-file) whereas -n is for loading --node-files.

Thanks for your clarification!

Yinjie-LUO avatar Dec 07 '25 16:12 Yinjie-LUO