Skip to content

serve-web needs to wait a certain amount of time after machine startup #233155

Closed
@valleyriver717

Description

Does this issue occur when all extensions are disabled?: Yes

Steps to Reproduce:

  1. Boot windows machine.
  2. Run "code serve-web" on Powershell soon.
  3. Get below error.
PS C:\Users\Server> code --disable-extensions serve-web
*
* Visual Studio Code Server
*
* By using the software, you agree to
* the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and
* the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement).
*
thread 'main' panicked at library\std\src\time.rs:433:33:
overflow when subtracting duration from instant
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
  • VS Code Version: 1.95.1
  • OS Version: Windows 10 Pro

I'm not familiar with RUST, but the following code seems to be related.

Instant::now() - Duration::from_secs(RELEASE_CHECK_INTERVAL),

It seems to be querying for version recency every hour, but within the first hour after the machine is booted, the value is a negative.
I have confirmed that it works fine when run after one hour from machine startup.

Ultimately, I would like to register this command as a service using nssm and have it accessed from machines in the same network using the nginx https proxy container.
The principle is so simple that one wonders why other users do not encounter this problem.

I'm being meticulous, but this is my first time posting to github, so apologies if I'm being unkind.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugcode-cliinsiders-releasedPatch has been released in VS Code Insiders

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions