Recent Posts

Pages: 1 ... 8 9 [10]
91
SlickEdit® / Re: References shows only local usage
« Last post by Dennis on February 13, 2021, 06:35:32 pm »
Quote
Document > C/C++ Options... > C/C++ Parsing Options > Tag function prototypes with no return type

I already have that enabled.

The problem was that feature was enabled.  Do you really want that?
92
SlickEdit® / Re: References shows only local usage
« Last post by joecar on February 13, 2021, 01:14:37 pm »
See updated attached zip (main.c, test.c), lol this one compiles and runs (using Visual Studio 2019).
93
SlickEdit® / Re: References shows only local usage
« Last post by joecar on February 13, 2021, 12:59:11 pm »
I think I have a simple example that shows the problem, see attached zip file containing files main.c and test.c.

main.c makes calls to functions defined in test.c.

Some of the calls in main.c are missing the parameter; doing Goto References from any of call where some instance of that call (that one or another) is missing the parameter produces only local instances.

Doing Goto References from test.c produces all instances (even the ones with missing parameter).

Try doing all 6 Goto References from main.c and compare with doing all 6 Goto References from test.c

LoL, I hope I got it right  ;D
94
SlickEdit® / Re: References shows only local usage
« Last post by joecar on February 13, 2021, 12:22:58 pm »
REVISED

@joecar:  I was able to reproduce this only by adding the file to a project,
     and turning on Document > C/C++ Options... > C/C++ Parsing Options,
     "Tag function prototypes with no return type" = ON

     Is this an option you need to have enabled?
. . .
I already have that enabled.
95
SlickEdit® / Re: Issue with file:// link in comment
« Last post by Clark on February 13, 2021, 01:04:32 am »
I link with a real space should not work at all. I can only guess there’s something weird going on which makes it look like it worked. The link is being cut short for sure.

When there are three slashes the first slash just specifies the root directory. Not sure if that’s needed. I never tested using just two slashes.
96
SlickEdit® / Re: Issue with file:// link in comment
« Last post by LBCEi on February 13, 2021, 12:38:35 am »
I will try replacing the spaces with %20, but it still seems strange that the link opens properly after the error dialog is dismissed.  If it is really an error, why does the desired action occur successfully in spite of the "error"? I have the entire link (including the file:// part) surrounded with double quotes (which is what you normally do to avoid issues with spaces in path/file names in Windows).  Also, why did the error dialog show only a truncated path/filename?

I realize that this is probably more an issue with Windows than SE itself.  Still, any insight that you have would be appreciated.

In your first response, Clark, you show three / characters after "file:".  Is that a typo, or is that the desired way to define a file link?
97
SlickEdit® / Re: References shows only local usage
« Last post by Dennis on February 12, 2021, 09:50:55 pm »
REVISED

@joecar:  I was able to reproduce this only by adding the file to a project,
     and turning on Document > C/C++ Options... > C/C++ Parsing Options,
     "Tag function prototypes with no return type" = ON

     Is this an option you need to have enabled?

@vandermyer:  I can also reproduce your case, likewise, only if I turn on
     Document > ANSI-C Options... > C/C++ Parsing Options > Tag function prototypes with no return type

I am putting together a hot fix to help references work better knowing that there are false-positives,
locally tagged prototypes with no return type.

I will also make some improvements to the parser for how we handle that archaic option for 25.0.2.
98
SlickEdit® / Re: Slick-C stack when saving large file
« Last post by Clark on February 12, 2021, 01:34:29 pm »
Looks like it's having a problem making a backup.

What version of SlickEdit are you using?

What is the file size?

What is your "Maximum size to backup (KB)" set to?  Tools>Options>File Options>Backup

Can you reproduce this problem everytime? If so, does this happen when you save other small files?

99
SlickEdit® / Re: References shows only local usage
« Last post by vandermyer on February 12, 2021, 11:25:35 am »
I don't know if this is related, but I have also found an example where the references is funny. In the simple example, try 'Find References' on the function called 'ReferencesOdd' and on the single use of this function in the function 'Func1'. In the first case I get three results: the function, the prototype and the use. In the second case, I only get the use. The other odd thing is, when I Preview the function, I get the function and prototype when I click on the definition; when I click on the use I get the function and two prototypes, one with '()' and one with '(void)' as the parameter list.
100
Features and/or Improvements / Re: Command Palette
« Last post by Graeme on February 12, 2021, 10:44:49 am »
Sure, no problem.  It's a good suggestion.  The visual studio code command palette is quite nice.  I suspect it would be fairly easy for slick-team to add something similar.  As well as "recently used" I think I'd want a favourites option as well.
Pages: 1 ... 8 9 [10]