How to change the default port number in Dart Editor

How to change server port number in Dart Editor? Because the local cat uses 8080. It seems that this port has changed from 3030 to 8080 after updating to version 1.5.0.

--- 9:41:37 AM Starting pub serve : podium --- Loading source assets... (0.6s) Loading di transformers... (2.2s) Loading angular transformers... (0.9s) Failed to create server socket (OS Error: An attempt was made to access a socket in a way forbidden by its access permissions. , errno = 10013), address = 127.0.0.1, port = 8080 
+6
source share
2 answers

You can start pub from the command line pub serve --port 1234 from the command line and use a custom launch configuration with a specific URL that points to your pub.

dartbug.com is currently unavailable (at least for me) to check if there is already a request for a function, otherwise you should create it, but I think I saw it a while ago, but I'm not sure.

+3
source

I am on the OSx platform, and I had the same error after updating only the SDK folder, without updating any other tools, the ect editor ...

I decided temporarily with running pub serv manually using terminal

 pub serve --port 1234 

But to solve the problem in the Eclipse editor, I have to clear all the Dart installation files using "AppCleaner" and reinstall everything with a new installation. With this solution, I solved the problem.

0
source

Source: https://habr.com/ru/post/970016/


All Articles