GAMS-dev / studio

GAMS Studio
https://www.gams.com/latest/docs/T_STUDIO.html
GNU General Public License v3.0
36 stars 5 forks source link

Clinking on error link opens new tab of already opened file #169

Closed samarthiith closed 5 years ago

samarthiith commented 5 years ago

On clicking the link to error, a new tab is created with the file even if the file is already open. Would be better if it directs to already opened file. I am using MacOS X.

rgoltermann commented 5 years ago

hello and thank you for contributing! so far i was not able to reproduce your issue. please provide some additional information.

samarthiith commented 5 years ago

Hi! thanks for responding

rgoltermann commented 5 years ago

Hi and thank you for the additional information. Studio opening a new tab on each click is definitely not intended behavior but we were not able to reproduce this behavior ourselves. so this issue could be related to your setup.

in Studio v0.9.2 we are comparing the paths of files as strings. if these are somehow different but still point to the same file studio does not recognize that the file is already open in another tab and would open another one. this will be fixed in the next update. another potential problem could be that you are using symlinks in your project which are not properly resolved by studio, leading to a similar situation as mentioned above.

you can test this by hovering over the file in the studios project explorer. if the tooltip shows a different link than the link you click in the log, although it should be the same file, than one of the statements above is true.

rgoltermann commented 5 years ago

Hello Samarth, could you manually update Studio to the latest version (available here: https://github.com/GAMS-dev/studio/releases) and report if this issue still persists?

rgoltermann commented 5 years ago

we were not able to reproduce this and are assuming that this was fixed with an update.
if this issue should resurface please feel free to contact us again.