Author Topic: Still having some difficulties with Google Go tagging in SE 22.0.1.  (Read 3243 times)

asandler

  • Senior Community Member
  • Posts: 303
  • Hero Points: 27
There is clearly an improvement compared to 22.0.0.9, however I am still having some problems.
We have large package called "tables". This package spans multiple files and mostly has definitions of structures and functions that operate on these structures. For some reason SE does not understand this package and its contents. Typing something like "tables." does not produce list of possible completions, like it would with other packages. The package is imported via directory it lives in - it is in directory called "ivy-tables", so we import "ivy-tables".
I tried to reproduce this problem with a scaled down demo version of the project and it does not reproduce. It has to be something in our project that causes this. How I go about and debug something like this?

Thanks,
Merry Christmas.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6866
  • Hero Points: 528
Re: Still having some difficulties with Google Go tagging in SE 22.0.1.
« Reply #1 on: December 27, 2017, 03:26:49 PM »
You could try rebuilding your tag file (Project>Retag Workspace).

asandler

  • Senior Community Member
  • Posts: 303
  • Hero Points: 27
Re: Still having some difficulties with Google Go tagging in SE 22.0.1.
« Reply #2 on: December 28, 2017, 01:56:40 PM »
I tried that, one of the first things I tried. Unfortunately it did not help.
Anything else I can do?

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
Re: Still having some difficulties with Google Go tagging in SE 22.0.1.
« Reply #3 on: December 29, 2017, 04:02:51 PM »
Could you send us the scaled down demo anyway, even if it doesn't reproduce the problem?  It would probably save us a lot of questions about the structure that will come up as we look at your tag file.

Edit:  also, lets us know how your GOPATH is set relative to this project - for example GOPATH is /home/something/goproject, and the demo is at /home/something/goproject/src/demo.   We were looking at some test projects and your tag file, and have a sneaking suspicion that where the project is relative to the GOPATH plays a part in the problem.
« Last Edit: December 29, 2017, 04:49:15 PM by patrick »

asandler

  • Senior Community Member
  • Posts: 303
  • Hero Points: 27
Re: Still having some difficulties with Google Go tagging in SE 22.0.1.
« Reply #4 on: December 29, 2017, 04:45:26 PM »
FWIW attached.
I tried to play with the case when there are multiple files in a library and file names, package name and directory name are all different. As I said it worked.

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
Re: Still having some difficulties with Google Go tagging in SE 22.0.1.
« Reply #5 on: December 29, 2017, 05:41:57 PM »
Thanks, not a problem if it doesn't reproduce with this one, this is more for our reference so we can be confident the project structure is correctly reflected in the tag file.

In the tag file you sent, we can see the tables package in the tag file, and a bunch of symbols in that package that should show up for completion, but we're still trying to work out why the lookup fails to find them. 


asandler

  • Senior Community Member
  • Posts: 303
  • Hero Points: 27
Re: Still having some difficulties with Google Go tagging in SE 22.0.1.
« Reply #6 on: December 29, 2017, 05:58:23 PM »
I think I reproduced the problem.

I noticed couple of more anomalies:
1. We often define a bunch of types using following syntax:
Code: [Select]
type (
    TypeA uint64
    TypeB uint64
)
Looking at Defs window, these types appear as uint64, not as TypeA or TypeB.
2. We have large number of structure methods. Method names are the same. Structure is different every time. Defs window shows method names correctly, but does not reflect structure name in any way.

I copied small part of our code to my dummy project to src/ivy-tables/file1.go. The code itself is kind of useless because I had to rename/remove a bunch of external dependencies. However it does have two peculiarities above.
If you look at main in src/dir1/dir1.go, try entering "tables.", SE does not offer any completion options for me. Defs window in file1.go shows same two problems as in my main project.

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
Re: Still having some difficulties with Google Go tagging in SE 22.0.1.
« Reply #7 on: December 29, 2017, 06:23:50 PM »
That's great, we can reproduce both problems with that project.  Thanks.

Dennis

  • Senior Community Member
  • Posts: 3961
  • Hero Points: 517
Re: Still having some difficulties with Google Go tagging in SE 22.0.1.
« Reply #8 on: January 03, 2018, 12:37:17 AM »
These issues will be fixed in the next release.

asandler

  • Senior Community Member
  • Posts: 303
  • Hero Points: 27
Re: Still having some difficulties with Google Go tagging in SE 22.0.1.
« Reply #9 on: January 03, 2018, 01:15:24 AM »
Thanks. Just to confirm, next release means 22.0.2 and not one of the hot-fixes, right?

Dennis

  • Senior Community Member
  • Posts: 3961
  • Hero Points: 517
Re: Still having some difficulties with Google Go tagging in SE 22.0.1.
« Reply #10 on: January 03, 2018, 05:50:52 PM »
Unfortunately, the problem can not be hot-fixed.