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

Fails when bean-check returns duplicate file error #388

Open
aladmit opened this issue Aug 27, 2023 · 0 comments
Open

Fails when bean-check returns duplicate file error #388

aladmit opened this issue Aug 27, 2023 · 0 comments

Comments

@aladmit
Copy link

aladmit commented Aug 27, 2023

I'm sorry if it's the wrong place for this issue, I'm not sure where it should be fixed.

Server exists when bean-check return "Duplicate filename" error, because it doesn't have full path to file.

bean-check output example

bean-check main.beancount
<load>:0:       Duplicate filename parsed: "/Users/.../A.beancount"

LSP debug log

2023-08-27T04:32:48.009765Z DEBUG beancount_language_server::providers::diagnostics: bean-check outupt Output { status: ExitStatus(unix_wait_status(256)), stdout: "", stderr: "<load>:0:       Duplicate filename parsed: \"/Users/.../A.beancount\"\n\n\n" }
2023-08-27T04:32:48.009843Z DEBUG beancount_language_server::providers::diagnostics: bean-check generating diags
2023-08-27T04:32:48.009856Z DEBUG beancount_language_server::providers::diagnostics: line: <load>:0:       Duplicate filename parsed: "/Users/.../A.beancount"
2023-08-27T04:32:48.009903Z DEBUG beancount_language_server::providers::diagnostics: caps: Captures({0: Some("<load>:0:       Duplicate filename parsed: \"/Users/.../A.beancount\""), 1: Some("<load>"), 2: Some("0"), 3: Some("Duplicate filename parsed: \"/Users/.../A.beancount\"")})
2023-08-27T04:32:49.385414Z DEBUG lsp_server::msg: < {"id":2,"method":"shutdown","jsonrpc":"2.0"}    
2023-08-27T04:32:49.385526Z  INFO beancount_language_server::server: handling event Lsp(Request(Request { id: RequestId(I32(2)), method: "shutdown", params: Null }))
2023-08-27T04:32:49.385570Z  INFO beancount_language_server::server: handled req#2 in 16.792µs
2023-08-27T04:32:49.385634Z DEBUG lsp_server::msg: > {"jsonrpc":"2.0","id":2,"result":null}    
2023-08-27T04:32:49.389399Z DEBUG lsp_server::msg: < {"method":"exit","jsonrpc":"2.0"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant