Skip to content
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

source-build fix for Fedora and add-path instructions for Ubuntu and Fedora #3088

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

lineality
Copy link
Contributor

  • Added an entry to CHANGELOG.md if this change could be valuable to users

Adding step to install pearl for fedora, and adding instructions for add-path etc. so Lapce can be used and called from cli normally.

https://github.com/lineality/fork_lapce/blob/geo_build_fix/docs/building-from-source.md

Copy link

codecov bot commented Mar 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 5.91%. Comparing base (43b54d0) to head (bc66459).
Report is 43 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##           master   #3088      +/-   ##
=========================================
- Coverage    6.01%   5.91%   -0.11%     
=========================================
  Files         122     122              
  Lines       42703   43478     +775     
=========================================
+ Hits         2569    2572       +3     
- Misses      40134   40906     +772     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines +14 to +38
2.2 Follow instructions below to set path to lapce, where path to
lapce is like:
```
home/YOURNAME/lapce/target/release/lapce
```

2.3 Create a symbolic link:
- Open a terminal and run the following command to create a symbolic link from the executable to the chosen directory:
```bash
ln -s home/YOURNAME/lapce/target/release/lapce ~/.local/bin/
```

2.4 Add the directory to PATH (if necessary):
```bash
export PATH="home/YOURNAME/lapce/target/release/lapce:$PATH"
```

2.5 Refresh the shell:
- Run the following command to reload the shell configuration:
```
source ~/.bashrc
```

- Now you can call "lapce ." or "lapce --version" from cli

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this, it's unnecessary since cargo already manages the binary

Comment on lines +44 to +82

Follow instructions below to set path to lapce, where path to
lapce is like:
```
home/YOURNAME/lapce/target/release/lapce
```

2.1 Install Pearl (from official fedora source) to avoid a build-fail

https://developer.fedoraproject.org/tech/languages/perl/perl-installation.html
```bash
$ sudo dnf install perl-core
```


2.2 Create the ~/.local/bin directory
```bash
mkdir -p ~/.local/bin
```

2.3 Create a symbolic link:
- Open a terminal and run the following command to create a symbolic link from the executable to the chosen directory:
```bash
ln -s home/YOURNAME/lapce/target/release/lapce ~/.local/bin/lapce
```

2.4 Add the directory to PATH (if necessary):
```bash
export PATH="$PATH:$HOME/.local/bin"
```

2.5 Refresh the shell:
- Run the following command to reload the shell configuration:
```
source ~/.bashrc
```

- Now you can call "lapce ." or "lapce --version" from cli

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants