SlickEdit Product Discussion > SlickEdit®
insert_file_list() limited to 60 entries in 28.0.2 hotfix 19 ?
rowbearto:
I'm using a macro that invokes insert_file_list(): https://github.com/rbresalier/sync_project_with_scm
In one case it passes to insert_file_list() 430 file specs such as "dir1/**/*.c;dir1/**/*.cc; etc"
I found that insert_file_list() seems to only take into account the first 60 file specs then ignores the remaining ones after 60.
If instead of calling insert_file_list() with 430 file specs I call it 7 times with 60 file specs and 1 time with 10 file specs then it adds all of them to the project.
Generating the project file with a previous version of SE/hotfix (don't know which previous version it was, but I had it stored in version control) didn't seem to have this issue and insert_file_list() was able to handle 430 file specs.
So was this changed to limit to 60 in version 28.0.2/hf19 or a version previous to it?
Clark:
It would helpful if you could post the value of "cmd"
say('list: 'cmd);
It's probably best to post a file attachment with the value.
Clark:
say() will clip the results but that's ok. ~5k should be more than enough for me to get the idea.
rowbearto:
Followed your suggestion Clark to add say (I added dsay as I like looking at a log file).
From here I deduced the issue is not in insert_file_list(), my macro is passing it something that is already truncated to 2000 characters.
The macro takes in a text file with information about what to add to the project and in Slick-C reads it line by line.
The problem is that when it calls get_line() the resulting line is truncated to 2000 characters while the actual line is much longer than 2000 characters.
Maybe you can offer a suggestion how I can handle this.
The particular get_line() that the macro calls can be seen in github here:
https://github.com/rbresalier/sync_project_with_scm/blob/master/sync_project_with_scm.e#L596
The .ini file with the specification of all wildcard files to add to the project is in a .ini file. This ini file is loaded into a buffer in SlickEdit. Then get_line() is executed to read it line by line. But it can only handle 2000 characters on a line.
I need to think about how to modify to handle something like this and your insight would be real useful.
Is there a way for this macro to load the buffer without this 2000 character limitation?
rowbearto:
I think the 2000 limit is because I have this in my initial SE configuration setup:
--- Code: --- // See: https://community.slickedit.com/index.php/topic,15914.0.html - originally put
// it at 8000.
// But then see: https://community.slickedit.com/index.php/topic,16732.0.html, putting
// back to 2000
_default_option(VSOPTION_FORCE_WRAP_LINE_LEN, 2000);
--- End code ---
Navigation
[0] Message Index
[#] Next page
Go to full version