Open mwawrusch opened 2 years ago
I added source location in the error message in the latest version, but I haven't been able to test it because these errors are supposed to be unreachable. :slightly_smiling_face:
Please try it now and let me know what piece of code is causing it.
Closing for lack of follow up.
piece of code that causing it (any public variable):
pragma solidity 0.8.23;
contract Test {
/// @notice Shows the address where protocol fee are received
/// @dev variable. changing in setFeeDestination()
/// @return Address where protocol fee are received
address public protocolFeeDestination;
}
Error:
ItemError: Item does not contain return parameters (contracts/Test.sol:7)
even if put /// @return
to public variables description is not good idea (or it is good?) - some contracts are already deployed with that. so should it cause error?
The following is an output from running docgen. Would be helpful to have information which line and source filed casued it.
Error: Item does not contain return parameters