Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error - No code in project #43

Closed
4val0v opened this issue Mar 1, 2018 · 8 comments
Closed

Error - No code in project #43

4val0v opened this issue Mar 1, 2018 · 8 comments

Comments

@4val0v
Copy link

4val0v commented Mar 1, 2018

root@server:/exakat# php exakat.phar init -p ES51
root@server:
/exakat# php exakat.phar project -p ES51

Error : No code in project 'ES51'
on file phar:///root/exakat/exakat.phar/library/Exakat/Tasks/Files.php
on line 57

Because of what this error?

cd projects/ES51/ && ls
ls

@exakat
Copy link
Owner

exakat commented Mar 7, 2018

Exakat has a configuration that ignore some files : check /projects/ES51/config.ini.

Also, Exakat ignores automatically files that can't compiles. In some situations, if the code was for PHP 5.6, and it is being audited with 7.1, no file compile.

I'll see if I can add a better message for that.

@4val0v
Copy link
Author

4val0v commented Mar 7, 2018

The project is made on PHP5
On the server I checked with PHP 7.2

Installed other versions 5.5 and 5.6

exakat.ini

php55 = /usr/bin/php5
php56 = /usr/bin/php5.6
;php70 = /usr/local/sbin/php70
;php71 = /usr/local/sbin/php71
;php72 = /usr/local/sbin/php72
;php73 = /usr/local/sbin/php73
php72 = /usr/bin/php

Console out:
php exakat.phar project -p evo51 //PHP 7.2

Error : No code in project 'evo51' 
on file phar:///root/exakat/exakat.phar/library/Exakat/Tasks/Files.php
on line 57

php5 exakat.phar project -p evo51

PHP Parse error:  syntax error, unexpected '{', expecting identifier (T_STRING) in phar:///root/exakat/exakat.phar/library/Exakat/Config.php on line 25

php5.6 exakat.phar project -p evo51

PHP Parse error:  syntax error, unexpected '{', expecting identifier (T_STRING) in phar:///root/exakat/exakat.phar/library/Exakat/Config.php on line 25

Exakat works only with php 7 ?
In the project directory should only be php scripts?
Is it possible to exclude not directories but files with extensions?
css, sql, txt, js, .htaccess, .md files need to be ignored or deleted?

@4val0v
Copy link
Author

4val0v commented Mar 7, 2018

https://github.com/exakat/exakat/blob/master/library/Exakat/Tasks/Files.php#L56
The source code of the project should be on this path?
~/exakat/projects/evo51/code ?
or
~/exakat/projects/evo51/
?????

thx

@Mte90
Copy link

Mte90 commented Jul 4, 2018

I have the same issues of projects not found.
Is not clear to me because in case of errors is not written what are the path where the tool is looking for.
Maybe write the paths will be helpful on debug.

./exakat.phar init -p glossary
./exakat.phar project -p glossary
Error : No such project as "glossary".
 
on file phar:///home/vagrant/exakat.phar/library/Exakat/Tasks/FindExternalLibraries.php
on line 110

@Mte90
Copy link

Mte90 commented Jul 4, 2018

In my case was a symlinked folder that was not available from inside a vm.

@exakat
Copy link
Owner

exakat commented Jan 11, 2019

Is this still on ? I would like to close it, if it doesn't happen anymore.

@Mte90
Copy link

Mte90 commented Jan 11, 2019

I am not using anymore exakat so I don't know.

@exakat exakat closed this as completed Jun 11, 2019
@justicecloney
Copy link

justicecloney commented Sep 24, 2020

I'm having this exact issue, and this is the only place on the internet that even mentions the error.
i started with
php exakat.phar init -p <myrepo> -R 'https://gitub.com/<myuser>/<myrepo>.git'
then
php exakat.phar project -p <myrepo>
and it gives no code in project. Going into the directory, it didn't download the git (obvious by the instant init).
browsing to the folder and finding only the sql file and basic init, i copied the code in and ran it again, nothing. I checked the config.ini, nothing weird. I manually included the main folder of code into the config, no change. I tried having the .git folder at that root of the project folder, that didn't work.

update: i tried using the docker version to init, then run, and it just says there's no such project as the one i just initialized using the documentation. I can't seem to get exakat to work for me at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants