Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 odd cursor behaviour
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

bins
Ketchup Master

United Kingdom
77 Posts

Posted - May 25 2005 :  11:24:53 AM  Show Profile
When typing with VAX 1409 enabled in 2005 , I've noticed the cursor leaps about my file, causing havoc when it does and I'm not looking. For example after the opening parenthesis at test( below, the cursor leaps up to somewhere around the enumeration.

I've noticed it does it on a shift-del as well.

And also while I'm at it, it seems that completion doesn't work quite the same as in 2003 and I find that I'm having to hit esc to close dialogs and jump over completions. I can't explain easily whats different; all I know is that I must have subconsciously learnt how to
use VAX in 2003, and that VAX in 2005 is somehow different.

Rob


   // An enumerated type for the control messages
      // sent to the handler routine.
      public enum CtrlTypes
      {
         CTRL_C_EVENT = 0,
         CTRL_BREAK_EVENT,
         CTRL_CLOSE_EVENT,
         CTRL_LOGOFF_EVENT = 5,
         CTRL_SHUTDOWN_EVENT
      }
      private static bool ConsoleCtrlCheck(CtrlTypes ctrlType)
      {
         m_process.Kill();
         return true;
      }


      static Process m_process;

      void program(string[] args)
      {
         test(


feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - May 25 2005 :  2:58:02 PM  Show Profile
a jumping cursor is serious. some people report this effect intermittently using C++ in VS 2003, but i have never been able to reproduce the problem *sigh*

what language are you using? this looks like it could be C# based on the "string[] args" syntax. however when i copy and paste this into a C# project the 2005 compiler is underlining bits of the code, telling me they are invalid.

i have tried this code in both C# and C++ in VS2005 with VA 1409, and so far no sign of any jumping caret.

do you have any other addins installed? a long shot, but not impossible.

is this effect reproducible? do you have VA's option to insert closing brackets turned off? there are mismatched brackets in this snippet.

if this example goes wrong reliably does it do so in a new C# project of some form? or does it only go wrong in a specific project you are using?

zen is the art of being at one with the two'ness
Go to Top of Page

willdean
Tomato Guru

134 Posts

Posted - May 25 2005 :  4:46:19 PM  Show Profile

I've not seen the cursor jumping in 2005 - I only see it very infrequently in 2003, anyway.

The funny completion problem is a big problem in 2005, but I believe it's already been mentioned on the forum, and is going to be fixed in the next release.

Cheers,

Will
Go to Top of Page

kk302999
New Member

2 Posts

Posted - May 26 2005 :  09:59:39 AM  Show Profile
1409... I only see a jumping cursor in C# in VS 2003. I see this even when I start a new project. This leads me to believe maybe its color settings or some kind of settings that I have that is causing it. I do not see a jumping cursor in 2003 in C++.

But as for 2005, its working great.
Go to Top of Page

WannabeeDeveloper
Tomato Guru

Germany
775 Posts

Posted - May 26 2005 :  10:36:48 AM  Show Profile
Jumping caret sometimes appears when you have selected some text and try to replace it by starting to type.
This happens (unreproducably) in C / VS .NET 2003.

It may work 9 times okay and then the 10th time it strikes you hard 'cause you just edited some line of code (sometimes even in another open source/header file) you never intended to change.

Still searching for a repeat-pattern to nail this one. Any clues are welcomed.

Go to Top of Page

bins
Ketchup Master

United Kingdom
77 Posts

Posted - May 27 2005 :  07:19:32 AM  Show Profile
using c#
no other add-ins
brace insertion left on (I think)
I have VAX turned on again and it hasn't happened again
I'll post up code as soon as it does (as long as the content is giving anything away)

Thanks
Rob
Go to Top of Page

bins
Ketchup Master

United Kingdom
77 Posts

Posted - Jun 02 2005 :  07:25:05 AM  Show Profile
Please see code below for an instance of cursor jumping. Of course it might not do it on your setup ...

When I type an opening ( after ~Program (below the comment marked // here 1) the cursor jumps down to line 72 (marked here 2) beneath the enclosing { of 'while (m_bProcessRunning)

Hope this helps
Rob

#region Using directives

using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;

using juice.ToolServer;
using juice.OcclusionServer;


#endregion


namespace occlusionClient
{
   
   class Program : MarshalByRefObject
   {
      TcpChannel m_tcpChan = null;

      ITaskManager m_occlusionServerLocal = new TaskManager();
      ITaskManager m_occlusionServerRemote = null;
      ITaskManager m_occlusionServer = null;
      static bool m_bProcessesRunning = false;

      void connectToOcclusionServer()
      {
         string machine = "ROBXP";
         m_tcpChan = RemoteProcess.createAndRegisterChannel();
         m_occlusionServerRemote = (ITaskManager)Activator.GetObject(typeof(ITaskManager), "tcp://" + machine + ":9997/JuiceOcclusionServer");

         m_occlusionServer = m_occlusionServerLocal;
         // m_occlusionServer = m_occlusionServerRemote;
      }

      // here 1
      ~Program



      static void Main(string[] args)
        {
            Program p = new Program();

            TaskManagerIteratorHandler handler = new TaskManagerIteratorHandler();

            handler.Callback += displayTask;

            p.connectToOcclusionServer();

            string exe = "c:\\\\bin\\\\echo.exe";
            string arg = "hello";

            for (; ; )
            {

               for (int j = 0; j < 100; j++)
               {
                  p.m_occlusionServer.add(new Task(exe, arg));
               }

               m_bProcessesRunning = true;

               while (m_bProcessesRunning)
               {
                  m_bProcessesRunning = false;

                  Console.WriteLine("Running list");
                  p.m_occlusionServer.listRunning(handler);
                  Console.WriteLine("------------");

                  Console.WriteLine("Pending List"); // here 2
                  p.m_occlusionServer.listPending(handler);
                  Console.WriteLine("------------");
                  Thread.Sleep(1000);
               }
            }
         }

        public static bool displayTask(Task task)
        {
           m_bProcessesRunning = true;
           int id = task.m_internalId;
           Console.WriteLine("Task " + id + " " + task.m_application + " " + task.m_cmdline);
           return true;
        }

    }
}

Go to Top of Page

WannabeeDeveloper
Tomato Guru

Germany
775 Posts

Posted - Jun 02 2005 :  07:39:58 AM  Show Profile
Does this code trigger caret-jumping all the time for you?

Go to Top of Page

bins
Ketchup Master

United Kingdom
77 Posts

Posted - Jun 02 2005 :  08:38:07 AM  Show Profile
Some more info on this. Any completion suggestions that I accept inside
~Program() 
{ 

}


cause the cursor to jump, sometimes up, sometimes down

Rob
Go to Top of Page

bins
Ketchup Master

United Kingdom
77 Posts

Posted - Jun 02 2005 :  08:45:51 AM  Show Profile
Aaargh! I've just discovered loads of )'s in other source files open in the ide!

Rob
Go to Top of Page

WannabeeDeveloper
Tomato Guru

Germany
775 Posts

Posted - Jun 02 2005 :  10:26:57 AM  Show Profile
Unfortunately, no caret-jumping with the provided code here, no matter how often I try/complete suggestions.

I do not understand this sentence:
quote:
Aaargh! I've just discovered loads of )'s in other source files open in the ide!


???

Go to Top of Page

bins
Ketchup Master

United Kingdom
77 Posts

Posted - Jun 02 2005 :  11:25:04 AM  Show Profile
I suspect that the )'s were matches for the ('s I was typing in the example I posted.
It's also stopped jumping around in the code I posted now - haven't changed anything - not restarted devenv etc...
Rob
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Jun 02 2005 :  6:57:27 PM  Show Profile
*sigh* i have also tried to reproduce this with you code, and i am not seeing any problems.

using an existing C# project in 2005 i added a new empty code file (.cs) and pasted in the code. i have tried with insert closing bracket in VA turned on and off, and i have also tried with the #region block at the top of the file closed and opened, and still no cursor jumping.

any thoughts or ideas? can you think of anything that you are doing that might be different or relevant?

zen is the art of being at one with the two'ness
Go to Top of Page

bins
Ketchup Master

United Kingdom
77 Posts

Posted - Jun 03 2005 :  05:38:20 AM  Show Profile
Well it's not doing it to me either now so I don't know what to say ;(
One thing that would have been different would be that the code in the references/assemblies would have been missing - I can't really post that coz it's proprietary, and I can't really spend all day typing ('s into code I can send, coz then I wouldn't get anything done ;)

When I first had the problem I just turned off VAssist. I could do that now but that defeats the point of beta testing. I don't mind keeping it on (although a fix for the completed-text-remains-highlighted would certainly make my coding day a bit less painful) in order to find problems. Is there a 'special' debug version I could run which could dump out any useful info, or record keystrokes/completion events or something ?

Rob
Go to Top of Page

WannabeeDeveloper
Tomato Guru

Germany
775 Posts

Posted - Jun 03 2005 :  06:04:01 AM  Show Profile
You could enable Logging in the VAX-Options under PERFORMANCE.

Ths setting is not persistent, so you'd have to enable it after every restart of the IDE.
The general performance of VAX will suffer when logging is enabled and the logfiles may become quite huge (since this bug appears once in a million keystrokes, so it seems).

Don't feel bad cause it doesn't happen anymore, same here, I'm hunting this bug for several buildnumbers now...

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000