Closed (fixed)
Project:
Coder
Version:
8.x-3.x-dev
Component:
Coder Sniffer
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Mar 2017 at 14:53 UTC
Updated:
14 Jul 2019 at 18:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
andypostThis is because https://api.drupal.org/api/drupal/core%21includes%21install.inc/function... does not remove prefixes
$missing_modules = array_diff($info['dependencies'], $present_modules);Comment #3
andypostLooks it needs separate issue for 8.x core
Comment #4
andypostComment #5
andypostAdded test https://github.com/klausi/coder/pull/25
Comment #6
andypostComment #7
andypostComment #8
andypostPatch without tests
Comment #9
andypostThe related shows that themes does not support dependencies at all
Comment #10
tobby commentedI've been using the patch in #8 with some success for the namespaced dependency issues in install profiles. Though, I'm submitting this attached patch (that I've been using locally) to just remove the sniffer altogether, since it also finds false positives in modules generated from Features (which does not use the namespaced dependencies yet, either). I know that won't be ideal for some, and probably not for the long-term support of this issue, but it's helpful for now if you have a project with a custom install profile and lots of Features modules, until Drupal 8.4 and Features both support the namespaces.
Comment #11
andypost#10 is not a fix
but actually that blocked on #2855026: Installation profiles do not support project:module format for dependencies
Comment #12
kdebisschop commentedSince https://www.drupal.org/project/drupal/issues/2855026 has merged to core, #8 should be updated to scan profiles (but still ignore themes).
Comment #13
klausiCan you add a comment that we need this because of theme info files not supporting namespaces?
Can you also provide a test case so that we can be sure this works?
Probably best to create a pull request against https://github.com/pfrenssen/coder , then we can see test results on Travis CI.
Comment #15
klausiCommitted a different approach to fix this to make an exception for theme info files.
Comment #16
klausi