intellij-swagger icon indicating copy to clipboard operation
intellij-swagger copied to clipboard

Editor is not working with Jetbrains chrome extension enabled

Open jumale opened this issue 5 years ago • 5 comments

Description

Opening a yaml file in a Chrome browser does not work if Chrome has enabled "Jenbrains IDE support" extension.

Steps to reproduce

  • open any swagger.yml file in IDE

  • Menu > View > Open In Browser > Chrome Result: 2018-07-23 15-14-39

  • now install/enable "Jetbrains IDE support" extension for Chrome and repeat previous steps Result: 2018-07-23 15-15-20

jumale avatar Jul 23 '18 13:07 jumale

Thanks for reporting an issue.

I have the latest versions of both plugins installed, but I am not able to reproduce the issue. Which version are you using?

semonte avatar Jul 26 '18 11:07 semonte

I've got the same problem.

Chrome version 68.0.3440.84 (Official Build) (64-bit) on Mac OS X. JetBrains plugin version: 2.0.9 (hmhgeddbohgjknpmjagkdomcpobmllji) Swagger Plugin version: 1.0.16 PHPStorm version: 2018.2

if I disable the JetBrains plugin from Chrome, then the Swagger UI launches fine. If it is enabled, then I get the same screenshot as @jumale.

Thankfully @jumale's workaround of disabling the JetBrains plugin from Chrome unblocks me for now.

sc0ttdav3y avatar Aug 07 '18 07:08 sc0ttdav3y

Hey.

Sorry for the late reply. I did manage to reproduce this, but did not find a way to fix it unfortunately.

semonte avatar Aug 22 '18 05:08 semonte

@semonte I also tried to play around to understand the reason, but no luck. I have 2 suggestions:

  • first of all to add the "Open in browser" feature to the documentation, because tbt I discovered it just accidentally, it's nowhere mentioned, and in my opinion it's one of the important features of this plugin.
  • add this issue to "Known Issues" in docs, to save time for other people until a solution comes

I could do this and create a PR.

jumale avatar Aug 29 '18 09:08 jumale

@jumale Yes, that sounds very reasonable, PRs are very welcome!

semonte avatar Aug 29 '18 09:08 semonte