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

Troubleshoot information: phpfmt (fmt.stub.php version) err: #75

Open
MarketHubb opened this issue Apr 10, 2024 · 2 comments
Open

Troubleshoot information: phpfmt (fmt.stub.php version) err: #75

MarketHubb opened this issue Apr 10, 2024 · 2 comments

Comments

@MarketHubb
Copy link

I followed the setup wizard and built a database at /phpfmt. The command appeared to work, but when I run a command like analyze this, I keep getting the "Autocomplete and autoimport need building a database of terms."

I then ran the "troubleshoot information" and there appears to be an issue with the fmt.stub.php version and I'm not sure where or how to set that.

phpfmt.sublime-settings

// Settings in here override those in "/phpfmt/phpfmt.sublime-settings",

{
	"autocomplete": true,
	"php_bin": "/Users/chris/Library/Application Support/Herd/bin/php",
}

Output from "troubleshoot information"

phpfmt (php version):
PHP 8.2.15 (cli) (built: Jan 19 2024 00:15:08) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.15, Copyright (c) Zend Technologies
with Zend OPcache v8.2.15, Copyright (c), by Zend Technologies

phpfmt (php tokenizer) found

phpfmt (fmt.stub.php version):
phpfmt (fmt.stub.php version) err:
Formatting ...
0

0 files total
Took 0s

A snippet of the phpfmt/oracle.sqlite.

Screenshot 2024-04-10 at 2 44 58 PM
@driade
Copy link
Owner

driade commented Apr 11, 2024

Hi. If you run the command "build autocomplete database" from Sublime panel, does it works?

@MarketHubb
Copy link
Author

@driade

I believe so. That screenshot of "A snippet of the phpfmt/oracle.sqlite" is the output of that command. Although, admittedly, I'm not entirely sure how that's supposed to look/format.

I can tell you that, even with the oracle.sqlite file in place, whenever I try to run a command (i.e analyze this), the package re-prompts me to create an auto-complete database.

Do I need to update my phpfmt.sublime-settings file to tell the package where that file lives, or does the build autocomplete database command save that?

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

2 participants