[Bug-Candidate]: `ERROR:root:The source code appears to be out of sync with the build artifacts on disk.`
- Dominant language
- Python
- Stars
- 6.4k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the issue:
This issue is related to #2296. Unsure why the error is being thrown though.
### Code example to reproduce the issue:
https://github.com/OpenZeppelin/openzeppelin-confidential-contracts/actions/runs/15884480002/job/44792912877
### Version:
0.11.3
### Relevant log output:
```shell
Traceback (most recent call last):
File "/opt/slither/lib/python3.9/site-packages/slither/__main__.py", line 882, in main_impl
) = process_all(filename, args, detector_classes, printer_classes)
File "/opt/slither/lib/python3.9/site-packages/slither/__main__.py", line 107, in process_all
) = process_single(compilation, args, detector_classes, printer_classes)
File "/opt/slither/lib/python3.9/site-packages/slither/__main__.py", line 80, in process_single
slither = Slither(target, ast_format=ast, **vars(args))
File "/opt/slither/lib/python3.9/site-packages/slither/slither.py", line 156, in __init__
sol_parser.parse_top_level_items(ast, path)
File "/opt/slither/lib/python3.9/site-packages/slither/solc_parsing/slither_compilation_unit_solc.py", line 268, in parse_top_level_items
contract.set_offset(top_level_data["src"], self._compilation_unit)
File "/opt/slither/lib/python3.9/site-packages/slither/core/source_mapping/source_mapping.py", line 223, in set_offset
self.source_mapping = _convert_source_mapping(offset, compilation_unit)
File "/opt/slither/lib/python3.9/site-packages/slither/core/source_mapping/source_mapping.py", line 193, in _convert_source_mapping
(lines, starting_column, ending_column) = _compute_line(compilation_unit, filename, s, l)
File "/opt/slither/lib/python3.9/site-packages/slither/core/source_mapping/source_mapping.py", line 155, in _compute_line
raise SlitherException(msg) from None
slither.exceptions.SlitherException: The source code appears to be out of sync with the build artifacts on disk.
This discrepancy can occur after recent modifications to node_modules/@fhevm/solidity/config/ZamaConfig.sol. To resolve this
issue, consider executing the clean command of the build system (e.g. forge clean).
ERROR:root:Error:
ERROR:root:The source code appears to be out of sync with the build artifacts on disk.
This discrepancy can occur after recent modifications to node_modules/@fhevm/solidity/config/ZamaConfig.sol. To resolve this
issue, consider executing the clean command of the build system (e.g. forge clean).
ERROR:root:Please report an issue to https://github.com/crytic/slither/issues
```
Contributor guide
Assessment
This issue has not been assessed yet.