- last update
over 1 year ago run-tests.sh fatal error - π³π±Netherlands mike.vindicate
Added patch that applies to version 3.1.0 which has support for CKEditor 4 and 5. We probably want to start a whole new version (4) of this module where support is dropped for CKEditor 4. Tweaked some minor things to the requirement, so that it only checks if CKEditor contrib is installed.
Since changes are made to the info.yml file, you can use this package: https://packagist.org/packages/orakili/composer-drupal-info-file-patch-h.... Then you should be able to install the patch.
- πΊπΈUnited States fallenturtle
Patch in #7 is mostly working for me in the sense that I don't have to have the modules installed, but one issue I'm running into is that composer still downloads fakeobjects and ckeditor 4 and won't let me remove them as it says they are a dependency for footnotes. I see that this patch removes them from footnotes composer.json file, so I assume the issue is related to the order composer is doing things? Is there a way I need to restructure my composer.json file or some config I need to do with composer-drupal-info-file-patch-helper?
Thanks!
- π¬π§United Kingdom seogow
@fallenturtle that is correct.
Until this dependency is removed as dependency from the composer.json in the footnotes module, it will be required in composer.lock. The workflow is as follows:
- Footnotes are installed including their dependencies (fakeobjects).
- Patch is applied, removing dependencies from .info (works) and from composer.json (only after they were recorded in central composer.lock).
AFAIK you have two options:
- Use patchless approach; or
- Live with the unused modules in code source until the patch is incorporated into the module.
I hope the above explains the issue :)
- Status changed to RTBC
about 1 year ago 2:39pm 12 September 2023 - π¬π§United Kingdom catch
It should be possible to apply the patch and also add 'provides' in your root composer.json, see https://getcomposer.org/doc/04-schema.md#provide
But I think the patch is fine and this could go out in a release. ckeditor4 is nearly EOL.
- π¬π§United Kingdom seogow
@catch (and @fallenturtle) I was thinking about usage of replace, but there are downsides to both approaches:
- If another module or theme in your Drupal project genuinely needs fakeobjects, it won't get installed because Composer thinks it's already provided.
- You'll need to manually manage the version in the provides section if the unnecessary dependency's version changes in the original module's composer.json before the patch is applied.
Thus, since we all agree patch works, I would still suggest to wait for merge or go patchless.
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
As I'm migrating away from Markdown, towards just HTML + CKEditor 5, I was looking for an alternative. This module looks like the strongest candidate. But this is a hard blocker π Would be great if we could drop this CKEditor 4-only dependency π
+++ b/footnotes.info.yml @@ -2,7 +2,3 @@ name: Footnotes -test_dependencies: - - 'fakeobjects:fakeobjects'
Note that this should be kpt, for continuing to test against CKEditor 4!
We only need to drop the hard dependency in
composer.json
anddependencies:
. - π¨π¦Canada Shiraz Dindar Sooke, BC
The patch in #7 wouldn't apply to my 3.1.0 release because some of the changes are already rolled in.
Here it is again with *just* the change to the info file. It applies now and I can disable ckeditor4 along with fakeobjects.
- π¦πΉAustria inst
Hi Shiraz,
thank you - I tried footnotes with your patch and it works grat with Ckeditor 5 without the extra dependencies.Could this be part of footnotes?
- π«π·France erwangel
Patch #13 worked for me and I was able to enable footnotes without the fakeobjects dependency alerts. Unfortunately composer still downloads fakeobjects and ckeditor4 that are useless to D10.
- π«π·France erwangel
In complement of my previous comment (#15). Although there were no alerts on enabling footnotes, in the drupal modules listing (extend), fakeobjects and ckeditor4 were enabled and and error appeared in the Status report page. It was impossible to uninstall these modules with Drupal's UI but I managed to do it with drush pm:uninstall fakeobjects, ckeditor4 but then a new error appeared in the Status report "Fakeobjects module isn't installed/enabled. Etc."
- π¦πΉAustria inst
Hi,
I applied #13 but me too have this error in my status report:Fakeobjects module isn't installed/enabled.
Footnotes module has a dependency on Fakeobjects module. Ensure that Fakeobjects module is enabled and configured.Is there a way that we can exclude this via patch? - Footnote seems to work properly.
- Status changed to Needs work
12 months ago 10:33pm 11 December 2023 - heddn Nicaragua
The entries in .install checking for fakeobjects should also be cleaned-up.
- π¬π§United Kingdom scott_euser
4x branch will no longer support CKE4, so test dependency can also be dropped. Will continue with tests in π Add test coverage for 4x branch Active as part of the roadmap to a stable 4x ( π± Roadmap to stable 4x branch Active )
- Merge request !13Issue #3222058 by John_B: Remove Fakeobjects as hard dependency β (Merged) created by scott_euser
-
scott_euser β
committed d0b3dd69 on 4.0.x
Issue #3222058 by John_B: Remove Fakeobjects as hard dependency
-
scott_euser β
committed d0b3dd69 on 4.0.x
- Status changed to Fixed
11 months ago 12:08pm 8 January 2024 - π¬π§United Kingdom scott_euser
Crediting those who helped on this thanks! Further changes are in the 4x branch already so the commit here does not reflect everything + test coverage not changed/fixed yet as noted.
Automatically closed - issue fixed for 2 weeks with no activity.
- πΊπΈUnited States fallenturtle
Does this mean there's no plan to remove the fakeobjects dependency from version 3 and that if we want to use CKeditor 5 we need to use the patches?
- π¬π§United Kingdom scott_euser
Sorry I don't have the capacity in my free time to maintain 2 versions and 3x has very little test coverage, much harder for me to maintain (this also isn't the only module I maintain). If someone else wants to volunteer for the 3x branch great, but I cannot commit to it myself.
- π«π·France erwangel
Footnotes 4.0 works fine with no dependency to fakeobject. Not sure but, if I noticed well, it (or composer) even removes fakeobjects and Ckeditor 4 while updating from fn3 to 4