Open SethGower opened 3 years ago
I just ran into this issue when installing vhdl_ls
with cargo install vhdl_ls
. Is this considered an issue and if not, what is the intended way to handle this?
I just ran into this issue when installing
vhdl_ls
withcargo install vhdl_ls
. Is this considered an issue and if not, what is the intended way to handle this?
Personally in order to use this, I install it by cloning the repo to ~/.local/share/rust_hdl
and then do cargo build --release
in order to build it. Then I add ~/.local/share/rust_hdl/target/release
to my $PATH
. It's not a great way, but it works for me.
cargo install
is not really supported since cargo has no concept of installing data folders along with the binary that is needed for the vhdl_libraries
. The recommended method is to download the latest release from github for your platform or build it locally using cargo build.
I ran into this as well. I get the issue at hand, but having to do something other than cargo install adds a small but annoying hurdle.
I get maybe neither are feasible or no one is willing to add the feature to do so... but, its really hard to beat the convenience of cargo install!
Cargo install is just not that useful for end users. You do not want your editor to require you to have cargo installed.
But yes I could probably include the vhdl files in the binary and extract them somewhere. Extracting to a real file is still necessary so that the user can open the standard.vhd if they for example run goto definition on a standard type.
I just ran into this issue when installing
vhdl_ls
withcargo install vhdl_ls
. Is this considered an issue and if not, what is the intended way to handle this?Personally in order to use this, I install it by cloning the repo to
~/.local/share/rust_hdl
and then docargo build --release
in order to build it. Then I add~/.local/share/rust_hdl/target/release
to my$PATH
. It's not a great way, but it works for me.
Since this is working without any issue/complexity, please add this as an (optional) installation instruction in the readme. The other 2 failed attempts (ubuntu 20.04.5, editor: emacs 28 with doom):
@sazam0
musl
target which is 100% static. This is used by the VSCode extension.
When installing from the cargo crate, using
cargo install vhdl_lang
,vhdl_lang -c vhdl_lang.toml --perf
failes with the panic messageIt seems that it is looking for the
vhdl_libraries
directory that is in the git repo, but isn't part of the actual crate package.Test stuff