Skip to content

Commit

Permalink
devel/rust-analyzer: mark as LTO_UNSAFE
Browse files Browse the repository at this point in the history
rust-analyzer won't run (repeatedly terminated with signal 6) when
called from VSCode's rust-analyzer extension.

Error messages from rust-analyzer extension are as follows:
[Info  - 17:39:30] Connection to server got closed. Server will restart.
[Info  - 17:39:31] Connection to server got closed. Server will restart.
[Info  - 17:39:31] Connection to server got closed. Server will restart.
[Info  - 17:39:32] Connection to server got closed. Server will restart.
[Error - 17:39:32] The Rust Analyzer Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.

Turning off LTO appears to work around the issue.

PR:		272291
Approved by:	mikael
  • Loading branch information
tagattie committed Jul 1, 2023
1 parent c628047 commit 93aa38d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions devel/rust-analyzer/Makefile
@@ -1,5 +1,6 @@
PORTNAME= rust-analyzer
DISTVERSION= 2023-06-12
PORTREVISION= 1
CATEGORIES= devel

MAINTAINER= rust@FreeBSD.org
Expand Down Expand Up @@ -203,6 +204,8 @@ CARGO_CRATES= addr2line-0.19.0 \

CARGO_INSTALL_PATH= crates/rust-analyzer

LTO_UNSAFE= yes

# attempts to install rustup toolchains
NO_TEST= yes

Expand Down

0 comments on commit 93aa38d

Please sign in to comment.