SlickEdit Community
Archived Beta Discussions => SlickEdit 201x Beta Discussions => SlickEdit 2013 v18 beta => Topic started by: jporkkahtc on May 02, 2013, 06:12:33 PM
-
I had a file open in slick.
From another application I deleted it.
Switching to slick, it opened the "Save deleted files" dialog.
I selected the file and clicked "close selected".
Slick-c Error:
Invalid number argument, file=files.ex, offset=19261
Invalid number argument
files.ex 19261 _save_deleted_close_button.lbutton_up() p_window_id: 125 p_object: OI_COMMAND_BUTTON p_name: ctl_selectall
dlgman.ex 1516 _ainh_dlg_manager.enter() p_window_id: 125 p_object: OI_COMMAND_BUTTON p_name: ctl_selectall
dlgeditv.ex 7007 show(-modal _select_tree_form,
2: - =c:\users\joe_po~1\appdata\local\temp\p4\joeporkka1\16627\r..........
3: <empty>
4:
5: <empty>
6:
7: &173605606
8:
9: Save Deleted Files
10: 1233216
11: File
12: 130
13: auto reload
14: <empty>
p_window_id: 5
p_object: OI_FORM
p_name:
seltree.ex 780 select_tree(
1: - =c:\users\joe_po~1\appdata\local\temp\p4\joeporkka1\16627\r.....
2: <empty>
3:
4: <empty>
5:
6: &173605606
7:
8: Save Deleted Files
9: 1233216
10: File
11: 130
12: 1
13: auto reload
14: <empty>
p_window_id: 5
p_object: OI_FORM
p_name:
files.ex 12296 _ReloadFiles(1,<empty>,@26909,5000) p_window_id: 5 p_object: OI_FORM p_name:
files.ex 13264 _actapp_files() p_window_id: 123 p_object: OI_EDITOR p_name:
files.ex 10194 call_list(_actapp_,) p_window_id: 123 p_object: OI_EDITOR p_name:
files.ex 10507 _on_activate_app() p_window_id: 123 p_object: OI_EDITOR p_name:
-
This still happens with Beta 4.
Repro:
Open a file in slick.
From CMD.exe, delete the file.
Return to slick.
Choose "Close Selected".
SlickStack.
-
I can't reproduce this so far. You seem to be on Windows, correct?
-
Windows 7, 64bit.
Odd...its more particular than I expected.
Seems to depend on either "%TEMP%" or perhaps a path of a particular depth.
Do this:
CD /d %TEMP%
mkdir a\b\c\d\e\f
cd a\b\c\d\e\f
echo > foo.txt
vs foo.txt
Then, go back to CMD and delete foo.txt and switch back to slick.
Slick prompts for what to do, choose to close the file.
---------------------------
Slick-C Error
---------------------------
Invalid number argument
file=files.ex offset=19282
---------------------------
OK
---------------------------
Invalid number argument
files.ex 19282 _save_deleted_close_button.lbutton_up() p_window_id: 151 p_object: OI_COMMAND_BUTTON p_name: ctl_selectall
dlgeditv.ex 7007 show(-modal _select_tree_form,
2: - =C:\Users\JOE_PO~1\AppData\Local\Temp\a\b\c\d\e\f\foo.txt
3: <empty>
4:
5: <empty>
6:
7: &175506177
8:
9: Save Deleted Files
10: 1233216
11: File
12: 130
13: auto reload
14: <empty>
p_window_id: 5
p_object: OI_FORM
p_name:
seltree.ex 780 select_tree(
1: - =C:\Users\JOE_PO~1\AppData\Local\Temp\a\b\c\d\e\f\foo.txt
2: <empty>
3:
4: <empty>
5:
6: &175506177
7:
8: Save Deleted Files
9: 1233216
10: File
11: 130
12: 1
13: auto reload
14: <empty>
p_window_id: 5
p_object: OI_FORM
p_name:
files.ex 12317 _ReloadFiles(1,<empty>,@29602,5000) p_window_id: 5 p_object: OI_FORM p_name:
files.ex 13285 _actapp_files() p_window_id: 125 p_object: OI_EDITOR p_name:
files.ex 10215 call_list(_actapp_,) p_window_id: 125 p_object: OI_EDITOR p_name:
files.ex 10528 _on_activate_app() p_window_id: 125 p_object: OI_EDITOR p_name:
-
I'm still not getting it. Is there anything odd about your TEMP directory? Is it in a path with spaces, etc?
-
For what its worth I can reproduce it too (using the given instructions - not against any arbitrary file). B4, Win 7 x64
My cmd output (in case it helps):
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\jc.HINGE>CD /d %TEMP%
C:\Users\JCEE31~1.HIN\AppData\Local\Temp>mkdir a\b\c\d\e\f
C:\Users\JCEE31~1.HIN\AppData\Local\Temp>cd a\b\c\d\e\f
C:\Users\JCEE31~1.HIN\AppData\Local\Temp\a\b\c\d\e\f>echo > foo.txt
C:\Users\JCEE31~1.HIN\AppData\Local\Temp\a\b\c\d\e\f>vs foo.txt
C:\Users\JCEE31~1.HIN\AppData\Local\Temp\a\b\c\d\e\f>erase foo.txt
C:\Users\JCEE31~1.HIN\AppData\Local\Temp\a\b\c\d\e\f>
SE in brief emulation mode, a goodly number of other open buffers, and two open panes. I can't see why it should make a difference but I'm a domain member with roving profiles on.
-
I still can't get it, I even tried Brief emulation. I'll keep trying.
-
It may be that a requirement for the issue is for the path to include a converted 8+3 section. In my case if run the instructions from "C:\Users\jc.HINGE\AppData\Local\Temp\a\b\c\d\e\f" then all is well but if I do them from the equivalent path of "C:\Users\JCEE31~1.HIN\AppData\Local\Temp\a\b\c\d\e\f" then I get the error.
I hope that helps
-
It makes sense but it hasn't helped so far. I've tried using the short path of long paths(if that makes sense) but I still can't get it. Are you using the mouse? Are you tabbing to it with the keyboard?
-
Seems to be independent of navigation between windows - I can reproduce with mouse or keyboard only.
I don't need particularly long paths, creating and deleting a file called "t" in "C:\temp\JC96FB~1.WOM" (long name "jc.wombat") seems to trigger the problem (and doing it in c:\temp\jc.wombat doesn't).
-
I was finally able to reproduce this. It looks like it may be fixed already, but we are verifying this fix.
-
Heh! After all that and it is fixed already :-)
Out of curiosity, what causes it?
Many thanks
-
Yes, as this specific problem hadn't been fixed I was testing it in my development editor today. Yesterday I tried it repeatedly in beta 4 but not with the short path.
IF it is fixed already it is caused by us trying to get the buffer information from the short path and not finding it, and then trying to use the resulting buffer id, which is "".
-
Thanks for looking ... I was begining to think it was short path related.
On my machine my root directory (users\jo_po~1) has the auto-generated short path, but I've turned short path support off for NTFS so new filenames don't get the short name generated.