Bug 46242 - Не работает расширение для Rust
Summary: Не работает расширение для Rust
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: lapce (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Anton Zhukharev
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-24 15:03 MSK by Kostevich Arseniy
Modified: 2023-05-31 12:28 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kostevich Arseniy 2023-05-24 15:03:01 MSK
Не работает расширение для Rust

Пакеты:
lapce-0.2.7-alt1.x86_64
rust-analysis-1.65.0-alt0.p10.1.x86_64
rust-src-1.65.0-alt0.p10.1.x86_64


Тестовые стенды:
p10-kworkstation-10.1-x86-64
p10-education-10.1-x86-64
p10-education-10.1-x86-64-kde
p10-workstation-10.1-x86-64
p10-server-10.1-x86-64


Шаги для воспроизведения:

1)root@host ~ # apt-get install -y rust-{analyzer,cargo,src} lapce
2)user@host ~ $ echo "export RUST_SRC_PATH=/usr/lib64/rustlib/src/rust/library" >> ~/.bash_profile
3)Релогин в пользователя
4)user@host ~ $ lapce
5)Установить плагин lapce-rust из магазина плагинов
6)В настройках плагина назначить полю Server Path значение /usr/bin/rust-analyzer
7)Закрыть lapce
8)user@host ~ $ mkdir ~/myproject && cd ~/myproject && cargo init && touch main.rs && lapce .
9)Написать в файле main.rs несколько строчек кода на rust.

Ожидаемый результат:
Подсвечиваются ошибки и всплывают дополнения кода.

Фактический результат:
Ошибки не подсвечиваются, дополнения не всплывают. Кроме того, если попробовать скомпилировать main.rs, вылезет ошибка linking with `cc` failed. Требуется добавить зависимость с gcc.
Comment 1 Repository Robot 2023-05-24 22:58:17 MSK
lapce-0.2.7-alt2 -> sisyphus:

 Wed May 24 2023 Anton Zhukharev <ancieg@altlinux> 0.2.7-alt2
 - Packaged desktop file (ALT 46243).
 - Packaged lapce-proxy.
 - Set dependency on gcc, rust-analyzer, rust-cargo and rust-src (ALT 46242).
Comment 2 Egor Ignatov 2023-05-31 08:58:54 MSK
(In reply to kostevichae from comment #0)
> Требуется добавить зависимость с gcc.

(In reply to Repository Robot from comment #1)
>  - Set dependency on gcc, rust-analyzer, rust-cargo and rust-src (ALT 46242).

Предлагаю вынести эти зависимости в отдельный подпакет, например lapce-rust, а то прямые зависимости сразу на два компилятора это имхо перебор для редактора.
Comment 3 Anton Zhukharev 2023-05-31 09:03:10 MSK
(In reply to Egor Ignatov from comment #2)
> (In reply to kostevichae from comment #0)
> > Требуется добавить зависимость с gcc.
> 
> (In reply to Repository Robot from comment #1)
> >  - Set dependency on gcc, rust-analyzer, rust-cargo and rust-src (ALT 46242).
> 
> Предлагаю вынести эти зависимости в отдельный подпакет, например lapce-rust,
> а то прямые зависимости сразу на два компилятора это имхо перебор для
> редактора.
I think so too (please note that the editor may be used not only for Rust development).
Comment 4 Repository Robot 2023-05-31 12:28:55 MSK
lapce-0.2.7-alt3 -> sisyphus:

 Wed May 31 2023 Anton Zhukharev <ancieg@altlinux> 0.2.7-alt3
 - Separated lapce-rust for Rust developemnt (ALT 46242).