vanBassum / Wakatime.Unity

A Wakatime plugin for Unity
MIT License
36 stars 7 forks source link

Unable to locate the Wakatime menu in services #17

Closed Keelan-Matthews closed 1 year ago

Keelan-Matthews commented 1 year ago

I managed to add the package to Unity, but could not locate the wakatime menu anywhere in the services section. I am unsure why.

vanBassum commented 1 year ago

It should be in Services/vanbassum/WakaTime

Keelan-Matthews commented 1 year ago

It should be in Services/vanbassum/WakaTime

Indeed, however the services tab only shows options to enable ads etc for the project. "vanbassum" does not appear in "Services"

vanBassum commented 1 year ago

Strange, can you show me where you placed the folder with the extension? I've added screenshots of my project.

image image

Keelan-Matthews commented 1 year ago

I installed the package through package manager>Add package via git url. I also don't seem to have the Services tab at all. image image

When I search for any instance of Services in Unity, this is all it gives me: image

vanBassum commented 1 year ago

Could you try changing the following line to something else? Maybe not in the service menu.

Editor/UI/SettingsWindow.cs

Also, what version of editor do you use?

Keelan-Matthews commented 1 year ago

Changing it does not work unfortunately. I am using Unity 2021.3.18f1.

vanBassum commented 1 year ago

Steps I took to reproduce:

Now I get the following error: Library\PackageCache\com.vanbassum.wakatime@2c0adecaf9\Editor\Plugin.cs(2,7): error CS0246: The type or namespace name 'Newtonsoft' could not be found (are you missing a using directive or an assembly reference?)

It seems newtonsoft JSON is missing. I removed the reference to newtonsoft JSON since its not used anyway. Now the plugin is initializing and the menu item appears.

Ive pushed the change to the main, could you test this?

Keelan-Matthews commented 1 year ago

Steps I took to reproduce:

  • Installed 2021.3.18f1
  • Create project (3D unity build in renderer)
  • Install the plugin (Window -> Package manager -> Add package from git url)

Now I get the following error: Library\PackageCache\com.vanbassum.wakatime@2c0adecaf9\Editor\Plugin.cs(2,7): error CS0246: The type or namespace name 'Newtonsoft' could not be found (are you missing a using directive or an assembly reference?)

It seems newtonsoft JSON is missing. I removed the reference to newtonsoft JSON since its not used anyway. Now the plugin is initializing and the menu item appears.

Ive pushed the change to the main, could you test this?

This resolved the issue. The menu now shows up, thank you for the fix!