-
Notifications
You must be signed in to change notification settings - Fork 232
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
Cadl language server fails in VS 2022: System.ComponentModel.Win32Exception: The system cannot find the file specified #507
Comments
Looking at this, we should be giving an actionable error when cadl-server can't be found. |
|
For VS, what happens after you ignore the assert? That dialog wouldn't be seen in release builds |
Ah, OK, then it should be easy to fix the message. I think we could do: Process process;
try {
process = Process.Start(info);
} catch (Win32Exception ex) {
throw new InvalidOperationException("Custom message", ex);
} Or we could throw a better exception if we know the cadl-server is not found before we get here. |
yeah and in |
Here's the exception stack trace from VS activity log:
The text was updated successfully, but these errors were encountered: