Skip to content
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

Handle deletion of source files #22

Open
simonhorlick opened this issue Mar 27, 2021 · 0 comments
Open

Handle deletion of source files #22

simonhorlick opened this issue Mar 27, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@simonhorlick
Copy link
Owner

Currently this causes things to break. For example:

(node:53366) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/Users/simon/src/github.com/moonad/Kind/base/Fmt/motive2.kind'
(node:53366) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:53366) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
TypeError: Cannot read property 'positionAt' of undefined
    at /Users/simon/src/github.com/simonhorlick/formality-vscode/server/out/fm.js:30:33
    at Array.map (<anonymous>)
    at lspResponseToDiagnostics (/Users/simon/src/github.com/simonhorlick/formality-vscode/server/out/fm.js:27:16)
    at Object.computeDiagnostics (/Users/simon/src/github.com/simonhorlick/formality-vscode/server/out/fm.js:61:29)
    at /Users/simon/src/github.com/simonhorlick/formality-vscode/server/out/server.js:104:23
    at CallbackList.invoke (/Users/simon/src/github.com/simonhorlick/formality-vscode/server/node_modules/vscode-jsonrpc/lib/events.js:62:39)
    at Emitter.fire (/Users/simon/src/github.com/simonhorlick/formality-vscode/server/node_modules/vscode-jsonrpc/lib/events.js:121:36)
    at /Users/simon/src/github.com/simonhorlick/formality-vscode/server/node_modules/vscode-languageserver/lib/main.js:171:38
    at handleNotification (/Users/simon/src/github.com/simonhorlick/formality-vscode/server/node_modules/vscode-jsonrpc/lib/main.js:502:43)
    at processMessageQueue (/Users/simon/src/github.com/simonhorlick/formality-vscode/server/node_modules/vscode-jsonrpc/lib/main.js:273:17)
@simonhorlick simonhorlick added the bug Something isn't working label Mar 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant