Skip to content

ghdl-ls Traceback on Windows #172

@gralco

Description

@gralco

Description
After installing ghdl using the latest commit, attempting to run ghdl-ls on Windows fails (tested on Fedora and it works fine).

Context

  • OS: Windows 10
  • Origin: Built from sources: 71287d46036e45f2bcafbc06e4b1ca1b37d48b85

Here's the traceback I get when trying to run ghdl-ls:

$ ghdl-ls
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "%LOCALAPPDATA%\Programs\Python\Python312\Scripts\ghdl-ls.exe\__main__.py", line 4, in <module>
  File "%LOCALAPPDATA%\Programs\Python\Python312\Lib\site-packages\pyGHDL\cli\lsp.py", line 58, in <module>
    from pyGHDL.lsp.vhdl_ls import VhdlLanguageServer
  File "%LOCALAPPDATA%\Programs\Python\Python312\Lib\site-packages\pyGHDL\lsp\vhdl_ls.py", line 4, in <module>
    from .workspace import Workspace
  File "%LOCALAPPDATA%\Programs\Python\Python312\Lib\site-packages\pyGHDL\lsp\workspace.py", line 12, in <module>
    import pyGHDL.libghdl.vhdl.nodes as nodes
  File "%LOCALAPPDATA%\Programs\Python\Python312\Lib\site-packages\pyGHDL\libghdl\vhdl\nodes.py", line 3662, in <module>
    @BindToLibGHDL("vhdl__nodes__get_mode_view_indication")
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "%LOCALAPPDATA%\Programs\Python\Python312\Lib\site-packages\pyGHDL\libghdl\_decorator.py", line 161, in wrapper
    functionPointer = getattr(libghdl, subprogramName)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "%LOCALAPPDATA%\Programs\Python\Python312\Lib\ctypes\__init__.py", line 392, in __getattr__
    func = self.__getitem__(name)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "%LOCALAPPDATA%\Programs\Python\Python312\Lib\ctypes\__init__.py", line 397, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: function 'vhdl__nodes__get_mode_view_indication' not found. Did you mean: 'vhdl__nodes__get_subtype_indication'?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions