-
Notifications
You must be signed in to change notification settings - Fork 10
Description
I have built and installed ghdl in: /home/r2com/eda/install/ghdl/
Then I went back to the source ghdl folder and ran:
pip install .
That did install the ghdl which I was able to run in command line.
However, when in Sublime I configured LSP to use it, I got error:
File "/home/r2com/.local/lib/python3.11/site-packages/pyGHDL/libghdl/__init__.py", line 155, in _get_libghdl_path
raise Exception(f"Cannot find libghdl {basename}")
Exception: Cannot find libghdl libghdl-3_0_0_dev.so
I know that this file is located after ghdl-ls install in:
/home/r2com/.local/lib/python3.11/site-packages/
The init.py at line 155 tries to look in ../../lib folder for this file, but if executed from ghdl-ls location there is No such folder (although there is just necessary .so file)
So the way I fixed it, is just created a symbolic link "lib" which points to:
/home/r2com/eda/install/ghdl/lib
The above folder is the install folder of ghdl, which has lib folder where necessary .so file located.
After that my ghdl-ls works OK in Sublime.
So... reason I posted this is to show you what exists, and whether there is more proper way to fix it? or did I miss some step during install?