-
Notifications
You must be signed in to change notification settings - Fork 64
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
Atom client requires vhdl_ls.toml #65
Comments
This is because of the changes in #51. I will see if I can patch the Atom extension. To get you going you can download a pre-built version of the executable from https://github.com/kraigher/rust_hdl/releases/latest (on linux you may need to |
Sorry, now I see that the build definition comes from the Dockerfile itself. I'll fix it here. |
It seems like the I assumed this was fixed in the new docker file: |
@Xcodo it looks like the |
Thanks. I thought I'd understood the documentation but clearly not. Before my change the last line didn't have the binary name included
|
I pushed a fix now which I am reasonably comfortable works. @slaweksiluk can you try it? |
@Xcodo Before your PR I believe the binary was named |
That fooled me when reviewing because I thought |
Ah right, I understand now. Thanks for fixing it. |
Thank you all for efforts. I'm now receiving different error message:
Can I debug it somehow at my side? |
Looks like $CRATE variable was not expanded but taken verbatim. I pushed a fix to try to remedy it. |
Still no luck:
|
@kraigher the problem is that this change c2c6356 modifies the entrypoint to use shell form, which won't work because there is no shell in this image. You can instead choose to hardcode the binary name with exec form. diff --git a/Dockerfile b/Dockerfile
index 6acdd6e..4e39b95 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -7,6 +7,6 @@ RUN cargo build --manifest-path $CRATE/Cargo.toml --release --features "packaged
FROM scratch
ARG CRATE
-COPY --from=builder /volume/target/x86_64-unknown-linux-musl/release/$CRATE /app/bin/$CRATE
+COPY --from=builder /volume/target/x86_64-unknown-linux-musl/release/$CRATE /app/bin/x
COPY --from=builder /volume/vhdl_libraries /app/vhdl_libraries
-ENTRYPOINT /app/bin/$CRATE
+ENTRYPOINT ["/app/bin/x"] |
@mbrobbel I will try that, I tried using $CRATE in the entry point but it was not expanded and just used verbatim. |
I pushed a commit now which hardcodes then binary name to avoid $CRATE not being expanded but still avoids using the shell which is not part of the container. |
This is working now. Thanks |
I use rust_hdl from docker and after some update language server stopped working in Atom. I was using it without any vhdl_ls.tom for simple syntax checking. Now it seems toml project file is necessary?
The text was updated successfully, but these errors were encountered: