Skip to content

Jump to definition and omnicomplete not working #116

@dkjii-gg

Description

@dkjii-gg

Hey, I'm setting up phpcomplete and having some trouble

When I use jump_to_def, it falls back to the default vim (autoload/phpcomplete.vim:1027)

here's a repo that doesn't work: https://github.com/dkjii-gg/phpcomplete-test
I added the tags file and the .ctags too as I think they're alright

log (I added a bunch of echom):

symbol: test contxt: new testnamespace2\ namespace: testnamespace2
search_namespace: testnamespace2
found namespace: testnamespace2
filename: test2.php
symbol_file: test2.php
tag_line: class test extends \testnamespace\test {
matching /^class test {$/ against class test extends \testnamespace\test {
matching /^class test extends \\testnamespace\\test {$/ against class test extends \testnamespace\test {
matching /^namespace testnamespace;$/ against class test extends \testnamespace\test {
matching /^namespace testnamespace2;$/ against class test extends \testnamespace\test {
matching /^^Ifunction __construct() { echo "a"; }$/ against class test extends \testnamespace\test {
matching /^class test extends \\testnamespace\\test {$/ against class test extends \testnamespace\test {
matching /^class test {$/ against class test extends \testnamespace\test {
matching /^^Ifunction __construct() {$/ against class test extends \testnamespace\test {
tag_pos: -1

I'm not sure how to fix this, as I don't understand why this happens:
echo '/^class test extends \\testnamespace\\test {$/' =~ 'class test extends \testnamespace\test {'
-> gives 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions