AGS Editor

Further development of AGS Editor

Bug Issue: Typing #undef in script results in exception

Pages: [1]

Crimson Wizard

  • AGSer
  • Posts: 7,508
« on: 05 Nov 2017, 23:09 »
UPD: This happens if you type any of the "undef"/"ifdef"/"ifndef" commands on the last line of the script.

This bug was fixed for "#define" (commit 129e22ee009683d5654d4e2c7f801c9e13cbe9a f), but apparently only that one case was taken care of.


Exception is:
Quote
System.IndexOutOfRangeException: Индекс находился вне границ массива.
   в AGS.Editor.AutoComplete.ProcessPreProce ssorDirective(List`1 defines, FastString& script, AutoCompleteParserState state)
   в AGS.Editor.AutoComplete.ConstructCache(Script scriptToCache, Boolean isBackgroundThread)
   в AGS.Editor.ScriptEditor.scintilla_OnBef oreShowingAutoComplete(Object sender, EventArgs e)
   в AGS.Editor.ScintillaWrapper.ShowAutoCom plete(Int32 charsTyped, String autoCompleteList)
   в AGS.Editor.ScintillaWrapper.ShowAutoCom pleteIfAppropriate(Int32 minimumLength)
   в AGS.Editor.ScintillaWrapper.OnUpdateUI(Object sender, EventArgs e)
   в Scintilla.ScintillaControl.DispatchScin tillaEvent(SCNotification notification)
   в Scintilla.ScintillaControl.WndProc(Message& m)
   в System.Windows.Forms.Control.ControlNat iveWindow.OnMessage(Message& m)
   в System.Windows.Forms.Control.ControlNat iveWindow.WndProc(Message& m)
   в System.Windows.Forms.NativeWindow.Callb ack(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
« Last Edit: 10 Nov 2017, 13:11 by Crimson Wizard »

Pages: [1]

Issue Details

  • Reported
    05 Nov 2017, 23:09
  • Updated
    05 Nov 2017, 23:09
  • View Status
    Public
  • Type
    Bug
  • Status
    New
  • Priority
    Normal
  • Version
    AGS 3.4.1
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    Script Editor

Tags



Powered by: SMF Project Tools 0.5.4 © Niko Pahajoki 2007-2011