Search Issue Tracker

Not Reproducible

Votes

0

Found in

5.4.1p1

Issue ID

834553

Regression

No

MenuItem does not exist after recompiling

Scripting

-

(Check the attached *.gif file to see the bug)

Reproduction steps:
1. Open the attached project in the editor
2. Make a trivial change to any of the C# scripts, forcing the project to be recompiled
3. You'll see a message in the console, from the static initializer in FredEditor.cs
4. Press CTRL-ALT-N twice

Actual: Each press of CTRL-ALT-N simply executes the indicated `MenuItem` in FredEditor.cs, which in this case print a debug message

Expected: Immediately following a recompile of the project, the first time you press CTRL-ALT-N you either get an error message ("ExecuteMenuItem target for Layouts does not exist"), or the editor invokes a some other MenuItem known to the editor. Menu item (Component->Do->Nothing) is gone.

Reproduced on: 5.3.4f1, 5.4.1p1, 5.5.0b4

Comments (4)

  1. LacunaCorp

    Aug 04, 2018 20:56

    Also experiencing this in both 5.6.6f2 and 2017.4.2f2, trying to open a custom EditorWindow. As stuffses said, the invocations appear to be random. Most recently I had this issue with the Lighting window target.

  2. Shrubokrant

    Apr 24, 2018 22:52

    Same issue right here, with a custom plugin with menu items

  3. Sprakle

    Sep 21, 2017 17:32

    Having the exact same problem on 2017.1. Very annoying because hotkeys often seem to just invoke random methods during/after recompiling.

    Maybe this warrants re-opening?

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.