JetBrains / JetBrains/RiderSourceCodeAccess
Open in Rider causes segfault on linux
- Dominant language
- C++
- Stars
- 116
- Forks
- 20
- PR merge metrics
- No merged PRs in 30d
Description
It looks, like rider path search is not yet perfect. I've modified code a bit to check what is going wrong.
The following code prints
```
.... ExecutablePath: /home/fexolm/.local/share/JetBrains/Toolbox/apps/Rider/ch-0/221.3427.104/bin/rider.svg
```
(I don't think, that svg is expected executable path here).
The code:
```cpp
27 return HandleOpeningRider([this, &Params, &FilePaths]()->bool
26 {
25 UE_LOG(LogRiderAccessor, Warning, TEXT("Opening files (%s) failed. Params: %s, ExecutablePath: %s"), *FilePaths, *Params, *ExecutablePath);
24
23 return false;
22
21 FProcHandle Proc = FPlatformProcess::CreateProc(*ExecutablePath, *Params, true, true, false, nullptr, 0, nullptr, nullptr);
20 const bool bResult = Proc.IsValid();
19 if (!bResult)
18 {
17 UE_LOG(LogRiderAccessor, Warning, TEXT("Opening files (%s) failed."), *FilePaths);
16 FPlatformProcess::CloseProc(Proc);
15 }
14 return bResult;
13 });
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.