Recent Posts

Pages: 1 2 [3] 4 5 ... 10
SlickEdit® / Smart Open finds files from previous projects when it shouldn't
« Last post by rowbearto on July 16, 2018, 01:48:15 pm »
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 with hotfix 11 on Linux x64.
SlickEdit® / Re: Compile current file on save
« Last post by hs2 on July 16, 2018, 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.,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.
SlickEdit® / Re: Compile current file on save
« Last post by asandler on July 16, 2018, 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.
SlickEdit® / Compile current file on save
« Last post by asandler on July 16, 2018, 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)
    _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?
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?
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.
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.
SlickEdit® / Comparing Slickedit and Eclipse
« Last post by williamsmith on July 14, 2018, 12:23:22 am »
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.

Tutuapp 9apps free download Mobdro
SlickEdit® / Perforce "unlock" and "get" commands in Slickedit 2011?
« Last post by timur on July 13, 2018, 06:50:56 pm »
I'm new to Perforce (it's what they use at work), and when I try to enable Perforce support in Slickedit, it appears that the "unlock" and "get" commands are undefined.

What should they be set to?

SlickEdit 2011 (v16.0.3.0 64-bit)

Serial number: VLX819302
Licensed number of users: Single user
License file: /home/ttabi/vslick/bin/slickedit.lic

Build Date: October 06, 2011
Emulation: CUA

OS: Linux
OS Version: Ubuntu 18.04 LTS
Kernel Level: 4.15.0-24-generic
Build Version: #26-Ubuntu SMP Wed Jun 13 08:44:47 UTC 2018
Processor Architecture: x86_64

X Server Vendor: The X.Org Foundation
Memory: 98% Load, 27773MB/28146MB Virtual
Shell Info: /home/ttabi/vslick/bin/secsh -i
Screen Size: 1920 x 1200

Project Type: (Other)
Language: .c (C/C++)

Installation Directory: /home/ttabi/vslick/
Configuration Directory: /home/ttabi/.slickedit/16.0.3/
Spill File: /tmp/$slk.ttabi.21765
SlickEdit® / Re: Installing hotfix resets auto update option
« Last post by Nosh on July 13, 2018, 11:31:45 am »
No comment?
Pages: 1 2 [3] 4 5 ... 10