Skip to content

Commit

Permalink
Merge pull request #153 from CoinFabrik/148-add-troubleshooting-guide…
Browse files Browse the repository at this point in the history
…-to-documentation

Add Troubleshooting Guide
  • Loading branch information
arturoBeccar authored Apr 23, 2024
2 parents 55ab795 + d887662 commit 64678d3
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 9 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/test-deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
name: Test deployment
runs-on: ubuntu-latest
outputs:
build-success: ${{ steps.build.outputs.success }}
status: ${{ job.status }}
defaults:
run:
working-directory: ./docs
Expand Down Expand Up @@ -47,10 +47,7 @@ jobs:

- name: Test build website
id: build
run: |
if pnpm build; then
echo "build-success=true" >> $GITHUB_ENV
fi
run: pnpm build

comment-on-pr:
name: Comment on PR
Expand All @@ -75,6 +72,6 @@ jobs:
body: |
📘 **Documentation Test Summary** 📘
${{ (needs.test-deploy.outputs.build-success == 'true' && 'The test build of the documentation has completed successfully. 🚀\n') }}
${{ (needs.test-deploy.outputs.build-success == 'true' && 'The changes will be published upon merge to the main branch') }}
${{ (needs.test-deploy.outputs.build-success != 'true' && 'There was an issue with the test build of the documentation. Please check the logs for more details. 🚨') }}
${{ (needs.test-deploy.outputs.status == 'success' && 'The test build of the documentation has completed successfully!' || '') }}
${{ (needs.test-deploy.outputs.status == 'success' && '📝 The changes will be published upon merge to the main branch.' || '') }}
${{ (needs.test-deploy.outputs.status != 'success' && '🚨 There was an issue with the test build of the documentation, please check the logs for more details.' || '') }}
45 changes: 45 additions & 0 deletions docs/docs/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,48 @@ You'll also need to have installed the CLI, as the extension uses the CLI to per
### Usage

After you've installed the extension, simply open a project workspace that contains any Soroban (.rs) files. You will see potential issues and warnings via a wiggle underline of the relevant code.


## Troubleshooting Guide

### 1. Installation Troubleshooting

**Issue**: Difficulties installing dependencies and Scout.

**Solution**:

- For Dylint:

To install necessary libraries for Dylint, run the following commands:
```bash
sudo apt install libssl-dev
sudo apt install pkg-config
```

- For C Compiler (gcc).

To install gcc, which is required for some components, use:
```bash
sudo apt install gcc
```

- For error `error[E0658]`.

When encountering this error `error[E0658]: use of unstable library feature 'stdsimd'`, run cargo clean and ensure you are using this version of rustup:
```bash
cargo clean
rustup default nightly-2023-12-16
```

### 2. Crossed Contract Calls

**Issue**: Scout encounters issues when analyzing contracts that perform crossed calls.

**Solution**:
- When encountering problems with crossed calls, it's beneficial to compile the dependent contract first. Run the following command to build the second contract:
```bash
soroban contract build
```
2 changes: 1 addition & 1 deletion docs/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 64678d3

Please sign in to comment.