-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[v2.1638-vsc1.39.2] Unable to start latest CS with HTTPS #1109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This behaviour is caused by this condition on vscode/src/vs/platform/environment/node/argv.ts#L184 String properties require an argument, so the condition fails and the key is not added. Perhaps we could modify the |
PR merged into October 2019 milestone |
Yeah it broke when we updated to VS Code 1.39.2. I ended up just manually checking the arguments for the existence of Will have a new release out before the end of today. |
Although the "proper" solution would probably be to add a new type that can be either boolean or string and parse it accordingly. |
Might run in to lexical parsing issues though |
I did some testing and I think the only issue we have is if something like this is done:
Where we're trying to open a directory called I was also concerned about something like:
Where the base path is literally There might be other scenarios I'm missing; do you have any thoughts? |
Yup, as long as it's enclosed it won't be matched. But yeah, I think it's better to address the parsing than to monkey patch a fix I think b8e6369 introduces some unwanted rigidity into the software (Checking on command line args). Perhaps it should be extensible to allow all of the option flags to be set via environment variables PR has been merged into vscode microsoft/vscode@f2c1232 and I believe that will break your check. |
Ahhh I see what you're saying. Thanks for the heads up on that PR!! So we could just revert the aforementioned monkey-patch and then patch in the fix from microsoft/vscode@f2c1232 until it makes its way into |
So after all this... How to you specify Give it a blank argument as I have done in the past? Or just a bad filename? It isn't just that it failed, it is also documenting how to specify no argument! In my thinking adding an option of Tesing new release.... |
@antofthy You should be able to do either $> ./code-server --cert --port 1111
info Server listening on https://localhost:1111
info - Password is b6d827dd8816cea54a9169a9
info - To use your own password, set the PASSWORD environment variable
info - To disable use `--auth none`
info - Using generated certificate and key for HTTPS $> ./code-server --cert "" --port 2222
info Server listening on https://localhost:2222
info - Password is 1608e07b2adac35565001d46
info - To use your own password, set the PASSWORD environment variable
info - To disable use `--auth none`
info - Using generated certificate and key for HTTPS |
code-server
version: 2.1638-vsc1.39.2Description
Release notes state...
code-server --help
says...Neither of which has changed from the previous beta release 2.1523-vsc1.38.1
So I run with the same arguments that was working before...
But it fails to set up a HTTPS with self-signed certificate
Which brings us back to a point I made before in #1052 , now closed.
How can you specify no path for
--cert
option without that option being the last option in the command line?Assuming that is the problem, I made the --cert option the last option with nothing following...
produces the same result
ASIDE: I have noted before that I no longer not need to specify
--auth password
as it is again the default, as it was for CS v1The text was updated successfully, but these errors were encountered: