mirror of
https://github.com/logos-blockchain/logos-blockchain-module.git
synced 2026-05-23 17:49:26 +00:00
Add nix + ide integration documentation.
This commit is contained in:
parent
0b23cbe85f
commit
189f23bef9
22
README.md
22
README.md
@ -14,3 +14,25 @@ This will reduce friction when working on the project.
|
||||
* Use `nix build` to build the package
|
||||
* Use `nix run` to launch the module-viewer and check your module loads properly
|
||||
* Use `nix develop` to setup your IDE
|
||||
|
||||
### Troubleshooting
|
||||
|
||||
#### Nix + IDE Integration
|
||||
If your IDE reports that a file doesn't belong to the project or that files cannot be found, the CMake cache
|
||||
is likely missing the Nix-provided paths. This happens when the IDE runs CMake on its own, outside the Nix
|
||||
environment, leaving the required paths empty.
|
||||
|
||||
To fix it:
|
||||
|
||||
1. **Regenerate the cache from within the Nix shell**
|
||||
|
||||
This provides the required Nix paths and writes them into `build/CMakeCache.txt`:
|
||||
```bash
|
||||
nix develop -c just configure
|
||||
```
|
||||
|
||||
2. **Reload the CMake project without resetting the cache**
|
||||
|
||||
If on RustRover: Open the CMake tool window (**View → Tool Windows → CMake**) and click the **Reload** button (↺) in the toolbar.
|
||||
|
||||
> Resetting the cache would wipe the paths you just wrote, so make sure to reload only.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user