consulo / UnityEditorConsuloPlugin

Consulo plugin for UnityEditor
Apache License 2.0
18 stars 2 forks source link

Cannot load/detect this package #23

Closed TheYellowArchitect closed 3 years ago

TheYellowArchitect commented 3 years ago

I formated my pc, and have used Consulo in the past and ended up working perfectly https://github.com/consulo/consulo-unity3d/issues/178

So, I did this step by step more or less https://github.com/consulo/consulo-unity3d/wiki/1.-Setup-and-Usage I deleted the previous .consulo folder, and the installation was smooth.

However! The plugin installation always goes wrong

I'm on Windows 7, Unity 2018.1.1f1 14 15

The manifest.json file: 14

As for the plugin, I literally pressed the "Install Plugin/Manifest" or whatever Consulo pops up when it doesn't detect the plugin, and yeah this always happens. Is there a way to install it manually? Because I honestly do not even know how to download it since https://upm.consulo.io/#browse/browse/assets:unity is unbrowserable

TheYellowArchitect commented 3 years ago

Solution I tried, to give more info:

  1. Delete manifest.json file (I don't have any packages needed for my project anyway)
  2. Consulo gives me the popup 14
  3. Click install via manifest
  4. Unity loads or whatever, then this happens in the console 15
VISTALL commented 3 years ago

Hello. There I problem of your old Unity version. I can't say when Unity supports custom repository before 2019.

Can you try change it to git url?

https://github.com/consulo/UnityEditorConsuloPlugin#for-advanced-users

TheYellowArchitect commented 3 years ago

I kinda tried the above, if you mean changing the https to http

If you mean this "dependencies": { "com.consulo.ide": "https://github.com/consulo/UnityEditorConsuloPlugin.git" }

^Do you mean I should try replacing "com.consulo.ide": "2.4.0" with "com.consulo.ide": "https://github.com/consulo/UnityEditorConsuloPlugin.git"?

VISTALL commented 3 years ago

yeah

TheYellowArchitect commented 3 years ago

The steps I did:

  1. Delete the manifest.json (since it will be created again)
  2. Open up Consulo and Open/Import the project
  3. Detects no plugin, popup of plugin happens
  4. Install via Manifest
  5. Done
  6. Tweak the text file as mentioned
  7. Open up the Unity project
  8. Get Error 14

Any tips/suggestions? Is there a way to download the plugin manually and put it on its proper folder?

VISTALL commented 3 years ago

Looks like your Unity not support custom packages. In this case need only download sources, and put it to project (in Assets/Plugins/Consulo for example)

Sorry, it cannot be fixed

TheYellowArchitect commented 3 years ago

Sorry, it cannot be fixed

But you also kinda said it can? (quote below)

In this case need only download sources, and put it to project (in Assets/Plugins/Consulo for example)

So, what do I download? Do you have a link?

VISTALL commented 3 years ago

Click Download Zip

image

But you also kinda said it can? (quote below)

It's not fix - it's a compromise. Unity package system is ideal solution of get right version of plugin. Without it - need by hand update files, if you want new version.

TheYellowArchitect commented 3 years ago

As long as it works, I don't care about new version xD

14 15 16 This time Unity managed to open, so it definitely found the package, but there is another issue xD 17 I went to change/edit 18 19 System.Collections is included btw... 20

I guess gg? Can old plugin versions work with current Consulo? I remember the Consulo and plugin I had from https://github.com/consulo/consulo-unity3d/issues/178 worked pretty good (same project) Since Consulo itself works nicely with Unity, all I want is to double click a .cs unity script and open it in Consulo pretty much lel

If there is no solution at all, that's alright, it's not too much a productivity kill, though I have to ask, how do I find a file under a subfolder in Consulo?

For example, I want to open a script in Unity, so instead of manually searching for it in Consulo, I just hotkey and type it (all scripts are under the Scripts folder in my project structure) 21

VISTALL commented 3 years ago

Oh. CocurrentQueue - it's .NET 4.0 feature =/

Old plugin less stable, and have not all implemented features which was added in new version.

Ctrl + N - go to type (any type in project)

Ctrl + Shift + N -> go to any file in project

TheYellowArchitect commented 3 years ago

Oh. CocurrentQueue - it's .NET 4.0 feature =/

Do not bother, users with less than .NET 4.0 are so few, not worth a refactoring for edge-cases like mine

Old plugin less stable, and have not all implemented features which was added in new version.

I remember some crashes hahahaha, but there is no need now, as the hotkeys you provided me with, do exactly the same job as I wanted the plugin for! :grin:

Anyhow, thank you for your quick responses, and for solving this issue for me so fast, without even needing the plugin! :+1:

VISTALL commented 3 years ago

OK

juanitogan commented 2 years ago

I know this is closed but... just adding a note that I got this working in Unity 2017.4 with Consulo 2021.11.

Unity 2017 (starting with 2017.2, I think) has the Package Manager API but not the UI. It has a manifest.json in the UnityPackageManager folder instead of in Packages (and 2017 ignores the manifest.json Consulo put here). I tried moving the manifest setting to the 2017 location, but this early Package Manager version does not support this format:

    "com.consulo.ide": "https://github.com/consulo/UnityEditorConsuloPlugin.git#2.6.0"

According to the error message (seen in an earlier comment above) it wants this format and only this format:

    "com.consulo.ide": "2.4.0"

But, that only works with the http://upm.consulo.io/ server... which appears to be dead.

Thus, my only option seems to be to download the code manually instead. But, because my Unity 2017 project still uses .NET 3.5, the latest code won't work, so I went looking for the older plugin code. I found it in the unityAssetStore branch, here:

image


I copied the Assets\Scripts\Editor\Plugins\Consulo folder from the downloaded zip into my project under Assets\Editor\Plugins and, voila, it works! I can now click on files and error messages in Unity to open them up in Consulo. (Note: I tried the old UnityEditorConsuloPlugin2017.2.dll file first and it did not work.) Perhaps not ideal without whatever the later features are, but better than not having it... and better than Visual Studio.