Author |
Topic |
|
bins
Ketchup Master
United Kingdom
77 Posts |
Posted - May 25 2005 : 11:24:53 AM
|
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
|
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 |
|
|
willdean
Tomato Guru
134 Posts |
Posted - May 25 2005 : 4:46:19 PM
|
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
|
|
|
kk302999
New Member
2 Posts |
Posted - May 26 2005 : 09:59:39 AM
|
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. |
|
|
WannabeeDeveloper
Tomato Guru
Germany
775 Posts |
Posted - May 26 2005 : 10:36:48 AM
|
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. |
|
|
|
bins
Ketchup Master
United Kingdom
77 Posts |
Posted - May 27 2005 : 07:19:32 AM
|
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
|
|
|
bins
Ketchup Master
United Kingdom
77 Posts |
Posted - Jun 02 2005 : 07:25:05 AM
|
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;
}
}
}
|
|
|
WannabeeDeveloper
Tomato Guru
Germany
775 Posts |
Posted - Jun 02 2005 : 07:39:58 AM
|
Does this code trigger caret-jumping all the time for you?
|
|
|
|
bins
Ketchup Master
United Kingdom
77 Posts |
Posted - Jun 02 2005 : 08:38:07 AM
|
Some more info on this. Any completion suggestions that I accept inside
~Program()
{
}
cause the cursor to jump, sometimes up, sometimes down
Rob |
|
|
bins
Ketchup Master
United Kingdom
77 Posts |
Posted - Jun 02 2005 : 08:45:51 AM
|
Aaargh! I've just discovered loads of )'s in other source files open in the ide!
Rob |
|
|
WannabeeDeveloper
Tomato Guru
Germany
775 Posts |
Posted - Jun 02 2005 : 10:26:57 AM
|
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!
??? |
|
|
|
bins
Ketchup Master
United Kingdom
77 Posts |
Posted - Jun 02 2005 : 11:25:04 AM
|
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 |
|
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - Jun 02 2005 : 6:57:27 PM
|
*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 |
|
|
bins
Ketchup Master
United Kingdom
77 Posts |
Posted - Jun 03 2005 : 05:38:20 AM
|
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
|
|
|
WannabeeDeveloper
Tomato Guru
Germany
775 Posts |
Posted - Jun 03 2005 : 06:04:01 AM
|
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... |
|
|
|
|
Topic |
|