Recent Posts

Pages: [1] 2 3 ... 10
1
Sometimes I have multiple copies of my source code in different directories - due to working with different branches in git.

When I switch SE workspaces from one of these directories to another, and then I look for a file in the "Smart Open", it is finding files in my old workspace (different directory) that I closed and am no longer using. Then I need to be really careful which file I choose. Due to this, I've been fully closing SE and reopening it whenever I switch workspaces.

I created a test project so SlickTeam can reproduce. I uploaded it to support - see sopen_multiproj.tar.gz.

The issue does not happen with a clean config, so my .tar.gz file has many files from my config to aid reproduction.

Here are the steps to reproduce.

0. Apply my SE configuration as included in the .tar.gz file (doesn't seem to reproduce with clean config)
1. Project->Open Workspace choose prj1/myprj.vpw
2. In Smart Open, type "test.cpp" and open the prj1/test.cpp file
3. On line 10, highlight "printFunc()" and press Ctrl+/ to find all references.
4. Project->Open Workspace, choose prj2/myprj.vpw
5. File->Close All to get rid of the test.cpp file from prj1 that is still open
6. Type "test.cpp" into smart open, observe that the test.cpp from ../prj1 is listed there when it should not be! See attached screenshot.

Thanks for taking a look. I'd rather not need to close SE and reopen it whenever I switch workspaces.

I'm using 22.0.2.1 with hotfix 11 on Linux x64.
2
SlickEdit® / Re: Compile current file on save
« Last post by hs2 on Today at 01:02:41 pm »
concur_command isn’t the best choice since it runs async and doesn’t support error markers functionality.
Have a look at e.g. https://community.slickedit.com/index.php/topic,988.msg4191.html#msg4191
I think the project_build command also wrapping ‘Compile’ is the way to go and let SE do the invocation and setting the error markers accordingly.
Maybe I’m wrong but isn’t there a SE setting doing ‘Compile’ on save ?
Otherwise you could also make use of the SE callback hook mechanism to hook on the ‘on save’ actions invoking ‘Compile’ perhaps with some filtering to avoid compiling every file you save.
HS2
3
SlickEdit® / Re: Compile current file on save
« Last post by asandler on Today at 12:32:06 pm »
I made a some progress. It looks like I have to call
Code: [Select]
set_error_markers(). The code does not work yet. It seems
Code: [Select]
concur_command() is asynchronous and by the time I run
Code: [Select]
set_error_markers() build buffer is still empty. Anyway, I'll appreciate if C-Slick experts can tell me what I am doing wrong.
4
SlickEdit® / Compile current file on save
« Last post by asandler on Today at 01:31:28 am »
I saw "Build on Save", but it is quite crude. We have pretty large C project. Building implies compiling and linking large number of binaries and tests. I would like to compile current file (assuming this is a C file) on save.
I tried something like

Code: [Select]
_command save_and_compile() name_info(','VSARG2_MACRO|VSARG2_MARK|VSARG2_REQUIRES_MDI_EDITORCTL)
{
    save();
    activate_build();
    clear_pbuffer();
    _str cmd = "make some_file.o";
    concur_command(cmd, false, true, true, true);
}

It works, but it doesn't interface with Message List and I would really like it. Any ideas how to hook up Message List and point at errors in the code?
5
SlickEdit® / Re: Comparing Slickedit and Eclipse
« Last post by Graeme on July 14, 2018, 10:38:34 pm »
For which language are you trying to compare them?  Java only - or something else?
6
SlickEdit® / Re: Comparing Slickedit and Eclipse
« Last post by Clark on July 14, 2018, 02:04:12 pm »
For starters, the text editor in SlickEdit is faster and handles larger files (hex editing). When it comes to gluing build tools together, SlickEdit does a better job letting you hook in what you want (no one has to write a Java plugin first). The way SlickEdit tags source files means your source files don't have to compile in order for you to get useful tagging information. You can create a tag file for some library you're studying and add that as a language-specific tag file (files don't have to be in a project). In general, SlickEdit's tagging can handle larger projects. Eclipse is quite good at Java but not always so hot with other languages.

SlickEdit comes out of the box with support for a ton of languages and more language support is on the way. Eclipse will at least be really time consuming to get all the plugins added. Eclipse runs slower than SlickEdit (SlickEdit is highly optimized C++). Eclipse is quite slow on a Virtual Machine. SlickEdit has beautifiers for quite a few languages, some languages support beatifying as you type (semicolon and/or Tab key), directory aliases (ctrl-space expands directory aliases--I love these), dynamic surround (this is handy when you need it), can treat zip/tar/jar/gz/more as if they are directories and can read/search them.

SlickEdit has single file project support for a number of languages. This is great for debugging say Python/Perl scripts but also supports other languages.

SlickEdit also has emulations. In general, there are way more text editing commands/features in SlickEdit.

SlickEdit has a macro language where you can simply record a macro and it generates source code you can edit.

SlickEdit has a command line which is great for invoking commands which take arguments (maybe even your own).

I'm sure I haven't covered everything but this gives some good generalities.
7
SlickEdit® / Re: Perforce "unlock" and "get" commands in Slickedit 2011?
« Last post by Dan on July 14, 2018, 01:12:15 pm »
Newer versions of SlickEdit have better support for Perforce.  I would recommend getting the trial of 22.0.
8
SlickEdit® / Re: Dynamic forms in Slickedit
« Last post by Graeme on July 14, 2018, 07:05:05 am »
Yes it's possible.  There's three ways. 
(1)
Have a look at the code here
https://community.slickedit.com/index.php/topic,16128.msg61929.html#msg61929
and also search slick macro sources for create_window.

(2)
Search the help for textBoxDialog - it's a function you can call that displays a form with checkboxes, editboxes and buttons according to what you pass to the textBoxDialog function.  You use global variables _param1 _param2 etc to get results from the form.  Have a look at the "standard dialogs" section of SlickCMacroBestPractices.pdf in the installation docs folder.

(3)
You can generate some code that represents a form, then load that code.  e.g. below is the code for one of my forms.  Use the form designer - on the macro menu select new form.  Then put whatever gui elements you might need, including event handlers.  After your form is created, use the "insert form or macro source" command on the macro menu to get the source code that represents the form.  From that, you can see what you need to do to dynamically generate a form.  i.e. you need to create a slick C source file that has
#include "slick.sh"
at the top followed by event handlers and the source code for the form.
You then have to load that source code to get the form built  - to do that, you call the load function e.g.
load("yourfilename.e")
Then you use the "show" command to show the form.

Code: [Select]
_form xbar1 {
   p_backcolor=0x80000005;
   p_border_style=BDS_NONE;
   p_caption="xs";
   p_forecolor=0x80000008;
   p_height=6000;
   p_tool_window=true;
   p_width=3825;
   p_x=14925;
   p_y=1890;
   p_eventtab=xbar1;
   _list_box ctllist1 {
      p_border_style=BDS_FIXED_SINGLE;
      p_font_size=1;
      p_height=5460;
      p_multi_select=MS_NONE;
      p_scroll_bars=SB_NONE;
      p_tab_index=1;
      p_tab_stop=true;
      p_width=900;
      p_x=0;
      p_y=0;
      p_eventtab2=_ul2_listbox;
   }
   _image scrollbar_image {
      p_auto_size=false;
      p_backcolor=0x80000005;
      p_border_style=BDS_NONE;
      p_forecolor=0x80000008;
      p_height=5040;
      p_max_click=MC_SINGLE;
      p_Nofstates=1;
      p_picture='';
      p_stretch=true;
      p_style=PSPIC_DEFAULT;
      p_tab_index=2;
      p_tab_stop=false;
      p_value=0;
      p_width=780;
      p_x=600;
      p_y=360;
      p_eventtab2=_ul2_imageb;
   }
   _image current_line_image {
      p_auto_size=false;
      p_backcolor=0x00A8A8A8;
      p_border_style=BDS_NONE;
      p_forecolor=0x80000008;
      p_height=120;
      p_max_click=MC_SINGLE;
      p_Nofstates=1;
      p_picture='';
      p_stretch=false;
      p_style=PSPIC_DEFAULT;
      p_tab_index=4;
      p_tab_stop=false;
      p_value=0;
      p_width=780;
      p_x=300;
      p_y=5100;
      p_eventtab2=_ul2_imageb;
   }
   _image scrollbar_handle_image {
      p_auto_size=false;
      p_backcolor=0x00A8A8A8;
      p_border_style=BDS_NONE;
      p_forecolor=0x00D70625;
      p_height=960;
      p_max_click=MC_SINGLE;
      p_Nofstates=1;
      p_picture='';
      p_stretch=false;
      p_style=PSPIC_DEFAULT;
      p_tab_index=3;
      p_tab_stop=false;
      p_value=0;
      p_width=840;
      p_x=180;
      p_y=4080;
      p_eventtab2=_ul2_imageb;
   }
}



9
SlickEdit® / Dynamic forms in Slickedit
« Last post by jennycooper on July 14, 2018, 12:25:39 am »
hii,
I want to know if we can create dynamic dialog boxes in slickedit by reading the the value of form elements from an external file (.txt file) . If yes , how ??
________________________________________________________________________________________
jennycooper
Nox Showbox Vidmate


10
SlickEdit® / Comparing Slickedit and Eclipse
« Last post by williamsmith on July 14, 2018, 12:23:22 am »
hello,
I've been using Slickedit for about ten years. I really like it. Eclipse has almost become a standard in the Java community, so I think it might it might pay to learn a little bit of it to make transitioning to new jobs easier ( I own my own copy). My experience has been that bosses/coworkers are less hostile to me using Slickedit once they see what it can do and if they see that I can manipulate code their way on their computers when discussing a problem.

To that end I was wondering what features Eclipse has that Slickedit does not......or what features seem easier, more efficient in Eclipse.

william
Tutuapp 9apps free download Mobdro
Pages: [1] 2 3 ... 10