completion in java for classes in the same package
ian martins <[email protected]> Mon, 14 Oct 2019 15:12:30 -0400
| Newsgroups | gmane.emacs.semantic |
|---|---|
| Message-ID | <CAC=rjb5wTCfQra6cdQ_7gSf8Vc+ZwbCWjtSzo7Rn+eRdjjuToA@mail.gmail.com> |
--===============4911544256461054868==
Content-Type: multipart/alternative; boundary="000000000000d712000594e3a625"
--000000000000d712000594e3a625
Content-Type: text/plain; charset="UTF-8"
Hello,
I want to use semantic for completion in java, but it doesn't seem to find
classes in the same package as the class being visited in the current
buffer.
For example, if I have the following package structure:
mypackage/MyClassA
/MyClassB
and I open MyClassA in a buffer and try to auto complete the methods of an
object of type MyClassB, semantic says
"semantic-analyze-possible-completions-default: Cannot find types for
`MyClassB classB'"
I found that if I add an "import mypackage.MyClassB;" at the top of
MyClassA, it'll work. But this shouldn't be necessary. Is this intentional?
I'm tested on
emacs 24.5, semantic 2.2 and
emacs 26.3, semantic 2.2.
Thanks,
Ian
--000000000000d712000594e3a625
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">Hello,<br><br>I want to use semantic for completion in jav=
a, but it=20
doesn't seem to find classes in the same package as the class being=20
visited in the current buffer.<br><br>For example, if I have the following =
package structure:<br><br>=C2=A0 =C2=A0 mypackage/MyClassA<br>=C2=A0 =C2=A0=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0/MyClassB<br><br>and
I open MyClassA in a buffer and try to auto complete the methods of an=20
object of type MyClassB, semantic says "semantic-analyze-possible-comp=
letions-default: Cannot find types for `MyClassB classB'"<br><br><=
div>I
found that if I add an "import mypackage.MyClassB;" at the top o=
f=20
MyClassA, it'll work. But this shouldn't be necessary. Is this=20
intentional?</div><div><br></div><div>I'm tested on <br></div><div>emac=
s 24.5, semantic 2.2 and</div><div>emacs 26.3, semantic 2.2.<br></div><br>T=
hanks,<br>Ian</div>
--000000000000d712000594e3a625--
--===============4911544256461054868==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--===============4911544256461054868==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
cedet-semantic mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cedet-semantic
--===============4911544256461054868==--