m-bobrowicz / php-integrator-symbol-viewer

Atom package providing side panel with class information: constants, properties and methods with go-to functionality provided by php-integrator-base package.
GNU General Public License v3.0
20 stars 11 forks source link

There is no data to be displayed. #25

Open dahappy1989 opened 8 years ago

dahappy1989 commented 8 years ago

Hey iam getting the message There is no data to be displayed in my class so i did a test Class because i thougt maybe something is wrong with it. But i still get the message with:

<?php
class test {
  public $test1 = "";

  public function sayHello(){
    echo "Hello";
  }
}
 ?>

so i reported the problem like suggested ;)

m-bobrowicz commented 8 years ago

Hi, thanks for reporting this.

First of all could you confirm that php-integrator-base is working correctly (i.e. go-to-definition from php-integrator-navigation or autocomplete from php-integrator-autocomplete-plus)?

Second could you test if the problem persists if file has a namespace? From php-integrator-base README:

PSR-compliant code - Write code that follows the PSR standards, especially regarding namespacing.

If those tests don't provide any useful information, then I would have to ask you for some way to reproduce the error, i.e on some starter project like symfony-standard (but any other project on GitHub would be just as good).

Cheers, tocjent

dahappy1989 commented 8 years ago

okay seems you are right and there is something wrong with my php-integrator-base even if iam not ably to figure out what :-( thanks to navigator i can click on functions like strpos or preg_match but everything else does not function ... even not with the symfony-standart project so seems like i have to live without the php-integrator projects since i not even get anything remotly like an error :-( but thx anyway ...

Arcesilas commented 8 years ago

@dahappy1989 Are you concerned by this bug in php-integrator-base ?

dahappy1989 commented 8 years ago

okay first since english isnt my native language iam not sure if you really wanted to know if iam concerned like bothered by it or if you wanted to ask if that could be the probelm: so i only have 1 project folder but i run the command that they have in that post and got no errors .. so integrator-base SEEMS to index alright ... but stil not working correctly

Arcesilas commented 8 years ago

Ok, I meant "Do you have this problem". English isn't my native language either, that is why I did not think "concerned" could have other meanings. Sorry about that.

Have you tried disabling all other packages and leave active only php-integrator-base and php-integrator-symbol-viewer ?

dahappy1989 commented 8 years ago

yap already tried that but liked i saied the other php-integrator packages also not working so probaly rly is something with my integrator-base package whats causing the problem ... but i cant for the life of it not find any problem

Arcesilas commented 8 years ago

Hi,

I've been able to reproduce the bug (don't know if it's the same origin as yours).

I have two files declaring the exact same class, with the same namespace. I know it's not supposed to happen, but there it is. The second file is a "backup" file, while refactoring it in a new one.

In this specific case, it's perfectly understandable that php-integrator need to associate one class with one file. However, if the class name is the same in the two files (including namespace), the file path is different, and we could expect php-integrator to display correctly the symbols in that file.

@dahappy1989 If this is not the same cause than your problem, I'll create another issue.