GoogleCloudPlatform / cloud-code-vscode

Cloud Code for Visual Studio Code: Issues, Documentation and more
Other
420 stars 112 forks source link

YAML server crashes when monitoring temporary files #931

Open quisido opened 2 months ago

quisido commented 2 months ago

When running unit tests, my YAML server keeps crashing. Logs show that it's trying to watch temporary files.

true
node:internal/process/promises:289
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[Error: ENOENT: no such file or directory, open 'c:\...\coverage\.tmp\coverage-3006.json'] {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'open',
  path: 'c:\\...\\coverage\\.tmp\\coverage-3006.json'
}

Node.js v20.9.0
[Error - 3:38:34 PM] Server process exited with code 1.
[Error - 3:38:34 PM] The Cloud Code Yaml Support server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.

The VS Code settings set "Yaml File Matcher" to **/*.yaml, so I don't know why .json is being watched or how to denylist it.

glouischandra commented 1 month ago

@quisido Hello, can you send us a minimal repro in the form of some really simple code/unit test setup so we can have parity to repro it.

quisido commented 1 month ago

Unlikely. This was a month ago. I didn't recall which tests I was running at that time. If I see it again, I'll post back, but I think the solution not to watch non-YAML or temporary files still applies and is needed.