IDE doesn't work properly when generics are used in the code - in delphi/delphiunicode mode
Original Reporter info from Mantis: daniel_sap
-
Reporter name: Daniel Sapoundjiev
Original Reporter info from Mantis: daniel_sap
- Reporter name: Daniel Sapoundjiev
Description:
Multiple problems occur when generics is used in the code
Steps to reproduce:
Prerequisite - LCL project is opened
- Add generic code in the unit of the main form
mylist: TLinkedList<TObject>;
- Type IntToS in some method
- Press Ctrl+Space
Result - Cursor jumps to the generics variable declaration -> &LtPos;TObject>
The same result happens in many other situations.
When double click on button
- Double click on button in the form that has a onclick method assigned.
Result - Cursor jumps to the generics variable declaration -> &LtPos;TObject>
A message is displayed with the following text.
'The component editor of class "TDefaultComponentEditor" has created the error: "Unable to show method. Please fix the error shown in the message window, which is normally below the source editor"'
Also when I try to generate the method body with Ctrl+Shif+DownArrow the same happens.
Additional information:
I tried this on few computers with different versions of windows xp, 10 - 32 and 64 bit and the generics code makes problems.
Mantis conversion info:
- Mantis ID: 32291
- OS: windows
- OS Build: 10, xp
- Platform: i386, 86_64
- Version: 1.8RC4
- Monitored by: » @bero1985 (Benjamin Rosseaux), » daniel_sap (Daniel Sapoundjiev), » @michaliskambi (Michalis Kamburelis)