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

Request textDocument/formatting failed. syntax error near : #6

Open
rauanmayemir opened this issue Jan 28, 2021 · 0 comments
Open

Request textDocument/formatting failed. syntax error near : #6

rauanmayemir opened this issue Jan 28, 2021 · 0 comments

Comments

@rauanmayemir
Copy link

For a simple build_def like this:

def simple_function(name:str, version:str):
    return build_rule(
        name = name,
        binary = True,
        cmd = "touch $OUT && cat 'hello' > $OUT",
        outs = ["simple"],
    )

Please language server will fail with:

10:42:32.079 WARNING: Error from handler for textDocument/formatting: .build_defs/proto/simple.build_defs:1:26: syntax error near :
[Error - 10:42:32 AM] Request textDocument/formatting failed.
  Message: .build_defs/proto/simple.build_defs:1:26: syntax error near :
  Code: -32603 

It works fine if I don't type hint arguments like def simple_function(name, version):

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