Ran drupal-check against 3b7ae61.

 90/90 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

 ------ ------------------------------------------------------------------
  Line   libraries.drush.inc
 ------ ------------------------------------------------------------------
  65     Call to deprecated function libraries_info():
         Will be removed before a stable Drupal 8 release. Please use the
         new library load and managment concepts described at:
         https://www.drupal.org/node/2170763
  66     Call to deprecated function libraries_detect():
         Will be removed before a stable Drupal 8 release. Please use the
         new library load and managment concepts described at:
         https://www.drupal.org/node/2170763
 ------ ------------------------------------------------------------------

 ------ ----------------------------------------------------------------
  Line   libraries.install
 ------ ----------------------------------------------------------------
  26     Call to deprecated function file_unmanaged_delete_recursive():
         in drupal:8.7.0 and is removed from drupal:9.0.0.
         Use \Drupal\Core\File\FileSystemInterface::deleteRecursive().
 ------ ----------------------------------------------------------------

 ------ ----------------------------------------------------------------------
  Line   tests/modules/libraries_test/libraries_test.module
 ------ ----------------------------------------------------------------------
  464    Call to deprecated function drupal_set_message():
         in drupal:8.5.0 and is removed from drupal:9.0.0.
         Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
 ------ ----------------------------------------------------------------------

 ------ -------------------------------------------------------------------
  Line   tests/modules/libraries_test/src/Controller/ExampleController.php
 ------ -------------------------------------------------------------------
  26     Call to deprecated function libraries_load():
         Will be removed before a stable Drupal 8 release. Please use the
         new library load and managment concepts described at:
         https://www.drupal.org/node/2170763
 ------ -------------------------------------------------------------------

 ------ ------------------------------------------------------------------------------------------------------------------
  Line   tests/src/Kernel/LibraryTypeKernelTestBase.php
 ------ ------------------------------------------------------------------------------------------------------------------
         Class Drupal\libraries\ExternalLibrary\Exception\LibraryAccessorInterface not found and could not be autoloaded.
 ------ ------------------------------------------------------------------------------------------------------------------

 -- ---------------------------------------------------------------------------------------------------------------------------------------------------------
     Error
 -- ---------------------------------------------------------------------------------------------------------------------------------------------------------
     Child process error (exit code 255): Fatal error: Trait method getLibrary has not been applied, because there are collisions with other trait methods
     on Drupal\libraries\ExternalLibrary\Exception\InvalidLibraryDependencyException in
     /Users/stevenworx/code/php/drupal/clients/internal/platforms/deprecated_check/web/modules/contrib/libraries/src/ExternalLibrary/Exception/InvalidLibrar
     yDependencyException.php on line 13

     Child process error (exit code 255): Fatal error: Trait method getLibrary has not been applied, because there are collisions with other trait methods
     on Drupal\libraries\ExternalLibrary\Exception\InvalidLibraryDependencyException in
     /Users/stevenworx/code/php/drupal/clients/internal/platforms/deprecated_check/web/modules/contrib/libraries/src/ExternalLibrary/Exception/InvalidLibrar
     yDependencyException.php on line 13

 -- ---------------------------------------------------------------------------------------------------------------------------------------------------------


 [ERROR] Found 8 errors

Issue fork libraries-3119010

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

FatGuyLaughing created an issue. See original summary.

Suresh Prabhu Parkala’s picture

Status: Active » Needs review
FileSize
2.45 KB

Please review the patch. Thank you. Done with the deprecated code.

Status: Needs review » Needs work

The last submitted patch, 2: 3119010-2.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

xeM8VfDh’s picture

Thanks @Suresh Prabhu Parkala for working on the patch!

xeM8VfDh’s picture

@Suresh Prabhu Parkala I believe there is also a composer.json change that should be made to add the Drupal 9 support badge to the module's main page, as explained here: https://www.drupal.org/project/auto_entitylabel/issues/3111526

EDIT: or perhaps the change needs to be made to the core_version_requirement field in the module's .info file. Here's an example from another project: https://www.drupal.org/files/issues/2020-03-12/3119389-d9-upgrade-2.patch

EDIT 2: my information about composer.yml and info.yml was incorrect, sorry. Apparently there is some switch the maintainer can flip to trigger the badge and mark the module as D9 compatible, but I don't know where that switch is since I am not a maintainer. Sorry.

Suresh Prabhu Parkala’s picture

Assigned: Unassigned » Suresh Prabhu Parkala
Suresh Prabhu Parkala’s picture

Status: Needs work » Needs review
FileSize
2.75 KB

Add the 'core version requirement' key support in .info file. Please review.

xeM8VfDh’s picture

@Suresh Prabhu Parkala, maybe I am doing something wrong, but when I execute drupal-check against 8.x-3.x, both before and after applying 3119010-7.patch, I get the following output:

$ ./vendor/bin/drupal-check modules/libraries
 -- -------------------------------------------------------------------------------------------------------------------------- 
     Error                                                                                                                     
 -- -------------------------------------------------------------------------------------------------------------------------- 
     Child process error (exit code 255): PHP Fatal error:  Trait method getLibrary has not been applied, because there are    
     collisions with other trait methods on Drupal\libraries\ExternalLibrary\Exception\InvalidLibraryDependencyException in    
     /path/to/drupal/modules/libraries/src/ExternalLibrary/Exception/InvalidLibraryDepend  
     encyException.php on line 13                                                                                              
     Fatal error: Trait method getLibrary has not been applied, because there are collisions with other trait methods on       
     Drupal\libraries\ExternalLibrary\Exception\InvalidLibraryDependencyException in                                           
     /path/to/drupal/modules/libraries/src/ExternalLibrary/Exception/InvalidLibraryDepend  
     encyException.php on line 13                                                                                              
                                                                                                                               
     Child process error (exit code 255): PHP Fatal error:  Trait method getLibrary has not been applied, because there are    
     collisions with other trait methods on Drupal\libraries\ExternalLibrary\Exception\InvalidLibraryDependencyException in    
     /path/to/drupal/modules/libraries/src/ExternalLibrary/Exception/InvalidLibraryDepend  
     encyException.php on line 13                                                                                              
     Fatal error: Trait method getLibrary has not been applied, because there are collisions with other trait methods on       
     Drupal\libraries\ExternalLibrary\Exception\InvalidLibraryDependencyException in                                           
     /path/to/drupal/modules/libraries/src/ExternalLibrary/Exception/InvalidLibraryDepend  
     encyException.php on line 13                                                                                              
                                                                                                                               
 -- -------------------------------------------------------------------------------------------------------------------------- 

                                                                                                                        
 [ERROR] Found 2 errors

There's obviously an unresolved trait collision, which appears to have been fixed in 3039243. I'm even more curious why I didn't get the actual Drupal9 deprecation noticed you did when I ran drupal-check before applying your patch. So I guess I can't review this as a success, as I don't see the reported deprecations to begin with.

GaëlG’s picture

Yes, I confirm that, using latest dev :
- I get the same error with drupal-check 1.1.1 (trait collision)
- I get no deprecation notice with upgrade_status 2.4.0 without the patch (except the .info.yml thing)
- I get no deprecation notice at all with upgrade_status 2.4.0 with the patch #7

xeM8VfDh’s picture

thanks for confirming @GaëlG

What do you think @Suresh Prabhu Parkala

Can any maintainers chime in?

xeM8VfDh’s picture

Status: Needs review » Reviewed & tested by the community

Changing the status, as the patch seems good and the Trait issue seems out of the scope of this issue and appears to be fixed in 3039243. Feel free to switch back, if you think this is incorrect.

GaëlG’s picture

Status: Reviewed & tested by the community » Needs work

Unfortunately, with both patches:

"drupal/libraries": {
"Compatibilité D9": "https://www.drupal.org/files/issues/2020-04-06/3119010-7.patch",
"Trait error fix": "https://www.drupal.org/files/issues/2019-12-09/3039243-9-fatal-error-tra..."
},

I still get:

vendor/bin/drupal-check web/modules/contrib/libraries/
90/90 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

------ --------------------------------------------------------------------------
Line src/ExternalLibrary/LibraryManager.php
------ --------------------------------------------------------------------------
64 Call to deprecated function system_get_info():
in drupal:8.8.0 and is removed from drupal:9.0.0. Use
\Drupal::service('extension.list.$type')->getExtensionInfo() or
\Drupal::service('extension.list.$type')->getAllInstalledInfo() instead.
------ --------------------------------------------------------------------------

------ -----------------------------------------------------------------------------------------------------------
Line src/Tests/LibrariesUnitTest.php
------ -----------------------------------------------------------------------------------------------------------
12 Class Drupal\libraries\Tests\LibrariesUnitTest extends deprecated class Drupal\simpletest\KernelTestBase:
in drupal:8.0.0 and is removed from drupal:9.0.0. Use
\Drupal\KernelTests\KernelTestBase instead.
28 Call to deprecated function libraries_get_path():
Will be removed before a stable Drupal 8 release. Please use the
new library load and managment concepts described at:
https://www.drupal.org/node/2170763
49 Call to deprecated function libraries_prepare_files():
Will be removed before a stable Drupal 8 release. Please use the
new library load and managment concepts described at:
https://www.drupal.org/node/2170763
------ -----------------------------------------------------------------------------------------------------------

------ -------------------------------------------------------------------------------------------------------
Line src/Tests/LibrariesWebTest.php
------ -------------------------------------------------------------------------------------------------------
13 Class Drupal\libraries\Tests\LibrariesWebTest extends deprecated class Drupal\simpletest\WebTestBase:
in drupal:8.8.0 and is removed from drupal:9.0.0. Instead,
use \Drupal\Tests\BrowserTestBase. See https://www.drupal.org/node/3030340.
45 Call to method setUp() of deprecated class Drupal\simpletest\WebTestBase:
in drupal:8.8.0 and is removed from drupal:9.0.0. Instead,
use \Drupal\Tests\BrowserTestBase. See https://www.drupal.org/node/3030340.
59 Call to deprecated function libraries_detect_dependencies():
Will be removed before a stable Drupal 8 release. Please use the
new library load and managment concepts described at:
https://www.drupal.org/node/2170763
106 Call to deprecated function libraries_detect_dependencies():
Will be removed before a stable Drupal 8 release. Please use the
new library load and managment concepts described at:
https://www.drupal.org/node/2170763
113 Call to deprecated function libraries_detect_dependencies():
Will be removed before a stable Drupal 8 release. Please use the
new library load and managment concepts described at:
https://www.drupal.org/node/2170763
137 Call to deprecated function libraries_scan_info_files():
Will be removed before a stable Drupal 8 release. Please use the
new library load and managment concepts described at:
https://www.drupal.org/node/2170763
141 Call to deprecated function libraries_scan_info_files():
Will be removed before a stable Drupal 8 release. Please use the
new library load and managment concepts described at:
https://www.drupal.org/node/2170763
160 Call to deprecated function libraries_info_defaults():
Will be removed before a stable Drupal 8 release. Please use the
new library load and managment concepts described at:
https://www.drupal.org/node/2170763
161 Call to deprecated function libraries_info():
Will be removed before a stable Drupal 8 release. Please use the
new library load and managment concepts described at:
https://www.drupal.org/node/2170763
171 Call to deprecated function libraries_info_defaults():
Will be removed before a stable Drupal 8 release. Please use the
new library load and managment concepts described at:
https://www.drupal.org/node/2170763
172 Call to deprecated function libraries_info():
Will be removed before a stable Drupal 8 release. Please use the
new library load and managment concepts described at:
https://www.drupal.org/node/2170763
187 Call to deprecated function libraries_detect():
Will be removed before a stable Drupal 8 release. Please use the
new library load and managment concepts described at:
https://www.drupal.org/node/2170763
196 Call to deprecated function libraries_detect():
Will be removed before a stable Drupal 8 release. Please use the
new library load and managment concepts described at:
https://www.drupal.org/node/2170763
205 Call to deprecated function libraries_detect():
Will be removed before a stable Drupal 8 release. Please use the
new library load and managment concepts described at:
https://www.drupal.org/node/2170763
215 Call to deprecated function libraries_detect():
Will be removed before a stable Drupal 8 release. Please use the
new library load and managment concepts described at:
https://www.drupal.org/node/2170763
220 Call to deprecated function libraries_detect():
Will be removed before a stable Drupal 8 release. Please use the
new library load and managment concepts described at:
https://www.drupal.org/node/2170763
225 Call to deprecated function libraries_detect():
Will be removed before a stable Drupal 8 release. Please use the
new library load and managment concepts described at:
https://www.drupal.org/node/2170763
230 Call to deprecated function libraries_detect():
Will be removed before a stable Drupal 8 release. Please use the
new library load and managment concepts described at:
https://www.drupal.org/node/2170763
240 Call to deprecated function libraries_detect():
Will be removed before a stable Drupal 8 release. Please use the
new library load and managment concepts described at:
https://www.drupal.org/node/2170763
250 Call to deprecated function libraries_detect():
Will be removed before a stable Drupal 8 release. Please use the
new library load and managment concepts described at:
https://www.drupal.org/node/2170763
260 Call to deprecated function libraries_detect():
Will be removed before a stable Drupal 8 release. Please use the
new library load and managment concepts described at:
https://www.drupal.org/node/2170763
272 Call to deprecated function libraries_load():
Will be removed before a stable Drupal 8 release. Please use the
new library load and managment concepts described at:
https://www.drupal.org/node/2170763
275 Call to deprecated function libraries_load():
Will be removed before a stable Drupal 8 release. Please use the
new library load and managment concepts described at:
https://www.drupal.org/node/2170763
278 Call to deprecated function libraries_load():
Will be removed before a stable Drupal 8 release. Please use the
new library load and managment concepts described at:
https://www.drupal.org/node/2170763
335 Call to deprecated function libraries_info_defaults():
Will be removed before a stable Drupal 8 release. Please use the
new library load and managment concepts described at:
https://www.drupal.org/node/2170763
342 Call to deprecated function libraries_info():
Will be removed before a stable Drupal 8 release. Please use the
new library load and managment concepts described at:
https://www.drupal.org/node/2170763
363 Call to deprecated function libraries_detect():
Will be removed before a stable Drupal 8 release. Please use the
new library load and managment concepts described at:
https://www.drupal.org/node/2170763
375 Call to deprecated function libraries_load():
Will be removed before a stable Drupal 8 release. Please use the
new library load and managment concepts described at:
https://www.drupal.org/node/2170763
386 Call to deprecated function libraries_load():
Will be removed before a stable Drupal 8 release. Please use the
new library load and managment concepts described at:
https://www.drupal.org/node/2170763
------ -------------------------------------------------------------------------------------------------------

[ERROR] Found 33 errors

xeM8VfDh’s picture

@GaëlG hmm, I don't get those errors. Do you want to take a stab at resolving them in a new patch?

xeM8VfDh’s picture

Also, @GaëlG, are you sure you're testing the patch against the latest state of the 8.x-3.x branch? Your comment in #12 seems to contradict your comment in #9. Appologies if I am misunderstanding.

xeM8VfDh’s picture

Okay, so i applied this patch to fix the trait issue, and then I applied the patch in #7, and I was able to reproduce @GaëlG's results:

I will take a look later today

xeM8VfDh’s picture

FileSize
5.18 KB

Okay, I created a new patch 3119010-8.patch 3119010-9.patch, which resolves all of the core drupal deprecations show above. The output after applying this patch (remember, you must apply this patch first if you are using a fresh clone of 8.x-3.x) now only includes deprecation warnings for internal Libraries functions. These remaining errors are outside the scope of this issue, as they are unrelated to Drupal 9 compatibility, so I think we shouldn't worry about them here.

xeM8VfDh’s picture

FileSize
4.36 KB
xeM8VfDh’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 17: 3119010-9.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

xeM8VfDh’s picture

Status: Needs work » Needs review
FileSize
4.41 KB

trying again to to test failure (3119010-10.patch)

Status: Needs review » Needs work

The last submitted patch, 20: 3119010-10.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

xeM8VfDh’s picture

Status: Needs work » Needs review

apologies, I am struggling with running tests on my local machine for this module. maybe someone else can pick up where I left off and resolve those failing tests.

xeM8VfDh’s picture

Status: Needs review » Needs work
Suresh Prabhu Parkala’s picture

Assigned: Suresh Prabhu Parkala » Unassigned
xeM8VfDh’s picture

FileSize
4.41 KB

Okay, was able to get testing partially working on my machine and believe I've resolved the issue causing tests to fail on the path in #20.

Adding patch 3119010-11.patch, which must be applied in conjunction with this patch. Once both are applied, I see 29 errors from drupal-check, but there are for internal libraries functions that have been marked deprecated, which, as I mentioned above, I believe to be outside the scope of this issue. No more drupal 9 issues.

$ ./vendor/bin/drupal-check modules/libraries/
 90/90 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

 ------ ------------------------------------------------------------------ 
  Line   src/Tests/LibrariesUnitTest.php                                   
 ------ ------------------------------------------------------------------ 
  28     Call to deprecated function libraries_get_path():                 
         Will be removed before a stable Drupal 8 release. Please use the  
         new library load and managment concepts described at:             
         https://www.drupal.org/node/2170763                               
  49     Call to deprecated function libraries_prepare_files():            
         Will be removed before a stable Drupal 8 release. Please use the  
         new library load and managment concepts described at:             
         https://www.drupal.org/node/2170763                               
 ------ ------------------------------------------------------------------ 

 ------ ------------------------------------------------------------------ 
  Line   src/Tests/LibrariesWebTest.php                                    
 ------ ------------------------------------------------------------------ 
  59     Call to deprecated function libraries_detect_dependencies():      
         Will be removed before a stable Drupal 8 release. Please use the  
         new library load and managment concepts described at:             
         https://www.drupal.org/node/2170763                               
  106    Call to deprecated function libraries_detect_dependencies():      
         Will be removed before a stable Drupal 8 release. Please use the  
         new library load and managment concepts described at:             
         https://www.drupal.org/node/2170763                               
  113    Call to deprecated function libraries_detect_dependencies():      
         Will be removed before a stable Drupal 8 release. Please use the  
         new library load and managment concepts described at:             
         https://www.drupal.org/node/2170763                               
  137    Call to deprecated function libraries_scan_info_files():          
         Will be removed before a stable Drupal 8 release. Please use the  
         new library load and managment concepts described at:             
         https://www.drupal.org/node/2170763                               
  141    Call to deprecated function libraries_scan_info_files():          
         Will be removed before a stable Drupal 8 release. Please use the  
         new library load and managment concepts described at:             
         https://www.drupal.org/node/2170763                               
  160    Call to deprecated function libraries_info_defaults():            
         Will be removed before a stable Drupal 8 release. Please use the  
         new library load and managment concepts described at:             
         https://www.drupal.org/node/2170763                               
  161    Call to deprecated function libraries_info():                     
         Will be removed before a stable Drupal 8 release. Please use the  
         new library load and managment concepts described at:             
         https://www.drupal.org/node/2170763                               
  171    Call to deprecated function libraries_info_defaults():            
         Will be removed before a stable Drupal 8 release. Please use the  
         new library load and managment concepts described at:             
         https://www.drupal.org/node/2170763                               
  172    Call to deprecated function libraries_info():                     
         Will be removed before a stable Drupal 8 release. Please use the  
         new library load and managment concepts described at:             
         https://www.drupal.org/node/2170763                               
  187    Call to deprecated function libraries_detect():                   
         Will be removed before a stable Drupal 8 release. Please use the  
         new library load and managment concepts described at:             
         https://www.drupal.org/node/2170763                               
  196    Call to deprecated function libraries_detect():                   
         Will be removed before a stable Drupal 8 release. Please use the  
         new library load and managment concepts described at:             
         https://www.drupal.org/node/2170763                               
  205    Call to deprecated function libraries_detect():                   
         Will be removed before a stable Drupal 8 release. Please use the  
         new library load and managment concepts described at:             
         https://www.drupal.org/node/2170763                               
  215    Call to deprecated function libraries_detect():                   
         Will be removed before a stable Drupal 8 release. Please use the  
         new library load and managment concepts described at:             
         https://www.drupal.org/node/2170763                               
  220    Call to deprecated function libraries_detect():                   
         Will be removed before a stable Drupal 8 release. Please use the  
         new library load and managment concepts described at:             
         https://www.drupal.org/node/2170763                               
  225    Call to deprecated function libraries_detect():                   
         Will be removed before a stable Drupal 8 release. Please use the  
         new library load and managment concepts described at:             
         https://www.drupal.org/node/2170763                               
  230    Call to deprecated function libraries_detect():                   
         Will be removed before a stable Drupal 8 release. Please use the  
         new library load and managment concepts described at:             
         https://www.drupal.org/node/2170763                               
  240    Call to deprecated function libraries_detect():                   
         Will be removed before a stable Drupal 8 release. Please use the  
         new library load and managment concepts described at:             
         https://www.drupal.org/node/2170763                               
  250    Call to deprecated function libraries_detect():                   
         Will be removed before a stable Drupal 8 release. Please use the  
         new library load and managment concepts described at:             
         https://www.drupal.org/node/2170763                               
  260    Call to deprecated function libraries_detect():                   
         Will be removed before a stable Drupal 8 release. Please use the  
         new library load and managment concepts described at:             
         https://www.drupal.org/node/2170763                               
  272    Call to deprecated function libraries_load():                     
         Will be removed before a stable Drupal 8 release. Please use the  
         new library load and managment concepts described at:             
         https://www.drupal.org/node/2170763                               
  275    Call to deprecated function libraries_load():                     
         Will be removed before a stable Drupal 8 release. Please use the  
         new library load and managment concepts described at:             
         https://www.drupal.org/node/2170763                               
  278    Call to deprecated function libraries_load():                     
         Will be removed before a stable Drupal 8 release. Please use the  
         new library load and managment concepts described at:             
         https://www.drupal.org/node/2170763                               
  335    Call to deprecated function libraries_info_defaults():            
         Will be removed before a stable Drupal 8 release. Please use the  
         new library load and managment concepts described at:             
         https://www.drupal.org/node/2170763                               
  342    Call to deprecated function libraries_info():                     
         Will be removed before a stable Drupal 8 release. Please use the  
         new library load and managment concepts described at:             
         https://www.drupal.org/node/2170763                               
  363    Call to deprecated function libraries_detect():                   
         Will be removed before a stable Drupal 8 release. Please use the  
         new library load and managment concepts described at:             
         https://www.drupal.org/node/2170763                               
  375    Call to deprecated function libraries_load():                     
         Will be removed before a stable Drupal 8 release. Please use the  
         new library load and managment concepts described at:             
         https://www.drupal.org/node/2170763                               
  386    Call to deprecated function libraries_load():                     
         Will be removed before a stable Drupal 8 release. Please use the  
         new library load and managment concepts described at:             
         https://www.drupal.org/node/2170763                               
 ------ ------------------------------------------------------------------ 

                                                                                                                        
 [ERROR] Found 29 errors
xeM8VfDh’s picture

Status: Needs work » Needs review
xeM8VfDh’s picture

aspilicious’s picture

Status: Needs review » Needs work

Got a fatal in d9. drupal_get_profile is deprecated
Needs to be fixed.

xeM8VfDh’s picture

FileSize
5.32 KB

Thanks for the heads up @aspilicious. I'm not sure why drupal-check is not picking that up. I'm adding 3119010-12.patch to fix that. Again, it should be installed in conjunction with this patch. Can you please test again?

xeM8VfDh’s picture

Status: Needs work » Needs review
aspilicious’s picture

I found a problem with another module and this one is affected to: "file_scan_directory" is deprecated

aspilicious’s picture

Status: Needs review » Needs work
aspilicious’s picture

Status: Needs work » Needs review
FileSize
5.77 KB
xeM8VfDh’s picture

FileSize
8.08 KB

(see comment below)

Status: Needs review » Needs work

The last submitted patch, 34: 3119010-13.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

xeM8VfDh’s picture

thanks @aspilicious, I also noticed ModuleHandler::parseDependency and drupal_check_incompatibility are also deprecated, so I also fixed those along with file_scan_directory. Please see 3119010-13.patch 3119010-14 (as usual, must be applied with this patch to allow drupal-check to work).

P.S. I am not very familiar with the libraries code, or the core APIs. Some of the deprecation notices and suggested changes are not entirely clear, and some of the libraries code that needs to be updated is not entirely clear. If someone with more direct experience with libraries/core APIs could review these changes, particularly those implemented in libraries_detect_dependencies, that would be super helpful.

xeM8VfDh’s picture

xeM8VfDh’s picture

Status: Needs work » Needs review
Anybody’s picture

@Maintainer: Any plans or ETA for the Drupal 9 compatibility already?

xeM8VfDh’s picture

@Anybody, this is it lol. I've privately messaged folks form this issue to come test again, but no luck so far. I'm not sure how active the maintenance of this module is.

podarok’s picture

@xeM8VfDh - just release a patch to dev and you'd get more people to test against Drupal 9

podarok’s picture

Status: Needs review » Reviewed & tested by the community
podarok’s picture

tested #36 - seems like working

xeM8VfDh’s picture

@podarok I cannot release anything, I am not a maintainer. Thanks for testing and updating status :)

I fear this module might be on its deathbed.

GaëlG’s picture

xeM8VfDh’s picture

this seems like a cool initiative @GaeIG and a good avenue to explore. My philosophy is to use as few modules as possible, and steer clear of those that are not actively maintained. Therefore, my personal preference is to drop Libraries altogether, and I think I have managed to do just that. But, I recognize that this isn't always an option for everyone, in which case the initiative you mentioned is definitely worth pursuing, especially since the work seems to be mostly done here with the patch and its just a matter of the maintainers not being around. but, if this patch gets force merged, this issue will eventually arise again with some other Drupal update. The key is to have some maintainer around who is reviewing and merging RBTC at the very least.

GaëlG’s picture

Status: Reviewed & tested by the community » Needs work

Right. If this module doesn't seem to be given much love from the community so far, it might be that it's not so useful anymore. I checked on my side: I have only two little modules requiring it, when I have more time I'll have a look if they still really need it.

Anyway, drupal-check still doesn't like the latest dev:

90/90 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

------ ---------------------------------------------------------------------
Line src/ExternalLibrary/LibraryManagerInterface.php
------ ---------------------------------------------------------------------
Class
Drupal\libraries\ExternalLibrary\Exception\LibraryAccessorInterface
not found.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
------ ---------------------------------------------------------------------

.

xeM8VfDh’s picture

yeah, I think most modules that used to require Libraries have dropped it (or have conditionals to use it IF its installed, but don't require it to be installed).

as for latest patch not working, I think its because you must apply it on latest dev along side this patch

But since that patch is also not merged, I am kind of just giving up on this. Apologies to those still holding out for this to be fixed.

sajid_007’s picture

Here is the patch.

rishab.singh’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 49: 3119010-deprecated.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

xeM8VfDh’s picture

@sajid_007 should fix their latest patch and maybe explain what it fixes that the working 3119010-14.patch patch doesn't.

boromino’s picture

Status: Needs work » Needs review
FileSize
11.11 KB
3.15 KB

Injected extension.list.$type services into LibraryManager.

jungle’s picture

+++ b/libraries.info.yml
@@ -2,3 +2,4 @@ name: Libraries
+core_version_requirement: ^8 || ^9

Should add to the test module as well.

devdesagar’s picture

Patch 54 is working for me. Tested on Drupal8 and Drupal9.

devdesagar’s picture

Status: Needs review » Reviewed & tested by the community
xeM8VfDh’s picture

Is this module still actively maintained? I know much of its functionality has moved to core. Is it even worth patching, or is the more forward-compatible approach to advise all users and module maintainers that consumer Libraries to drop the dependency? I do know many modules that depend on Libraries have already done this are are actively in the process.

berramou’s picture

I use Masonry AP module depends on it!

xeM8VfDh’s picture

I hear you, its frustrating dealing with the dependency tree. You should reach out to that module maintainer and encourage them to remove the dependency, as other modules are doing or have done.

dksdev01’s picture

+1 for the D9 release

douggreen made their first commit to this issue’s fork.

joseph.olstad’s picture

I am a co-maintainer here, which patch do you want me to review/commit ?

podarok’s picture

fgm’s picture

The one at https://www.drupal.org/project/libraries/issues/2952316 works for me and @MosheWeitzman set it to RTBC too.

Actually, it's about Drush, not core, sorry.

drupgirl’s picture

+1 for getting this patch committed soon, as I am sure it's a blocker for lots of sites that need to be bumped up to D9.

  • joseph.olstad committed c447a9a on 8.x-3.x authored by podarok
    Issue #3119010 by podarok, xeM8VfDh, douggreen, Suresh Prabhu Parkala,...
joseph.olstad’s picture

Status: Reviewed & tested by the community » Fixed

Big thanks to @podarok and everyone else, we now have a new tagged release 8.x-3.0-alpha2 with Drupal 9 support, hopefully this does the trick for everyone.

  • joseph.olstad committed 1fc92c0 on 8.x-3.x authored by podarok
    Issue #3119010 by podarok, xeM8VfDh, douggreen, Suresh Prabhu Parkala,...
joseph.olstad’s picture

alpha3 is tagged, you'll need this for Drupal 9, I replaced a couple deprecated calls and incorrect substitutes for deprecated functions in libraries.module that were missed by padaroks version

should be good to go now, I'm running 3.0-alpha3 with Drupal 9 and haven't noticed any issues.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.