CodeIgniter Forums
spark Command "list" not found. ** RESOLVED - CONFIG ERROR ** - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: spark Command "list" not found. ** RESOLVED - CONFIG ERROR ** (/showthread.php?tid=75588)



spark Command "list" not found. ** RESOLVED - CONFIG ERROR ** - marqone - 02-24-2020

I was trying to reload a migration for testing via spark and received the following error trying to execute spark:


Command "list" not found.


I moved down to RC4 from RC3 when 4.0.1 broke my dev site.


RE: spark Command "list" not found. - MGatner - 03-01-2020

Have you used 4.0.2 yet? That fixed a number of issues related to fragmented releases


RE: spark Command "list" not found. - marqone - 03-02-2020

(03-01-2020, 08:46 AM)MGatner Wrote: Have you used 4.0.2 yet? That fixed a number of issues related to fragmented releases

Yes - I did additional testing and reported back on this thread: https://forum.codeigniter.com/thread-75633.html as it is the same problem. Appears to be a problem at minimum with the appstarter project.


RE: spark Command "list" not found. - marqone - 04-06-2020

Just want to bump this topic again. I have still been unable to resolve this issue. I suspected it was at first something to do with a path issue, but I replaced the paths files and still have same error. I cannot simply restart my repo as months of work has gone into it. What else might cause the spark tool not to find the "help" command. My gut says this is a path issue, but I also have filters that run.

One thing I did also notice is that when I ran it without a .env file I got different errors regarding my missing redis information (we log to redis before writing to a database for further inspection). When I put the .env file it continues with no error.

Error Message:
CodeIgniter CLI Tool - Version 4.0.2 - Server-Time: 2020-04-06 22:00:19pm

Command "help" not found.


RE: spark Command "list" not found. - marqone - 04-07-2020

I finally tracked down this problem to a bad entry in my app/Config/Autoload.php file. I had added a PSR-4 mapping for my SAML (SimpleSAML) that pointed to a shared autoload.php file instead of an actual path. I have other namespaces loaded here, not sure why this did not trigger some sort of error, but seems to be working now that it is fixed.