X-Sharp / XSharpPublic

Public repository for the source code for the XSharp Compiler, Runtime, Project System and Tools.
Apache License 2.0
93 stars 36 forks source link

VS Freezes when using Intellisense #1388

Open TimothyShea opened 10 months ago

TimothyShea commented 10 months ago

This is happening in VS 2019 and VS 2022 using X# 2.17 and 2.18 and I have rebuilt the Intellisense Database.

If an undeclared variable is entered followed by : or . , VS is unresponsive and needs to be forced closed.

e.g.

local oJunk as OBJECT

oJunk := OBJECT{}

oJunk: // This works

oMoreJunk: // hangs VS

This seems to happen with files that are involved with window classes. Both Vulcan and Forms. Some files in the solution are fine. Same result using X# and Vulcan libraries.

Desktop (please complete the following information):

PS Not sure if this should entered as a bug.

RobertvanderHulst commented 10 months ago

Tim, What are the compiler options for your app, or can you share the XsProj file for the app here?

TimothyShea commented 10 months ago

Hi Robert,

Try this one. Thanks in advance.

Regards, Tim

Timothy Shea AMPL Software Pty Ltd ampl.com.au +61 2 9440 0269 @.***

On Thu, 30 Nov 2023 at 18:46, Robert van der Hulst @.***> wrote:

Tim, What are the compiler options for your app, or can you share the XsProj file for the app here?

— Reply to this email directly, view it on GitHub https://github.com/X-Sharp/XSharpPublic/issues/1388#issuecomment-1833258091, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA3USBXHMA6X5NGBOD5E5OTYHA2TZAVCNFSM6AAAAAA7VY45YKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZTGI2TQMBZGE . You are receiving this because you authored the thread.Message ID: @.***>

<?xml version="1.0" encoding="utf-8"?>

Vulcan x86 Debug 1.1.209.0 {77AE300E-E5E7-4BC1-A9C0-B1FFC7636C23} Library true false LH_32_Windows LH_32_Windows true true true true true true true true true true false true false false true true true true true v4.6.2 false False False true DEBUG False $(SolutionDir)\Bin\$(Configuration)\ obj\$(Configuration)\ false false false true false true XS9013, XS9012, XS9032, XS9081 4 x86 False false NDEBUG false $(Configuration)\ obj\$(Configuration)\ bTools.bBrowser bTools.bBrowser.dll False True ..\References\bTools.bBrowser.dll bTools.bServer bTools.bServer.dll False True ..\References\bTools.bServer.dll FreeImageNET FreeImageNET.dll True ..\References\FreeImageNET.dll Microsoft.Web.WebView2.Core Microsoft.Web.WebView2.Core.dll False True ..\packages\Microsoft.Web.WebView2.1.0.1823.32\lib\net45\Microsoft.Web.WebView2.Core.dll Microsoft.Web.WebView2.WinForms Microsoft.Web.WebView2.WinForms.dll False True ..\packages\Microsoft.Web.WebView2.1.0.1823.32\lib\net45\Microsoft.Web.WebView2.WinForms.dll Microsoft.Web.WebView2.Wpf Microsoft.Web.WebView2.Wpf.dll False True ..\packages\Microsoft.Web.WebView2.1.0.1823.32\lib\net45\Microsoft.Web.WebView2.Wpf.dll System.Windows.Forms System.Windows.Forms.dll False VOGUIClasses VOGUIClasses.dll False True ..\Bin\Debug\VOGUIClasses.dll VORDDClasses VORDDClasses.dll False True e:\Program Files (x86)\XSharp\Assemblies\VORDDClasses.dll VOSystemClasses VOSystemClasses.dll False True e:\Program Files (x86)\XSharp\Assemblies\VOSystemClasses.dll VOWin32APILibrary VOWin32APILibrary.dll False True ..\Bin\Debug\VOWin32APILibrary.dll XSharp.Core XSharp.Core.dll False True e:\Program Files (x86)\XSharp\Assemblies\XSharp.Core.dll XSharp.RT XSharp.RT.dll False True e:\Program Files (x86)\XSharp\Assemblies\XSharp.RT.dll XSharp.VO XSharp.VO.dll False True ..\Bin\Debug\XSharp.VO.dll True CLASSic_nuVO {0BF487FA-4BCE-461A-A232-480271E34E5C} FabPaintLib {0272327b-fc8c-4b26-a0cb-41eb7f1d945e} True FabPaintLib_Control {e7092356-5697-44df-a3e2-3921f23d78c9} True FabTools {d2a10849-0553-4ad0-9b7f-cec2a03b79d5} True True LH_0305_RepPro3_Routines {23DEE398-993C-4C90-990E-87785CAA3C26} LH_16a_TS_Leading_Hand {d4f97bc1-a8ef-4481-b0eb-88c1d9786708} True True LH_40_TM_Routines {9309C020-764A-47DD-BE0B-7ACA8BDF0A63} True LH_05_App_Classes {95A5E524-40A3-41C1-8D29-3012D33B013D} True LH_10_a_Servers {57BD5B4D-F7B8-4211-A2CA-2A0BD528A239} True LH_16_Shell___Menu {011F91A9-2F2D-40C9-98B6-94CC2CA70312} True LH_10_Servers {4F1FADB6-4D87-4F6E-AA89-F89C17A526A6} True LH_03_Routines {F8087B1C-D4CA-4F53-AFC9-F8821D6CEA31} RightSLE {FBE635A7-2283-45BE-9921-A51F95C433D4} True VO_SQL_Classes_SDK 2012 {5f56d15c-9b96-42ed-bd47-1bd8e9f8fd77} True Code Code Code Code Code Code Code Code Code Code Form Code Code Code Code Code Code Code Code Code Resources.resx Code Code Code Code Code Code Form RepcoScreenEdge.prg Form Code Code Code Code Code Code Code AuthenticatedEmailSettingsScreen.prg Code BookingCarSubForm.prg Code BrowserFieldSelectorVO.prg Code BursonSetupWindow.prg Burson_SelectVO.prg BWAppSettingsScreen.prg Code BW_Selection.prg Code ChangeVehicleFieldsVO.prg Code Change_Stock_No.prg Code CreditCardSurchargeWindow.prg Code CustomerSuburbChange.prg DocumentSettingsScreenVO.prg Code Find_PO_Screen2VO.prg Code HHDScreen.prg Code InterfaceSettingScreenVO.prg InvoiceItemsToStockVO.prg Code Invoice_Find_Screen2.prg Code JobSearch.prg Code Labour_CurrentVO.prg Code LHiniSetupWindow.prg Code LoanCarBookingWindowVO.prg Code LoanCarWindowVO.prg Code LoyaltyRedemptionScreenVO.prg LoyaltySetupWindow.prg POApprovalScreenVO.prg PrinSelBooking.prg Code PurchaseOrderScreen.prg PurchaseOrderScreen.prg QICategoryScreenVO.prg Code RACVSalesScreen.prg Code RACVSettingsScreen.prg Code RAH_SetupWindow.prg Code Receipt_SplitPayScreenVO.prg Code RegoLookupScreenVO.prg Code StockCategoryScreenVO.prg Code StockDocWindowVO.prg StockHistoryScreenVO.prg Code StockSerialNoBookingVO.prg Code StockTakeAdjustScreenVO.prg Code Stock_Serial_DetailVO.prg Code Stock_Settings_Control.prg LabourTimingScreenVO.prg Find_PO_Screen VO.prg MerchantNumberScreen.prg ChooseDataBaseScreen.prg ChooseDataBaseScreen.prg BookNewWarehouseScreen.prg IncomeAccountsScreen.prg IncomeAccountsScreen.prg StockBookPriceWindow.prg InvoiceFindbyOrder.prg OPEA_ImportWindow.prg LabourAllocateScreen.prg LabourAnalysisScreen.prg SecurityLevelSetScreen.prg Invoice Screen.prg Invoice Screen.prg Invoice Screen.prg Maintenance Type Screen.prg Make and Model Change Screen VO.prg Quote Deletion Screen.prg StockMarkupChangeScreen.prg StockAssemblyScreenVO.prg StockAssemblyScreenVO.prg Purchase Order to Invoice Screen VO.prg STOCK_TAB_SERIAL.prg Window1.prg Code Xero_Setup_Window.prg Code BursonSetupWindow.prg Burson_SelectVO.prg CustomerSuburbChange.prg LHiniSetupWindow.prg Code LoyaltyRedemptionScreenVO.prg LoyaltySetupWindow.prg PrinSelBooking.prg Code PurchaseOrderScreen.prg PurchaseOrderScreen.prg Stock_Settings_Control.prg LabourTimingScreenVO.prg Find_PO_Screen VO.prg MerchantNumberScreen.prg ChooseDataBaseScreen.prg ChooseDataBaseScreen.prg BookNewWarehouseScreen.prg IncomeAccountsScreen.prg IncomeAccountsScreen.prg StockBookPriceWindow.prg InvoiceFindbyOrder.prg OPEA_ImportWindow.prg LabourAllocateScreen.prg LabourAnalysisScreen.prg SecurityLevelSetScreen.prg Invoice Screen.prg Invoice Screen.prg Invoice Screen.prg Maintenance Type Screen.prg Make and Model Change Screen VO.prg Quote Deletion Screen.prg StockMarkupChangeScreen.prg StockAssemblyScreenVO.prg StockAssemblyScreenVO.prg Purchase Order to Invoice Screen VO.prg BursonSetupWindow.prg Burson_SelectVO.prg CustomerSuburbChange.prg LoyaltyRedemptionScreenVO.prg LoyaltySetupWindow.prg Xero_Setup_Window.prg Code Xero_Setup_Window.prg Invoice_Find_Screen2.prg CreditCardSurchargeWindow.prg CreditCardSurchargeWindow.prg Code Invoice_Find_Screen2.prg Code Receipt_SplitPayScreenVO.prg RAH_SetupWindow.prg Labour_CurrentVO.prg Labour_CurrentVO.prg Code RAH_SetupWindow.prg Code Receipt_SplitPayScreenVO.prg Code Window1.prg Code Window1.prg BookingCarSubForm.prg AuthenticatedEmailSettingsScreen.prg AuthenticatedEmailSettingsScreen.prg Code BookingCarSubForm.prg Code BookNewWarehouseScreen.prg StockDocWindowVO.prg JobSearch.prg HHDScreen.prg Change_Stock_No.prg BWAppSettingsScreen.prg BWAppSettingsScreen.prg Code BW_Selection.prg BW_Selection.prg Code Change_Stock_No.prg Code Find_PO_Screen2VO.prg Find_PO_Screen2VO.prg Code HHDScreen.prg Code InvoiceItemsToStockVO.prg InvoiceItemsToStockVO.prg Code JobSearch.prg Code RegoLookupScreenVO.prg RACVSettingsScreen.prg RACVSalesScreen.prg LoanCarWindowVO.prg LoanCarBookingWindowVO.prg LoanCarBookingWindowVO.prg Code LoanCarWindowVO.prg Code QICategoryScreenVO.prg QICategoryScreenVO.prg Code RACVSalesScreen.prg Code RACVSettingsScreen.prg Code RegoLookupScreenVO.prg Code StockDocWindowVO.prg StockSerialNoBookingVO.prg StockHistoryScreenVO.prg StockHistoryScreenVO.prg Code StockSerialNoBookingVO.prg Code StockTakeAdjustScreenVO.prg StockTakeAdjustScreenVO.prg Code STOCK_TAB_SERIAL.prg STOCK_TAB_SERIAL.prg Stock_Serial_DetailVO.prg Stock_Serial_DetailVO.prg Code ChangeVehicleFieldsVO.prg BrowserFieldSelectorVO.prg BrowserFieldSelectorVO.prg Code ChangeVehicleFieldsVO.prg Code ChooseDataBaseScreen.prg DocumentSettingsScreenVO.prg DocumentSettingsScreenVO.prg Code Find_PO_Screen VO.prg IncomeAccountsScreen.prg InterfaceSettingScreenVO.prg InterfaceSettingScreenVO.prg Invoice Screen.prg InvoiceFindbyOrder.prg LabourAllocateScreen.prg LabourAnalysisScreen.prg LabourTimingScreenVO.prg Maintenance Type Screen.prg Make and Model Change Screen VO.prg MerchantNumberScreen.prg OPEA_ImportWindow.prg POApprovalScreenVO.prg POApprovalScreenVO.prg Purchase Order to Invoice Screen VO.prg PurchaseOrderScreen.prg Quote Deletion Screen.prg SecurityLevelSetScreen.prg StockAssemblyScreenVO.prg StockBookPriceWindow.prg StockCategoryScreenVO.prg StockCategoryScreenVO.prg Code StockMarkupChangeScreen.prg Stock_Settings_Control.prg Designer FormTest.prg Designer ResXFileCodeGenerator RepcoScreenEdge.prg call "$(SolutionDir)d.bat" "$(SolutionDir)LH32A" "$(SolutionDir)LH32B" "$(ProjectDir)\" call "$(SolutionDir)d.bat" "$(SolutionDir)LH32A" "$(SolutionDir)LH32B" "$(ProjectDir)\" Always OnOutputUpdated This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
cpyrgas commented 10 months ago

Guys, I think it will be difficult to reproduce the problem just like that, since it only happens in some of Tim's prg files. Tim, can you please zip and send us the solution so we can reproduce and debug the problem? Or if it's sensitive code, maybe you can create a copy of the solution (make sure you have a backup just in case), delete from the new solution everything that's not needed to reproduce the problem and send only what remains, with the prg files that still cause the freeze.

TimothyShea commented 10 months ago

Hi Chris and Robert, The solution is pretty large and it might be frustrating unzipping a 1G zip file. And I suspect the problem is more me than you. Let me play around with the solution and either:

  1. Fix it or
  2. make a nice little sample that hangs on command.

Will get back to you either way.

Thanks, Tim

TimothyShea commented 7 months ago

Hi Guys,

This problem was making code production impossible. However, if I go the Settings Completion for X# and set to None, all works okay.

Tim