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

Add options to specify autoloader script #57

Open
Zekfad opened this issue Nov 17, 2024 · 1 comment
Open

Add options to specify autoloader script #57

Zekfad opened this issue Nov 17, 2024 · 1 comment

Comments

@Zekfad
Copy link
Contributor

Zekfad commented Nov 17, 2024

We have custom class loader (which uses composer with a few additions).

Currently trying to use {# @var variable type #} causes errors in language server log and no suggestions. Also include path is default one. (I'm using workspace file in home directory and project folder ~/www-dev)

[Error - 7:04:36 AM] Command failed: php /home/zekfad/.vscode-server/extensions/moetelo.twiggy-0.17.0/dist/phpUtils/reflectType.php /home/zekfad/www-dev 'string'
PHP Warning:  require_once(/home/zekfad/www-dev): Failed to open stream: No such file or directory in /home/zekfad/.vscode-server/extensions/moetelo.twiggy-0.17.0/dist/phpUtils/reflectType.php on line 18
PHP Fatal error:  Uncaught Error: Failed opening required '' (include_path='.:/usr/share/php') in /home/zekfad/.vscode-server/extensions/moetelo.twiggy-0.17.0/dist/phpUtils/reflectType.php:18
Stack trace:
#0 {main}
  thrown in /home/zekfad/.vscode-server/extensions/moetelo.twiggy-0.17.0/dist/phpUtils/reflectType.php on line 18

Also, as you can see from error above it can't process primitive types like int, string, bool etc.

It would be great to have a way to point autoloader script (we have different loaders per environment).

@Zekfad
Copy link
Contributor Author

Zekfad commented Nov 18, 2024

I'll work on this and submit results after #59

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

1 participant