ue5-style-guide
ue5-style-guide copied to clipboard
Auto-opening a saved report in the browser is missing the protocol
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:///
)