XSharpPublic icon indicating copy to clipboard operation
XSharpPublic copied to clipboard

VS Freezes when using Intellisense

Open TimothyShea opened this issue 2 years ago • 5 comments

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):

  • OS: Windows 10

PS Not sure if this should entered as a bug.

TimothyShea avatar Nov 22 '23 07:11 TimothyShea

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

RobertvanderHulst avatar Nov 30 '23 07:11 RobertvanderHulst

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: @.***>

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 . .

TimothyShea avatar Dec 01 '23 05:12 TimothyShea

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.

cpyrgas avatar Dec 01 '23 07:12 cpyrgas

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 avatar Dec 02 '23 06:12 TimothyShea

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

TimothyShea avatar Feb 28 '24 07:02 TimothyShea