leinardi / pylint-pycharm

A plugin providing both real-time and on-demand scanning of Python files with PyLint from within PyCharm/IDEA.
Apache License 2.0
198 stars 36 forks source link

Fix #47 - Use 'getPresentableUrl' intead of 'getPath' #86

Closed kazie closed 2 years ago

kazie commented 2 years ago
Use the 'getPresentableUrl()' instead of the 'getPath()' for OS related path.
This both due to the plugin showing a message which should be correct no matter OS
as well as for validation code, which cannot find file on Windows when using `/` instead of `\` for path separators.

First time contributor checklist

Contributor checklist


Description

Type of Changes

Type
:bug: Bug fix

Related Issue

kazie commented 2 years ago

Ah wait, it chose the incorrect branch. Yeah! Noticed it to (didn't double check the default branch)