!tDnwWRNkmmYtMXfaZl:nixos.org

Nix Language

1928 Members
Nix programming language360 Servers

Load older messages


SenderMessageTime
14 Jun 2021
@thecannon:matrix.orgNixCannon changed their profile picture.01:20:06
@thecannon:matrix.orgNixCannon changed their profile picture.01:22:10
@thecannon:matrix.orgNixCannon changed their display name from NixCannon to Hercules.02:41:40
@narice:matrix.orgNarice joined the room.12:32:39
@thecannon:matrix.orgNixCannon changed their display name from Hercules to NixCannon.20:10:26
@thecannon:matrix.orgNixCannonhey, can someone put a icon for this room20:16:01
15 Jun 2021
@edomfjp:privacytools.ioedomfjp joined the room.03:47:32
@andrew:mtx.rew.laandrew

aaronjanse: would you be willing to share your rust debug trace for when your language client initializes requests the definition of htop? I'm using your MR into rnix-lsp with emacs.

[2021-06-15T18:31:12Z TRACE rnix_lsp] Message: Notification(
        Notification {
            method: "textDocument/didOpen",
            params: Object({
                "textDocument": Object({
                    "languageId": String(
                        "nix",
                    ),
                    "text": String(
                        "let\n  pkgs = import <nixpkgs> {};\n  foo = pkgs.gcc;\nin\nwith pkgs; [\n  htop hello\n]\n",
                    ),
                    "uri": String(
                        "file:///tmp/test_rnix/test.nix",
                    ),
                    "version": Number(
                        0,
                    ),
                }),
            }),
        },
    )
[2021-06-15T18:31:12Z TRACE rnix_lsp] Sending notification: Notification {
        method: "textDocument/publishDiagnostics",
        params: Object({
            "diagnostics": Array([]),
            "uri": String(
                "file:///tmp/test_rnix/test.nix",
            ),
        }),
}

[2021-06-15T18:31:13Z TRACE rnix_lsp] Message: Request(
        Request {
            id: RequestId(
                U64(
                    2,
                ),
            ),
            method: "textDocument/documentLink",
            params: Object({
                "textDocument": Object({
                    "uri": String(
                        "file:///etc/nixos/test.nix",
                    ),
                }),
            }),
        },
    )
[2021-06-15T18:31:13Z TRACE rnix_lsp] Sending response: Response {
        id: RequestId(
            U64(
                2,
            ),
        ),
        result: Some(
            Array([]),
        ),
        error: None,
    }

[2021-06-15T18:31:17Z TRACE rnix_lsp] Message: Request(
        Request {
            id: RequestId(
                U64(
                    4,
                ),
            ),
            method: "textDocument/definition",
            params: Object({
                "position": Object({
                    "character": Number(
                        3,
                    ),
                    "line": Number(
                        5,
                    ),
                }),
                "textDocument": Object({
                    "uri": String(
                        "file:///tmp/test_rnix/test.nix",
                    ),
                }),
            }),
        },
    )
[2021-06-15T18:31:17Z TRACE rnix_lsp] Sending response: Response {
        id: RequestId(
            U64(
                4,
            ),
        ),
        result: Some(
            Null,
        ),
        error: None,
    }

18:40:51
@andrew:mtx.rew.laandrew *

aaronjanse: would you be willing to share your rust debug trace for when your language client initializes requests the definition of htop? I'm using your MR into rnix-lsp with emacs. It seems to be unable to find htops definition the way my client is interfacing it

[2021-06-15T18:31:12Z TRACE rnix_lsp] Message: Notification(
        Notification {
            method: "textDocument/didOpen",
            params: Object({
                "textDocument": Object({
                    "languageId": String(
                        "nix",
                    ),
                    "text": String(
                        "let\n  pkgs = import <nixpkgs> {};\n  foo = pkgs.gcc;\nin\nwith pkgs; [\n  htop hello\n]\n",
                    ),
                    "uri": String(
                        "file:///tmp/test_rnix/test.nix",
                    ),
                    "version": Number(
                        0,
                    ),
                }),
            }),
        },
    )
[2021-06-15T18:31:12Z TRACE rnix_lsp] Sending notification: Notification {
        method: "textDocument/publishDiagnostics",
        params: Object({
            "diagnostics": Array([]),
            "uri": String(
                "file:///tmp/test_rnix/test.nix",
            ),
        }),
}

[2021-06-15T18:31:13Z TRACE rnix_lsp] Message: Request(
        Request {
            id: RequestId(
                U64(
                    2,
                ),
            ),
            method: "textDocument/documentLink",
            params: Object({
                "textDocument": Object({
                    "uri": String(
                        "file:///etc/nixos/test.nix",
                    ),
                }),
            }),
        },
    )
[2021-06-15T18:31:13Z TRACE rnix_lsp] Sending response: Response {
        id: RequestId(
            U64(
                2,
            ),
        ),
        result: Some(
            Array([]),
        ),
        error: None,
    }

[2021-06-15T18:31:17Z TRACE rnix_lsp] Message: Request(
        Request {
            id: RequestId(
                U64(
                    4,
                ),
            ),
            method: "textDocument/definition",
            params: Object({
                "position": Object({
                    "character": Number(
                        3,
                    ),
                    "line": Number(
                        5,
                    ),
                }),
                "textDocument": Object({
                    "uri": String(
                        "file:///tmp/test_rnix/test.nix",
                    ),
                }),
            }),
        },
    )
[2021-06-15T18:31:17Z TRACE rnix_lsp] Sending response: Response {
        id: RequestId(
            U64(
                4,
            ),
        ),
        result: Some(
            Null,
        ),
        error: None,
    }

18:41:15
@aaronjanse:matrix.orgaaronjanseOh!18:41:27
@aaronjanse:matrix.orgaaronjanseThe PR to rnix-lsp doesn't have goto definition enabled18:41:40
@andrew:mtx.rew.laandrewah ok18:41:57
@aaronjanse:matrix.orgaaronjanseOh gosh sorry that must have been terribly confusing18:42:04
@andrew:mtx.rew.laandrewnah, I should have read more closely, "Using the evaluator for completions and goto-definition would similarly require very little modification to main.rs. "18:43:20
@andrew:mtx.rew.laandrew would you be willing to share the same logs for nix-eval-lsp? I tried doing the same with nix-eval-lsp in emacs and got a similar result. 18:45:28
@aaronjanse:matrix.orgaaronjanseOh no, another thing18:45:51
@aaronjanse:matrix.orgaaronjanseIt doesn't support paths like <nixpkgs>18:46:05
@aaronjanse:matrix.orgaaronjanseNot yet18:46:09
@aaronjanse:matrix.orgaaronjanseAaaaah18:46:11
@aaronjanse:matrix.orgaaronjanseOkay I'll implement that soonish18:46:28
@andrew:mtx.rew.laandrew ah, I changed pkgs = import /path/to/nixpkgs {}; to <nixpkgs> without considering that 18:47:12
@andrew:mtx.rew.laandrewok I'll try that18:47:23
@aaronjanse:matrix.orgaaronjanseThe main thing right now is having that rnix-lsp description reviewed, after which I'll be able to make a series of smaller PRs to add all this to rnix-lsp18:47:33
@aaronjanse:matrix.orgaaronjanseThe evaluation also needs more helpful failure modes18:47:46
@andrew:mtx.rew.laandrew Sorry for the barage of questions. Is there a way I can get debug logging in nix-eval-lsp like I can in rnix-lspwith RUST_LOG=trace? 18:54:11
@aaronjanse:matrix.orgaaronjanseAh I don't think so, since I don't recall writing debug logging statements18:57:37
@aaronjanse:matrix.orgaaronjanseAlso, no worry about questions! They take me 5 seconds to answer and probably save you at least 5 mins of time each18:58:02
@andrew:mtx.rew.laandrew

maybe I need to try vs-code. With emacs it's failing to find htop for

let
  pkgs = import /etc/nixos/nixpkgs {};
  foo = pkgs.gcc;
in
with pkgs; [
  htop hello
]
18:59:02
@aaronjanse:matrix.orgaaronjanseHmmm18:59:45
@aaronjanse:matrix.orgaaronjanseYou might want to wait a few weeks till it's more ironed out19:00:04

Show newer messages


Back to Room ListRoom Version: 6