adamint / tlv-vscode

MIT License
5 stars 5 forks source link

Improve Error Handling and Robustness #1

Open Aryann15 opened 6 months ago

Aryann15 commented 6 months ago

This issue addresses the use of error handling and robustness in the codebase. Add error logging, displaying error messages to the user, and handling specific error types (e.g., file system errors). Incorporate error handling in the instantiateModule function to handle invalid file paths, file reading errors, Utilize error handling utilities in the _findDeclaration method of the tlverilogHoverProvider class to handle cases where the variable declaration is not found or the target is not a valid variable name. Added test cases for the error handling utilities By improving error handling and robustness, this aims to enhance the overall user experience and reliability of the extension. Users will receive better feedback and error messages when issues occur, making it easier to identify and resolve problems.

nithamitabh commented 6 months ago

The enhancements to error handling and robustness you've outlined are indeed crucial for the extension's reliability and user experience. Incorporating comprehensive error logging, user-friendly error messages, and specific error type handling will significantly aid in troubleshooting and maintaining the codebase. The proposed improvements for the instantiateModule function and the tlverilogHoverProvider class, along with the addition of relevant test cases, are well-considered steps towards this goal. Your focus on these aspects aligns with best practices in software development, and I agree that these changes will provide valuable feedback to users and facilitate problem resolution.