Recent Posts

Pages: [1] 2 3 ... 10

Ada arrays of records seem to confuse the SE parser.  SE doesn't provide any code completion and it colors the record element of the array (e.g. "zip" in myArray(2).zip in code below) red as though it is undefined.

Code: [Select]
package body time_helper is

   type myNewType is
         name    : integer;
         street  : integer;
         zip     : integer;
      end record;

   myData : myNewType;

   type myArrayType is array (1..5) of myNewType;
   myArray : myArrayType;

   procedure next_day is
   begin -- next_day
      myData.street   := 4;
      myArray(2).zip  := 4;
   end next_day;

end time_helper;
SlickEdit® / Ada generic instantiation confusing parser
« Last post by rgloden on Today at 08:09:53 am »
SlickEdit Pro 2016 (v21.0.3.0 64-bit)

In the Ada sample below, "myIntIO" generic instantiation is confusing the parser ... SE doesn't show get_time in the Defs window until the "myIntIO" definition is commented out.

Code: [Select]
with Text_IO;

package body time_helper is

   procedure get_time is
      package myIntIO is new Text_IO.Integer_IO(Integer);  use myIntIO;
      x : integer;
   begin -- get_time
      myIntIO.Put_Line ( x );
   end get_time;

   procedure next_day is
   begin -- next_day
   end next_day;

end time_helper;
SlickEdit® / Re: Where to download SlickEdit 2016
« Last post by dsp0105 on Today at 05:24:29 am »
I am in the same situation, my company has license only for 2016, but I cant find 2016 any where in the website, can you please send me the link to download 2016 for Linux/
SlickEdit® / "Return" inserts new line below current line?
« Last post by rgloden on Today at 04:28:20 am »
SlickEdit Pro 2016 (v21.0.3.0 64-bit)
Emulation: CUA

OS: Windows 10 x64
OS Version: 10.00.0 
Project Type: Cpp
Language: .adb (Ada)

Using the following Ada sample, place cursor at beginning of buffer, hit enter, and SE inserts a new line below the first line (expected <CR> inserted before first line instead of after).

Code: [Select]
package body time_helper is

   procedure get_time;

end time_helper;

Code: [Select]
package body time_helper is

   procedure get_time;

end time_helper;
OK, looked into "Suppress prompt until modified" - but this appears to apply to all files. I was thinking that it would have been a per-file thing and I had just missed it somehow as a button in the "Reload modified files" dialog, but alas there is no "Supress prompt until modified" button in "Reload modified files", and suppressing the prompt can only be done for all files - not just my logfile - so it is another sledgehammer that I'm not much interested in. For all other files besides a few logfiles, I am very interested to know if another process modified them.
SlickEdit® / Re: SlickEdit 2017 can't save key binding
« Last post by Ivkgn on February 22, 2018, 07:36:19 pm »
Sorry, actually I did try a few bind to mode variations with the same result.
SlickEdit® / Re: SlickEdit 2017 can't save key binding
« Last post by Ivkgn on February 22, 2018, 07:27:39 pm »
It seems it is always default mode. Don't see a way to change this.
Tried different emulations though. It seems like it is added to the cfg.xml file if exported:
<options emulation="CUA">
   <profile n="eventtab_profiles.emulation-CUA" version="1">
      <p n="'c' 't' 'r' 'l' '+' 'LBUTTON-DOWN'" v="goto-tag"/>
      <p n="'C-A-LBUTTON-DOWN'" v="push-tag"/>
but the key binding dialog does not have it.
That's kind of funny, because I usually have the opposite problem with continually written log files -- slick fails to notice that it has changed and you can only get it reloaded by closing and opening the file again.
(I'd like "tail -f" behavior).

It depends (On Windows anyways) how the file is being written.
Usually, if the writer is holding the file open the whole time while writing slowly, slick doesn't notice.
If the file is opened, written, closed, repeat - then slick notices.

Probably the size of the file matters as well, since slick handles big files differently.
I didn't think about "Suppress prompt until modified", but that may be a good workaround to keep the prompt from coming up. Just wonder if SE will freeze, or performance will degrade if SE is constantly reloading the file? This is why I was thinking not reloading it would maybe be better. But if negligible performance degradation and I stay at same line, could be useful. I will try "Suppress prompt until modified" next time I am in this situation and see if that is useful. Thanks mjdl!
You could go to Tools>Options and choose File Options>Load, and shut off Auto Reload.  I'm afraid it's sort of a sledgehammer solution, but there's not a way to shut it off for a single file or filespec.

Auto-reload is on by default, but it's not a feature that I've much experience with, so I'm probably misunderstanding the original poster's situation and the auto-reload function:

If the auto-reload feature is on and a) a file open in SE is continually modified externally but b) NOT modified internally by the user in SE, then the auto-load option "Suppress prompt unless modified" is surely one to use in this situation, so the externally modified file gets reloaded without prompting (and hopefully SE keeps the user's current line and cursor position in the reloaded file too). Or am I wrong about this? (No real way to test it right now.)

The way I read OP's second post was that he did not want to reload this particular file even though it had changed.

Edit: I didn't completely understand what you wrote.  Sorry about that.
Pages: [1] 2 3 ... 10