Closed da1910 closed 2 years ago
Hi @da1910
I haven't been able to reproduce this.
Could you clarify a bit more what do you mean with:
Open the mapdl object in the debugger in pycharm
?
Do you mean print the object? In VSCode I don't see anything like:
a
b
c
Inspecting the object in the debugger, I believe it will be evaluating each of the object's public properties. I'm well used to individual properties throwing errors when you do this, and that's fine, but the side-effect was puzzling.
I was also able to get it to crash a couple of times by doing this, I will try and work out how to reproduce that.
a b c
message, however I did have quite a few error messages stating Empty records
empty records
issues might happen because PyCharm is called repeatedly the threaded function _updated_cache_element_desc
which requests new chunks
which are empty because there is no communications with the MAPDL process. We could probably go over this and try to really understand what PyCharm is doing when "inspecting" the mapdl object. I believe it calls dir()
.
However, it will take quite a lot of time, so my recommendation is to avoid this problem altogether by adding a special method __dir__()
to the MapdlCore
class, so we can avoid PyCharm specific code.
I realised VSCode also hangs when in debugger I inspect Mapdl.mesh
.
I believe it is the same reason as the above comment.
Still nothing regarding the a b c
message.
I'll check the PR branch for #972 out this afternoon and let you know if it fixes my abc issue
@da1910 did it fix it??
Describe the bug Expanding a MapdlGrpc object in the pycharm debugger outputs text to the console.
To Reproduce Steps to reproduce the behavior:
mapdl = Mapdl(ip="127.0.0.1", port=50052)
mapdl.prep7
)mapdl
object in the debugger in pycharkExpected behavior The object properties appear, with no output to the console
Screenshots
System Information:
Run a PyMAPDL report
Please run the following code wherever you are experiencing the bug and paste the output below. This report helps us track down bugs and it is critical to addressing your bug: