ansys / ansys/pymechanical

Error Logging Enhancement Remote PyMechanical

Open
#1,642 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
83
Forks
37
Avg merge
23h 48m
Merged PRs (30d)
25

Description

### 📝 Description of the feature

Assuming there is an issue with the Mechanical script being passed on to the remote instance, the returned error message has only partial hints on what went wrong. The returned string is a raw text; hints are hidden in a block with other GRPC related errors.

For instance, line number is not mentioned in the error message below, where intentionally a syntax mistake was made. This is well handled with embedded PyMechanical instance, if it is possible to enhance the error logging for remote instance analogous to embedded instance with proper formatting and line number that would significantly improve the debugging efforts.

Image

### 💡 Steps for implementing the feature

_No response_

### 🔗 Useful links and references

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by tracing how a script sent to the remote Mechanical instance is executed and how its raw gRPC error string is returned, then compare that behavior with the embedded PyMechanical instance. Done means remote syntax errors are formatted like embedded-instance errors and include the relevant line number without obscuring details among gRPC errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
grpc, python
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.