Recent Posts

Pages: 1 [2] 3 4 ... 10
SlickEdit 2022 v27 Beta Discussion / Re: beta 3 -- extremely slow
« Last post by Clark on October 03, 2022, 11:09:35 pm »
Update to RC 1
SlickEdit 2022 v27 Beta Discussion / Windows start menu...
« Last post by jporkkahtc on October 03, 2022, 10:53:14 pm »
I've just installed Slickedit for the first time on this machine
In the start menu I type "Slickedit", but it doesn't find the Slick app.

I don't know if there is anything you can do to influence this, but it would be nice!
SlickEdit 2022 v27 Beta Discussion / Re: beta 3 -- extremely slow
« Last post by jporkkahtc on October 03, 2022, 10:47:37 pm »
No remote files.
I can try, but I don't have a clear repro case --- it just does it sometimes.
SlickEdit 2022 v27 Beta Discussion / Re: beta 3 -- extremely slow
« Last post by Dan on October 03, 2022, 08:43:50 pm »
Are you editing any remote files?

What happens if you shut off Live Diff?
SlickEdit 2022 v27 Beta Discussion / beta 3 -- extremely slow
« Last post by jporkkahtc on October 03, 2022, 08:24:22 pm »
Recently I've uploaded a couple of dmps where slickedit hangs.
Today it is going *extremely* slow.
Often showing as not responding, but occasionally it catches up and does something - like move the cursor, or window moves.
The entire time VS.exe is taking 100% of a single cpu.
I created a macro to do it. Not an expert in Slick-C, I made a function to do the zero padding but maybe there is a better way?

Sample output:
2022/10/03 02:59 PM EDT 2022/10/03 18:59 UTC

Code: [Select]
// Takes an integer and returns a string that is zero padded to 2 places, similar to %02d in printf
_str getZeroPadStr(int numToPad)
  _str numAsStr = numToPad;
  auto paddedNum = _pad(numAsStr, 2, "0", "L");
  return paddedNum;

// Inserts into th editor the current time - localtime and UTC
_command void enterTimestamp() name_info(',' VSARG2_REQUIRES_EDITORCTL)
   se.datetime.DateTime currentDateTime;
   int yearLclInt, yearUtcInt;
   int monthLclInt, monthUtcInt;
   int dayLclInt, dayUtcInt;
   int hourLclInt, hourUtcInt;
   int minuteLclInt, minuteUtcInt;
   int secondLclInt, secondUtcInt;
   int msecLclInt, msecUtcInt;

   currentDateTime.toParts(yearLclInt, monthLclInt, dayLclInt, hourLclInt, minuteLclInt, secondLclInt, msecLclInt, se.datetime.DT_LOCALTIME);
   currentDateTime.toParts(yearUtcInt, monthUtcInt, dayUtcInt, hourUtcInt, minuteUtcInt, secondUtcInt, msecUtcInt, se.datetime.DT_UTCTIME);

   _str yearLclStr = yearLclInt;
   _str monthLclStr = getZeroPadStr(monthLclInt);
   _str dayLclStr = getZeroPadStr(dayLclInt);
   _str amPm = "AM";
   if ( hourLclInt >= 12 )
      amPm = "PM";
      hourLclInt -= 12;
   if ( hourLclInt == 0 )
      hourLclInt = 12;
   _str hourLclStr = getZeroPadStr(hourLclInt);
   _str minuteLclStr = getZeroPadStr(minuteLclInt);

   _str yearUtcStr = yearUtcInt;
   _str monthUtcStr = getZeroPadStr(monthUtcInt);
   _str dayUtcStr = getZeroPadStr(dayUtcInt);
   _str hourUtcStr = getZeroPadStr(hourUtcInt);
   _str minuteUtcStr = getZeroPadStr(minuteUtcInt);

   _str tzName = strftime("%Z");

   keyin(yearLclStr "/" monthLclStr "/" dayLclStr " " hourLclStr ":" minuteLclStr " " amPm " " tzName " ");
   keyin(yearUtcStr "/" monthUtcStr "/" dayUtcStr " " hourUtcStr ":" minuteUtcStr " UTC" );
Slick-C® Macro Programming / Inserting date, local time and UTC time with a macro
« Last post by rowbearto on October 03, 2022, 04:08:02 pm »
I would like to have a macro/command I can use to insert the current local date/local time, current UTC date/time into a text file where my cursor is. UTC date/time is because our log files record time in UTC so I would like to correlate my notes with the log files.

Are there any similar existing macros or tips on how I can do that?

I'd like to bind it to a key so I can insert the current timestamp at the cursor very easily.
I think I start seeing this after I open the process buffer and move around in it, but I'm not sure. I haven't tried to systematically repro it this way (don't have time) but I was trying to observe what I do just before the <SOH> start coming out. I typically open process buffer by executing below macro (tied to right clicking in Build tool window at the line of an error in the small build window):

Code: [Select]
_command void goto_editor_window_from_build() name_info(',')
   int pl = p_line;
   edit ("+b  Build (.process)");

I also see that the Build Tool window menu item of "Send output to editor window" uses 'toggle-process-tab-output'

Is there any possibility that using

edit ("+b  Build (.process)");

Instead of


and then jumping around in the big process buffer looking at things and searching

Could be causing these <SOH> characters to come out on the build window sometime after using the edit() function?

Note: This happens even if I never ssh into the build server first from the Build window. I've been avoiding the ssh and I still see these <SOH> in my build after a while.
Ach, I left that out.  Sorry about that, I'm glad you caught that. 

Thank you, Patrick!  I understand the options page better now.

One additional step: I needed to re-select the profile for JavaScript after modifying the JavaDoc profile.  Otherwise, my JavaScript file gets formatted as JavaDoc.   :)
Pages: 1 [2] 3 4 ... 10