Unity-Technologies / com.unity.immediate-window

The Immediate Window provides a way to rapidly edit and debug code. It is not a full development environment, instead it is to be used for API discovery and rapid prototyping.
https://docs.unity3d.com/Packages/com.unity.immediate-window@latest/index.html
Other
37 stars 13 forks source link

Will not compile on Unity 2020.1.0f1 #2

Open JesseTG opened 4 years ago

JesseTG commented 4 years ago

I just upgraded to Unity 2020.1.0f1, and unfortunately it broke this package (version 1.1.0-preview.3) with the following error message:

[CompilerError] The type or namespace name 'UnityScript' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error at Library/PackageCache/com.unity.immediate-window@1.1.0-preview.3/Editor/Sources/UI/Window/Console/OutputItem.cs:2 column 7
1:   using UnityEngine.UIElements;
-->2:   using UnityScript.Scripting;
3:   using UnityEditor.ImmediateWindow.Services;
4:   using UnityEngine;

There's no workaround, the only option is to uninstall it.

andybak commented 4 years ago

The workaround is simply to delete that line (and I think another identical one from somewhere else)

It works fine after that.

@mathieurivest - are you accepting pull requests?

andybak commented 4 years ago

Bump.

@mathieurivest - it's probably a trivial fix but it's not worth me doing it if the PR isn't going to be accepted. Do you still look at your Github issues?

andrew-raphael-lukasik commented 3 years ago

The workaround is simply to delete that line (and I think another identical one from somewhere else)

It works fine after that.

@mathieurivest - are you accepting pull requests?

https://github.com/Unity-Technologies/com.unity.immediate-window/pull/3 contains this very simple change and I can confirm it fixes the issue.