Recent Posts

Pages: 1 [2] 3 4 ... 10
11
SlickEdit® / Re: All my buffers were shown as deleted by SE
« Last post by Dan on June 02, 2023, 01:06:33 pm »
Were they on a remote file system and/or a VPN?
12
SlickEdit® / Re: How does SE find the Windows Documents folder?
« Last post by ebbe on June 02, 2023, 06:14:53 am »
This roughly the code SlickEdit uses to get the config path on Windows:

Thanks. It's working now.

Code: [Select]
      //Due to customers having problems with the above default location due to OneDrive I/O
      // v28 will do this instead:
      hrstatus = SHGetSpecialFolderLocation(0,CSIDL_LOCAL_APPDATA,&pidl);
      if( hrstatus==NOERROR ) {
         wchar_t tempsw[CMMAXFILENAME];
          hrstatus=SHGetPathFromIDListW(pidl,tempsw);

          // Now append SlickEdit\28.0.0\

          // End up with something like this:
          // C:\Users\<username>\AppData\Local\SlickEdit\28.0.0\>


And thanks for the heads-up. I'll keep that in mind.

It may be easier to use the "-sc <configpath>" option to force SlickEdit to use a configuration directory you specify.

I'll take a look at that. However, my current solution works for me.
13
SlickEdit® / All my buffers were shown as deleted by SE
« Last post by rjpontefract on June 02, 2023, 03:31:08 am »
I was using SE 27.0.2 on Windows 10 with multiple buffers open.  I came to save the file I was working on and a dialog said that it can't save it.  Following that, another dialog box asking to close or save deleted files was presented with a list of all open buffers.  The list of buffers showed all files in red.  Trying to quit SE resulted in being told it could not save preferences. All of the files were on a local disk and were still present and correct according to file manager.  I killed SE from task manager and it restarted OK. 

Any ideas as to what happened?
14
SlickEdit® / Re: Any support for docker?
« Last post by pbrightly on June 01, 2023, 11:43:26 pm »
Attached image shows bash under ENV and RUN sections (and the color I get now):
15
SlickEdit® / Re: Any support for docker?
« Last post by pbrightly on June 01, 2023, 11:39:13 pm »
Thanks, Clark!  I had already added a Docker language mode just to add a few keywords and get "something". But I had trouble getting comments working in the UI (seemed ignored).

I've added all the following keywords to to your config and it looks really nice.

<p n="k,ARG"/>
<p n="k,CMD"/>
<p n="k,COPY"/>
<p n="k,ENV"/>
<p n="k,EXPOSE"/>
<p n="k,FROM"/>
<p n="k,LABEL"/>
<p n="k,RUN"/>
<p n="k,WORKDIR"/>


What would be spectacular is if I could get bash coloring for anything under RUN or ENV keywords.  But this is excellent as is, just giving me comments and keywords at least. :)
16
SlickEdit® / Re: Any support for docker?
« Last post by Clark on June 01, 2023, 11:02:42 pm »
We will add Dockerfile support for v28
17
SlickEdit® / Re: How does SE find the Windows Documents folder?
« Last post by Clark on June 01, 2023, 01:33:21 pm »
Thanks for noticing that the docs for "Share config - Save configuration immediately" is missing.

This roughly the code SlickEdit uses to get the config path on Windows:

Code: [Select]
      // For v27 and before, code looks like this:
      hrstatus = SHGetSpecialFolderLocation(0,CSIDL_PERSONAL,&pidl);
      if( hrstatus==NOERROR ) {
         wchar_t tempsw[CMMAXFILENAME];
          hrstatus=SHGetPathFromIDListW(pidl,tempsw);

          // Now append My SlickEdit Config\SlickEdit\27.0.2\

          // End up with something like this:
          // C:\Users\<username>\Documents\My SlickEdit Config\27.0.2



      //Due to customers having problems with the above default location due to OneDrive I/O
      // v28 will do this instead:
      hrstatus = SHGetSpecialFolderLocation(0,CSIDL_LOCAL_APPDATA,&pidl);
      if( hrstatus==NOERROR ) {
         wchar_t tempsw[CMMAXFILENAME];
          hrstatus=SHGetPathFromIDListW(pidl,tempsw);

          // Now append SlickEdit\28.0.0\

          // End up with something like this:
          // C:\Users\<username>\AppData\Local\SlickEdit\28.0.0\>


It may be easier to use the "-sc <configpath>" option to force SlickEdit to use a configuration directory you specify.
18
SlickEdit® / How does SE find the Windows Documents folder?
« Last post by ebbe on June 01, 2023, 08:26:19 am »
In the good old days there was only one Documents folder, found in C:\users\username\Documents.

But with Windows 11, that folder may be located in OneDrive and that is the one SE will use. Since I quite often have multiple instances of SE open (one for target code and one for PC code), I usually run SE with the -x option that refers to a project specific vslick.sta. I also have a utility, that will update the local copy with the one found in ...\username\Documents\My SlickEdit Config\21.0.2 - and this utility now fails, because that folder does not exist. So, I want to know how SE determines where to put its config files such that I can mimic that in my own utility.

BTW: the Help file entry for Options -> Application Options -> Exit -> Save configuration does not describe all the choices for this item. Specifically the one named "Share config - Save configuration immediately" is not described.
19
SlickEdit® / Re: Hitting DEL in doxygen C comment block adds unnecessary */
« Last post by Dennis on May 31, 2023, 03:26:34 pm »
This will be fixed in the next rev of the cumulative hot fix.
20
SlickEdit® / Re: Hitting DEL in doxygen C comment block adds unnecessary */
« Last post by Dennis on May 31, 2023, 02:28:58 pm »
Reproduced.  The doc comment editing seems to expect the closing */ to be on its own line at the end (the stars align).  I'll see if adjustments can be made.

Is this your usual comment style?  I've seen inline comments /**< comment text */ where the close is on the same line, but this style is not typical for multi-line comments.  Does Doxygen handle them correctly?
Pages: 1 [2] 3 4 ... 10