Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Temtaime opened this issue Mar 16, 2018 · 2 comments
Open

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

Temtaime opened this issue Mar 16, 2018 · 2 comments

Comments

@Temtaime
Copy link

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
Copy link
Owner

veelo commented Mar 16, 2018

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
Copy link
Owner

veelo commented Mar 16, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants