tidy3d icon indicating copy to clipboard operation
tidy3d copied to clipboard

Clickable link of simulation task not working in PyCharm when break into two lines

Open xin-flex opened this issue 2 years ago • 4 comments

When the link breaks into two lines in the output, in PyCharm the link address is incorrect (partial): image

while in Jupyter Lab the link address is correct (complete): image

Is it possible to make the link in PyCharm also complete and work?

xin-flex avatar Jun 19 '23 04:06 xin-flex

This is an issue with rich, I don't think there's anything I can do directly to fix it. What version of pycharm are you using? I can file a ticket with rich?

tylerflex avatar Jun 19 '23 12:06 tylerflex

Indeed, here is the PyCharm version I used: 2022.2.2

xin-flex avatar Jun 27 '23 00:06 xin-flex

@xin-flex can you try a simple test in your pycharm? and then make an issue in [rich](https://github.com/Textualize/rich)? I think we need them to look into it and I don't have pycharm so it might be easier if you can reproduce, maybe they can release a patch and it will work in tidy3d after that.

I would suggest just trying to print a very long link in your pycharm and if it doesn't click, post the script you used and have them look at it. (Docs)

You could just try these two lines in your pycharm and see if they work or not.

from rich import print
print("My long link: [link=https://www.google.com/search?q=test]aaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbccccccccccccccccccccccc[/link]!")



tylerflex avatar Jul 03 '23 08:07 tylerflex

Thanks for the info! I tested in PyCharm and reproduced the issue, and actually there are two issues. See the details here: https://github.com/Textualize/rich/issues/3036

xin-flex avatar Jul 14 '23 00:07 xin-flex