Move everything under package dscanner#526
Conversation
|
nonono there isn't even a working release on dub yet, 0.4.0 still had some issues if you tried to use that as a library (lots of linker errors because submodules weren't included). Doing this will break everything using dscanner as a library because you need to do Please DO NOT MERGE until there had been a release for a few weeks |
|
Well I am not supposed to even be able to merge this, if you request a review it should prevent the dlang-bot from doing anything (if this is how it works) EDIT : or should I close this PR to stall it until you think it's ready ? |
WebFreak001
left a comment
There was a problem hiding this comment.
There needs to be a new DScanner release first because the current latest tag is broken as a library. Once the release was out for a few days or weeks this can be merged, but before that it shouldn't be merged.
|
I can mark a 0.5.0 release as there was no change to src/ for 3 months, @Hackerpilot @bbasile what would you say? |
|
That's fine so long as we move all the uncompleted issues out of https://github.com/dlang-community/D-Scanner/milestone/6 first. |
|
The two remaining items in the 0.4.1 milestone should be easily fixable. Unless you're in a hurry i don't see the point of procrastinate. |
|
yeah I think it's a good idea to finish 0.4.1 and release that |
|
Oops, assuming the config based on the makefile passes the tests of course. |
|
@bbasile for some obscure reason, moving everything under the |
|
add an issue |
|
This PR doesn't seem to be maintained. I'll close on 7 days if nothing done before. |
|
Whoops. This issue had completely slipped out of my mind... I've rebased my fork on master, it compiles and passes the tests Linux and Windows on my end. |
.gitignore
Outdated
|
|
||
| # D Scanner binaries | ||
| dscanner | ||
| /dscanner |
There was a problem hiding this comment.
Or even /bin entirely ? That would also exclude unittest binaries
|
Oh, I found out why |
|
D allows to have a path and a different module name. If you keep the old module name it will work. You just have a few imports statements to revert. |
|
That being said this is not clean and would have to be changed for the next minor version anyway. |
|
Hackerpilot had directed me to the specs (dlang-community/DCD#417 (comment)), and they say that packages should correspond to the filesystem path (https://dlang.org/spec/module.html#module_declaration). |
|
Changing the file without user agreement is not something to do so the only other options are breaking existing config files or not changing the module names. |
|
Yes, by patching the |
|
At least change the ini used by this repo so that the tests become green. |
|
hm not a fan of requiring to change all configs... Can't the ini parser do it just with the struct/class name if it knows about the possible type already? |
|
You mean, automatically trying to get the config section even if the name of the section is not the fully qualified name of the class/struct ? |
|
@WebFreak001, it would not be the first time the INI format breaks. I did this before for the switch allowing to skip the unittest. |
|
I guess we aren't 1.0.0 yet, but maybe the ini format should be changed in a separate PR so it allows non fully qualified names in the future. |
|
I think the windows test there segfaults, so you would need to fix that but other than that I'm fine with this change now |
|
The Windows x64 tests already segfault even without my changes as far as I know (I'll double check that when I can) |
|
@LaurentTreguier: sorry there are again conflicts due to other PR merged. |
|
@bbasile whatever it is it should't be hard to rebase again. I can also confirm that D-scanner is crashing on Windows when compiling for x64 and trying to test it. Visual Studio's just-in-time debgger is telling me that the problem comes from libdoc, in |
|
i'm gonna tag to 0.5.0-beta.1, after this PR merged, leaving the chance to a Windows user to fix x64 but not for too long, see milestone. |
Due to dlang-community/D-Scanner#526, the `.dscanner` prefix was required. However, thanks to burner/inifiled#11 this is no longer needed and DScanner 0.5 doesn't require the prefix anymore.

This is the same as dlang-community/DCD#417. Since #469, D-Scanner can be used as a library, and it would make much sense to
import dscanner.fooinstead of justimport foo.