veelo / SublimeLinter-contrib-dmd

SublimeLinter plugin for the D programming language using dmd
MIT License
6 stars 2 forks source link

Linter doesn't work if package file imports subpackage file #2

Open Temtaime opened 6 years ago

Temtaime commented 6 years ago

F:\projects\perfontain\source\perfontain\managers\settings\data.d(1,1): Error: package name 'perfontain.managers.settings' conflicts with usage as a module name in file c:\users\admin\appdata\local\temp\tmppetqda.d SublimeLinter: #574 SublimeLinter.sublime-package:803: dmd: No matches for regex: ^.+tmp.+((,)?[)]: (?:(?PError)|(?PWarning|Deprecation)): (?P.+)\r?\n((.(?!tmp))+\r?\n)*

There is a module perfontain.managers.settings which is being linted, imports perfontain.managers.settings.data. Why even copy to temp folder something ?

veelo commented 6 years ago

The copying is done by SublimeLinter. I think there is a setting to do the linting in place, but then it will only lint after the file is saved.

I am not sure what to do about the issue yet. If you could provide a minimal project to reproduce this, that would help.

veelo commented 6 years ago

Actually, I am not sure it can be solved for on-the-fly linting. If the regex doesn't find matches because dmd stops producing errors after the conflict, then there is nothing the linter can do about it. Still I am interested to see an example to get a better understanding.