Author Topic: Do we have PC support for Unity Tag Files in V25 with 2019.4.22f1?  (Read 1723 times)

bodisafa

  • Community Member
  • Posts: 22
  • Hero Points: 0
I have what seems to be a valid unity.vtg generated, but none of the symbols can be referenced.  The tag file shows a list of files it used to generate the .vtg.  Forced rebuilding the tag file as well, but I've been working without it for years. 

Saw the old post about it working on the Mac, but I haven't seen any confirmation that it works on the PC. :)

Are there any user-facing tagging tools or Slickedit methods that I can use to verify on my side?

Thanks,

- Jeff

bodisafa

  • Community Member
  • Posts: 22
  • Hero Points: 0
Re: Do we have PC support for Unity Tag Files in V25 with 2019.3.11f1?
« Reply #1 on: March 06, 2021, 05:04:52 PM »
Sorry I mean 2019.3.11f.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6826
  • Hero Points: 526
Re: Do we have PC support for Unity Tag Files in V25 with 2019.4.22f1?
« Reply #2 on: March 06, 2021, 08:42:10 PM »
The Unity tag file generation and support had to be updated quite a bit. It won't work well in older versions of SlickEdit. With the latest version of SlickEdit, it's best to configure Unity to launch visual studio to generate a .sln file and then open the .sln file in SlickEdit. Then you get all the symbols. It's too bad you can't force Unity to just generate the .sln file when SlickEdit will be launched.   
« Last Edit: March 06, 2021, 08:47:38 PM by Clark »

bodisafa

  • Community Member
  • Posts: 22
  • Hero Points: 0
Re: Do we have PC support for Unity Tag Files in V25 with 2019.4.22f1?
« Reply #3 on: March 08, 2021, 06:56:26 PM »
Hmm, I've been opening the solution file generated by Unity for DevStudio in the latest version of SlickEdit.

- Jeff :)


Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6826
  • Hero Points: 526
Re: Do we have PC support for Unity Tag Files in V25 with 2019.4.22f1?
« Reply #4 on: March 09, 2021, 01:59:38 AM »
Lets check a couple things.

Do you have a "unity.vtg" tag file?  Tools>Options>Languages>Application Languages>C#>Tag Files

If so, clicking on it will indicate how many files are it. Post how many files are in this tag file.

Are there .dll files in your project? Project>Project Properties>Files tab

SlickEdit pulls all the symbols from unity.vtg and your project file (something.csproj) which should have .dll files in the xml format "<hintpath>blah.dll</hintpath>".

If a .dll file is missing, SlickEdit will not be able to list the symbols correctly.


bodisafa

  • Community Member
  • Posts: 22
  • Hero Points: 0
Re: Do we have PC support for Unity Tag Files in V25 with 2019.4.22f1?
« Reply #5 on: March 09, 2021, 04:11:02 AM »
Lets check a couple things.

> Do you have a "unity.vtg" tag file?  Tools>Options>Languages>Application Languages>C#>Tag Files
Yes! 430 files.

> If so, clicking on it will indicate how many files are it. Post how many files are in this tag file.

Are there .dll files in your project? Project>Project Properties>Files tab

> SlickEdit pulls all the symbols from unity.vtg and your project file (something.csproj) which should have .dll files in the xml format "> <hintpath>blah.dll</hintpath>".

> If a .dll file is missing, SlickEdit will not be able to list the symbols correctly.

We use the IL2CPP in order to compile our Unity project.  I made sure that we generate all .csproj files as well.  We have some native code as well as C#code.

I tried to "Go to definition" for Vector3.  Here are screenshots of the Select Symbol dialog as well as the error dialog.
I get this regardless of which option I choose.

- Jeff :)





Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6826
  • Hero Points: 526
Re: Do we have PC support for Unity Tag Files in V25 with 2019.4.22f1?
« Reply #6 on: March 09, 2021, 02:01:54 PM »
You won't be able to navigate to a symbol in a .dll file. You would have to have the .cs files. I don't think Unity provides the source code (.cs files) for these DLLs.

bodisafa

  • Community Member
  • Posts: 22
  • Hero Points: 0
Re: Do we have PC support for Unity Tag Files in V25 with 2019.4.22f1?
« Reply #7 on: March 09, 2021, 04:08:27 PM »
Right, but if we compare the usage to DevStudio, we see:
Is there a way to access the metadata that DevStudio has?  I was wondering if that was via the Unity DevStudio plugin or not.
Not sure what Unity.vtg would give us otherwise.

Thanks,

- Jeff :)

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6826
  • Hero Points: 526
Re: Do we have PC support for Unity Tag Files in V25 with 2019.4.22f1?
« Reply #8 on: March 09, 2021, 06:05:15 PM »
This looks like a decompile and not the actual source code. SlickEdit doesn't currently support decompiling C# code from .DLLs.

bodisafa

  • Community Member
  • Posts: 22
  • Hero Points: 0
Re: Do we have PC support for Unity Tag Files in V25 with 2019.4.22f1?
« Reply #9 on: March 09, 2021, 06:10:59 PM »
I'm trying to understand what features Unity.vtg is meant to give users.

- Jeff :)


Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6826
  • Hero Points: 526
Re: Do we have PC support for Unity Tag Files in V25 with 2019.4.22f1?
« Reply #10 on: March 09, 2021, 06:28:38 PM »
It's for listing symbols. For example, if variable c is of class type C in DLL D. when you "c." you will get a list of the members in class C. SlickEdit will also display the arguments for member functions (i.e when you type "c.member(" ).

bodisafa

  • Community Member
  • Posts: 22
  • Hero Points: 0
Re: Do we have PC support for Unity Tag Files in V25 with 2019.4.22f1?
« Reply #11 on: March 09, 2021, 07:56:49 PM »
Hmm, I type the following:

public class Bar
{
    public void foo()
    {
        Vector3 a;
    a. (nothing expands or is revealed).
    }
}

Dennis

  • Senior Community Member
  • Posts: 3955
  • Hero Points: 515
Re: Do we have PC support for Unity Tag Files in V25 with 2019.4.22f1?
« Reply #12 on: March 10, 2021, 12:24:54 AM »
From a C# source file, go to Document > C# Options... > Tag Files

Select the "unity.vtg" tag file.  My guess is you probably have an old one which is out-of-date or incomplete.  Simply click on the button to rebuild the tag file (the blue cycle-ly one), and then click OK.  Wait for the tag file to finish building, should be less than a minute.  The list will be updated with the list of files in that tag file if SlickEdit successfully found your Unity installation.  After doing this, symbol completion should work correctly for you.

I verified that this works with the version you mentioned:  2019.3.11f.

bodisafa

  • Community Member
  • Posts: 22
  • Hero Points: 0
Re: Do we have PC support for Unity Tag Files in V25 with 2019.4.22f1?
« Reply #13 on: March 10, 2021, 12:41:43 AM »
Ah, there was a duplicate Unity.vtg file in the C# interface.  Removing that allowed it to use the one from the project.  Hooray!

Thanks,

- Jeff :)