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

cmd not defined for powershell_es #415

Open
2 tasks
eyalk11 opened this issue May 17, 2024 · 0 comments
Open
2 tasks

cmd not defined for powershell_es #415

eyalk11 opened this issue May 17, 2024 · 0 comments

Comments

@eyalk11
Copy link

eyalk11 commented May 17, 2024

Problem description

I install powershell_es but it says 'cmd not defined' on LspInfo (for powershell_es) .

It exists in C:\Users\ekarni\AppData\Local\nvim-data\mason\packages

Lazy config

return {
    {"williamboman/mason.nvim"},
    {"williamboman/mason-lspconfig.nvim"},
    {   
        "neovim/nvim-lspconfig",
        event = { "BufReadPre", "BufNewFile" },
        dependencies = {
            "hrsh7th/cmp-nvim-lsp",
            "nvim-telescope/telescope-live-grep-args.nvim",
            "williamboman/mason-lspconfig.nvim",
            "williamboman/mason.nvim",

            --{ "antosha417/nvim-lsp-file-operations", config = true },
        },
        config = function()
            --require("mason").setup()
            --require("mason-lspconfig").setup()

Other LSPs like lua do work.

Why do you think this is an issue with mason-lspconfig.nvim?

It suppose to make lspconfig know the executable . or am I wrong? There is no executable in C:\Users\ekarni\AppData\Local\nvim-data\mason\bin

Neovim version (>= 0.7)

NVIM v0.10.0-dev-3122+ga0a189a8e
Build type: RelWithDebInfo
LuaJIT 2.1.1713484068
Run ":verbose version" for more info

Operating system/version

10

I've manually reviewed the Nvim LPS client log (:LspLog) to find potential errors

  • Yes

I've recently downloaded the latest plugin version of mason.nvim, mason-lspconfig.nvim, and nvim-lspconfig

  • Yes

Affected language servers

powershell

Steps to reproduce

Just install it

Actual behavior

As mentioned

Expected behavior

Clear

LspInfo

◍ powershell-editor-services powershell_es
      A common platform for PowerShell development support in any editor or application.

      installed version v3.20.1                                                
      homepage          https://github.com/PowerShell/PowerShellEditorServices 
      languages         PowerShell                                             
      categories        LSP

image

LspLog

No response

Healthcheck

==============================================================================
mason: require("mason.health").check()

mason.nvim ~
- OK mason.nvim version v1.10.0
- OK PATH: prepend
- OK Providers: 
    mason.providers.registry-api
    mason.providers.client
- OK neovim version >= 0.7.0

mason.nvim [Registries] ~

mason.nvim [Core utils] ~
- OK unzip: `UnZip 6.00 of 20 April 2009, by Info-ZIP.  Maintained by C. Spieler.  Send
`
- WARNING wget: not available
  - ADVICE:
    - spawn: wget failed with exit code - and signal -. wget is not executable
- OK curl: `curl 8.4.0 (Windows) libcurl/8.4.0 Schannel WinIDN
`
- OK gzip: `gzip 1.9
`
- OK tar: `bsdtar 3.5.2 - libarchive 3.5.2 zlib/1.2.5.f-ipp 
`
- OK pwsh: `7.3.10 Microsoft Windows 10.0.19045 Win32NT
`
- WARNING 7z: not available
  - ADVICE:
    - spawn: 7z failed with exit code - and signal -. 7z is not executable

mason.nvim [Languages] ~
- WARNING Go: not available
  - ADVICE:
    - spawn: go failed with exit code - and signal -. go is not executable
- WARNING luarocks: not available
  - ADVICE:
    - spawn: luarocks failed with exit code - and signal -. luarocks is not executable
- WARNING Composer: not available
  - ADVICE:
    - spawn: composer.bat failed with exit code - and signal -. composer.bat is not executable
- WARNING PHP: not available
  - ADVICE:
    - spawn: php failed with exit code - and signal -. php is not executable
- OK Ruby: `ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x64-mingw32]
`
- OK node: `v18.17.1
`
- OK cargo: `cargo 1.72.0 (103a7ff2e 2023-08-15)`
- WARNING julia: not available
  - ADVICE:
    - spawn: julia failed with exit code - and signal -. julia is not executable
- OK python: `Python 3.10.0rc2
`
- OK JAVA_HOME: `java version "11.0.16" 2022-07-19 LTS
`
- OK java: `java version "11.0.16" 2022-07-19 LTS
`
- OK RubyGem: `3.2.22
`
- OK javac: `javac 11.0.16
`
- OK pip: `pip 23.2.1 from C:\Users\ekarni\AppData\Local\Programs\Python\Python310\lib\site-packages\pip (python 3.10)

`
- OK npm: `9.6.7`
- OK python venv: `Ok`

mason.nvim [GitHub] ~
- OK GitHub API rate limit. Used: 0. Remaining: 60. Limit: 60. Reset: 5/18/2024 2:41:50 AM.
  Install and authenticate via gh-cli to increase rate limit.

Screenshots or recordings

No response

@eyalk11 eyalk11 changed the title cmd not defined cmd not defined for powershell_es May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant