Skip to content

Create file fails on files with different language than LSP #141

@aleh-null

Description

@aleh-null

How to reproduce?

curl --location 'http://localhost:8080/projects/LMfDCOqQv8/files' \
--header 'Content-Type: application/json' \
--data '{"path": "tmp", "content": "something"}'

Error
error="Failed to notify didOpen while reading file tmp: Language server not found for project LMfDCOqQv8 and language " path=tmp projectId=LMfDCOqQv8

Note
Changing "path": "tmp" -> "path":"tmp.go" does not produce an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions