AGS Editor

Further development of AGS Editor

Bug Issue: Typing #undef in script results in exception

Pages: [1]

Crimson Wizard

  • AGSer
  • Posts: 8,649
« 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:
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 »

Crimson Wizard

  • AGSer
  • Posts: 8,649
« Reply #1 on: 21 Jun 2018, 16:31 »
Fixed in 3.4.1.
  • Status changed from New to Closed

Pages: [1]

Issue Details

  • Reported
    05 Nov 2017, 23:09
  • Updated
    21 Jun 2018, 16:31
  • View Status
  • Type
  • Status
  • Priority
  • Version
    AGS 3.4.1
  • Fixed in
  • Assigned to
  • Category
    Script Editor


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