Recent Posts

Pages: 1 ... 8 9 [10]
91
Community Forum / Re: Sync editor file with projects
« Last post by Graeme on September 17, 2018, 12:56:37 am »
Probably something like this would do it.  This is untested.

void _switchbuf_show_file_in_projects_tb(void)
{
    show_file_in_projects_tb(true);
}

User written macros are here
https://community.slickedit.com/index.php/board,21.0.html

92
Community Forum / Re: Sync editor file with projects
« Last post by paladin on September 16, 2018, 09:14:03 pm »
thx for the quick reply... I was familiar with right-click method and should have been clearer. What I was looking for was a 'sicky' - show file in project window - capability that would mimic the eclipse 'link with editor' tooling.
Don't trouble yourself digging through your tool box. If it's not a standard vs capability it's not that big a deal -- just thought I might have overlooked something.

I could be confusing it with another of my support tools but didn't slickedit once have a web repository location for user community submissions for maco's etc. that were 'unsupported' but available to the community?

93
SlickEdit 2018 v23 Beta Discussion / Re: beta1 and beta2 memory consumption
« Last post by Clark on September 14, 2018, 11:48:14 pm »
Having more allocators helps if your computer has more cores and you are retagging many files. Typically just the current file gets retagged a lot. You should be fine with that setting.
94
SlickEdit 2018 v23 Beta Discussion / Re: beta1 and beta2 memory consumption
« Last post by IkerAriz on September 14, 2018, 11:25:47 pm »
One option I hadn't looked at carefully before was the number of SE memory allocators. Dropping that parameter to 2 significantly reduces memory consumption: after 5 days of continuous python and C++ editing beta4 is at ~600MB vs 1GB+ with beta2 (and a lot more with v22). Memory slowly crept up to that value so its possible SE may not hold the line there but things seem relatively steady at the moment. As for performance, I haven't noticed any impact.

Iker
95
Community Forum / Re: Sync editor file with projects
« Last post by Graeme on September 14, 2018, 10:38:34 pm »
Try right click => show file in projects toolwindow.
Is that what you mean?

If so, I used to have some code that would automatically synch the projects toolwindow to the current buffer.  Let me know if that's what you want and I'll see if I can find it.
96
SlickEdit® / Re: CMake SE project gen - no clue
« Last post by namklak on September 14, 2018, 07:57:31 pm »
Okay, thanks for the two good responses - input noted.
97
SlickEdit® / Re: CMake SE project gen - no clue
« Last post by Dennis on September 14, 2018, 07:52:33 pm »
It may not be perfect for your scenario, but SlickEdit does support opening a workspace from a Makefile.

Project > Open Other Workspace > Makefile...

It will scan your Makefile for build targets and also try to deduce the list of source files.  Since Makefiles are built in a lot of different ways, and certain make implementations have non-standard extensions, this feature can be kind of hit or miss, but you certainly can give it a test drive.  Performance can be a bit hit or miss with this feature, because SlickEdit will rescan the makefile every time the workspace is opened to determine if new files have been added to the project.

The other option is to create a generic C/C++ project and specify that it is to be built using a Makefile in Project Properties.

Neither of these solutions will give you integrated debugging straight out of the box, because we can't predict in what magical corner of the universe the Makefile will place the executable.  So you may have to make a couple more mods in Project Properties to get that going.
98
Thanks Clark and Lee!
99
Fixed for beta 5. There was an extra layer of read buffering that was blocking when there's no data to read. Easy fix.
100
SlickEdit® / Re: CMake SE project gen - no clue
« Last post by rowbearto on September 14, 2018, 05:19:53 pm »
Not sure such a tool exists.

Cmake is a tool that can generate makefile and/or SE projects and/or many other types of projects. It generates these things from a CMakeLists.txt file.

If you have your own makefile that you maintain and keep under source control then you are not using CMake, and CMake won't help you for that.

If you are able to switch to using CMake to generate your makefile, that is one solution.

Otherwise, I'm not aware of any tool that can do what you want.

In my company we have our own maintained makefiles, and I maintain an ".ini" file that has all the directories and wildcarded file patterns that should be in my SlickEdit project. I create a blank SE project/workspace and then run a special macro that populates my SE project with all the source files. SE also has built in "wildcard adding", but I like the special macro better because it saves the files (after scanning) into the SE project so that when I reopen SE it won't scan again. This macro is here:

https://github.com/rbresalier/sync_project_with_scm
Pages: 1 ... 8 9 [10]