When using Oracle SQLDeveloper if I try to connect to a database with a hyphen in the ServiceName I am faced with the following problem:
IOError: Invalid connection string format, a valid format is: "host:port:sid"
Connecting to any other database we use that does not have a hyphen in the ServiceName works fine using the Basic Connection type.
At the moment I'm getting around this by placing the connection in a tns connection identifier however I find the basic connection type much simpler to work with.
SqlDeveloper Version 18.104.22.168 Build MAIN-20.78
to officially report bugs, you'll need to open a Service Request with My Oracle Support