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

Two minor issues beyond the novice's knowledge #466

Closed
cyear opened this issue Feb 2, 2023 · 9 comments
Closed

Two minor issues beyond the novice's knowledge #466

cyear opened this issue Feb 2, 2023 · 9 comments
Labels
duplicate This issue or pull request already exists env Issues caused by incorrect environment settings (terminal, package manager, etc.) usage User-specific issues

Comments

@cyear
Copy link

cyear commented Feb 2, 2023

We've released version v1.0.0!
It has brought about some major changes that would require a manual cleanup.

Visit https://github.com/ayamir/nvimdots/releases to see the release notes.

To silence this message, remove it from `init.lua` at root directory!

and

[mason-lspconfig.nvim] installing efm
[mason-lspconfig.nvim] installing clangd
[mason-lspconfig.nvim] installing gopls
Spawning language server with cmd: `efm-langserver` failed. The language server is either not installed, missing from PATH, or not executable.

1. How to remove the version v1.0.0 error, in "init.lua"

2. Mason always reports an error, reinstall the same

@ayamir
Copy link
Owner

ayamir commented Feb 2, 2023

  1. Comment these lines:

    nvimdots/init.lua

    Lines 5 to 17 in 09b2c74

    vim.schedule(function()
    vim.notify_once(
    [[
    We've released version v1.0.0!
    It has brought about some major changes that would require a manual cleanup.
    Visit https://github.com/ayamir/nvimdots/releases to see the release notes.
    To silence this message, remove it from `init.lua` at root directory!
    ]],
    vim.log.levels.WARN
    )
    end)
  2. efm is required for formatters so it should can be found in your PATH. Otherwise formatter won't work. clangd and gopls are lsp server of c/cpp and go. You can execute MasonInstall efm manually and show we the error log.

@cyear
Copy link
Author

cyear commented Feb 2, 2023

  1. Comment these lines:

    nvimdots/init.lua

    Lines 5 to 17 in 09b2c74

    vim.schedule(function()
    vim.notify_once(
    [[
    We've released version v1.0.0!
    It has brought about some major changes that would require a manual cleanup.
    Visit https://github.com/ayamir/nvimdots/releases to see the release notes.
    To silence this message, remove it from `init.lua` at root directory!
    ]],
    vim.log.levels.WARN
    )
    end)
  2. efm is required for formatters so it should can be found in your PATH. Otherwise formatter won't work. clangd and gopls are lsp server of c/cpp and go. You can execute MasonInstall efm manually and show we the error log.
  efm                                                        │
┆  11 │ │      ▼ Displaying full log                                       │
┆  12 │ │        can't load package: package github.com/mattn/efm-langserve│
┆  13 │ │        spawn: go failed with exit code 1 and signal 0.

@Jint-lzxy
Copy link
Collaborator

See #306 (comment). Use your favorite package manager to install go, currently it is either not installed, missing from PATH, or not executable.

@CharlesChiuGit
Copy link
Collaborator

See #306 (comment). Use your favorite package manager to install go, currently it is either not installed, missing from PATH, or not executable.

second with this, since efm is written in golang, so u need go pkg manager to install it.

@Jint-lzxy
Copy link
Collaborator

You may also have a look at the latter part of #370 (comment). It briefly introduces LSP and its features.

@Jint-lzxy Jint-lzxy added duplicate This issue or pull request already exists usage User-specific issues env Issues caused by incorrect environment settings (terminal, package manager, etc.) labels Feb 2, 2023
@cyear
Copy link
Author

cyear commented Feb 2, 2023

See #306 (comment). Use your favorite package manager to install go, currently it is either not installed, missing from PATH, or not executable.

go version go1.13.8 linux/amd64

also

Installing (1)
┆   │ │      clangd                                                     │
┆   │ │      ▼ Displaying full log

No log!

@ayamir
Copy link
Owner

ayamir commented Feb 2, 2023

You can install them manually and add them to PATH. Then comment these lines:

"clangd",
"gopls",

@Jint-lzxy
Copy link
Collaborator

Jint-lzxy commented Feb 2, 2023

See #306 (comment). Use your favorite package manager to install go, currently it is either not installed, missing from PATH, or not executable.

go version go1.13.8 linux/amd64

Then I/O probably timed out. Did you set GOPATH to an invalid path?

Also, can you yank the complete error message and paste that here? Now it has been cut off.

also

Installing (1)
┆   │ │      clangd                                                     │
┆   │ │      ▼ Displaying full log

No log!

That would be expected. As mason is fetching this from GitHub:

    install = function(ctx)
        local source = github.unzip_release_file {
            repo = "clangd/clangd",
            asset_file = function(release)
                local target = coalesce(
                    when(platform.is.mac, "clangd-mac-%s.zip"),
                    when(platform.is.linux_x64, "clangd-linux-%s.zip"),
                    when(platform.is.win_x64, "clangd-windows-%s.zip")
                )
                return target and target:format(release)
            end,
        }
        source.with_receipt()
        ctx.fs:rename(("clangd_%s"):format(source.release), "clangd")
        ctx:link_bin(
            "clangd",
            path.concat {
                "clangd",
                "bin",
                platform.is.win and "clangd.exe" or "clangd",
            }
        )
    end,

@cyear
Copy link
Author

cyear commented Feb 3, 2023

See #306 (comment). Use your favorite package manager to install go, currently it is either not installed, missing from PATH, or not executable.

go version go1.13.8 linux/amd64

Then I/O probably timed out. Did you set GOPATH to an invalid path?

Also, can you yank the complete error message and paste that here? Now it has been cut off.

also

Installing (1)
┆   │ │      clangd                                                     │
┆   │ │      ▼ Displaying full log

No log!

That would be expected. As mason is fetching this from GitHub:

    install = function(ctx)
        local source = github.unzip_release_file {
            repo = "clangd/clangd",
            asset_file = function(release)
                local target = coalesce(
                    when(platform.is.mac, "clangd-mac-%s.zip"),
                    when(platform.is.linux_x64, "clangd-linux-%s.zip"),
                    when(platform.is.win_x64, "clangd-windows-%s.zip")
                )
                return target and target:format(release)
            end,
        }
        source.with_receipt()
        ctx.fs:rename(("clangd_%s"):format(source.release), "clangd")
        ctx:link_bin(
            "clangd",
            path.concat {
                "clangd",
                "bin",
                platform.is.win and "clangd.exe" or "clangd",
            }
        )
    end,

The latest GO solves the download error

@cyear cyear closed this as completed Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists env Issues caused by incorrect environment settings (terminal, package manager, etc.) usage User-specific issues
Projects
None yet
Development

No branches or pull requests

4 participants