Open mjhagen opened 3 years ago
My team of developers is encountering the same issue. I can manually fix the issue by adding a carriage return to the host file before starting the 2nd or 3rd server. This isn't ideal but is a workaround for the time being.
Below is the full version information for reference: Version Info: CommandBox 5.2.1+00295 commandbox-hostupdater: (1.8.0) → forgebox version: (1.8.0) macOS Big Sur: 11.2.3
Thanks, Jason
P.S. This error does not happen when running on a Windows 10 machine. So I’m guessing it has something to do w/ the new line character.
@mjhagen and @jdaiger Ortus is taking over the maintenance of this module in this new repo https://github.com/commandbox-modules/commandbox-hostupdater
Is this issue still around, and if so, can one of you submit a PR to the new repo to fix it?
When I start a second server on Big Sur (I can't test other macOS versions), it looks like it adds the new hosts file entry without a line break. So, it gets added after the #CommandBox comment. This results in the following error: