ue5-style-guide icon indicating copy to clipboard operation
ue5-style-guide copied to clipboard

Auto-opening a saved report in the browser is missing the protocol

Open kmoschcau opened this issue 4 years ago • 0 comments

Since there is no repository for the linter plug-in itself, I have to post this here.

Problem

When the linter plug-in is saving a report file (happens with both JSON and HTML), it tries to open the file in the default browser. However, it only passes the file path to the browser, which will NOT cause the browser to actually open the file, but instead interpret the string in any way it sees fit. In my case it starts a web search for the file path.

Solution

Prepend the file protocol prefix to the string passed to the browser. (file:///)

kmoschcau avatar Jul 21 '20 20:07 kmoschcau