Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[TC 8.0 B22 x64] FS Plugin detection problems (continued)

 
Post new topic   Reply to topic    Total Commander Forum Index -> TC Fixed bugs Printable version
View previous topic :: View next topic  
Author Message
EricB
Senior Member
Senior Member


Joined: 25 Mar 2008
Posts: 233
Location: The Netherlands

PostPosted: Mon Mar 05, 2012 5:11 am    Post subject: [TC 8.0 B22 x64] FS Plugin detection problems (continued) Reply with quote

When checking fix for FS plugin detection in TC 8.0 B22 x64, some erroneous behaviour was found. See also related topic for TC 8.0 x32, which was fixed in B22: http://www.ghisler.ch/board/viewtopic.php?p=243325#243325.

Setup clarification: x32/x64 both portable in same folder, sharing wincmd.ini. All paths (plugins etc) use %COMMANDER_PATH% to remain portable.

Installing an FS plugin in x64 (in this case Virtual Panel) which already exists for x32, the overwrite dialog is shown, but shows hard path to plugin instead of path including environment variable %COMMANDER_PATH%. When confirming the overwrite this hard path is also put into the FileSystemPlugins section, overwriting the existing path.

Afterwards a second dialog is shown which states that an existing plugin was found with the same name but in a different directory, do you want to remove it?

It seems that for x64 the plugin path is resolved, but then compared to the unresolved path (which are different of course).

IMO the %COMMANDER_PATH% variable should never be resolved in this case.

Regards, EricB

Edit: small corrections (thx Petermad)


Last edited by EricB on Mon Mar 05, 2012 6:45 am; edited 1 time in total
Back to top
View user's profile Send private message
petermad
Power Member
Power Member


Joined: 05 Feb 2003
Posts: 5350
Location: Valsted, Denmark

PostPosted: Mon Mar 05, 2012 6:42 am    Post subject: Reply with quote

Quote:
Setup clarification: x32/x86 both portable in same folder

I guess you mean x64/x86 both portable in same folder?


Quote:
When removing it, the plugin entry for x32 is

is what? - something seems to be missing in this sentence.
_________________
#524
Danish Total Commander Translator
Windows XP Home 32bit SP3 & Windows 7 Home Premium 64bit SP1 and Windows 8. TC 8.01 32 + 64bit

Get Extended Total Commander Menus
Back to top
View user's profile Send private message Send e-mail Visit poster's website
EricB
Senior Member
Senior Member


Joined: 25 Mar 2008
Posts: 233
Location: The Netherlands

PostPosted: Mon Mar 05, 2012 6:47 am    Post subject: Reply with quote

Thx Petermad, updated first post for clarity.

Regards, EricB
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24590
Location: Switzerland

PostPosted: Mon Mar 05, 2012 9:13 am    Post subject: Reply with quote

Sorry, I do not understand your report. Do you mean that there is a bug in 64-bit but not in 32-bit?
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
EricB
Senior Member
Senior Member


Joined: 25 Mar 2008
Posts: 233
Location: The Netherlands

PostPosted: Mon Mar 05, 2012 10:28 am    Post subject: Reply with quote

Christian,

In my first post of this thread I linked to a similar problem which was fixed in Beta 22 but only confirmed (by me) for x32. I could not test x64 at the time, and when doing this today, I found x64 to be faulty. I decided not to follow up on the older thread because it was already moved to the TC Fixed bugs section, but to create this new one instead. I put x64 in the topic title to indicate it is x64 only. The x32 version has no problems.

Your actual fix is '29/02/2012 Fixed: Installing a plugin a second time didn't find the previous installation if the existing plugin path contained an environment variable (32/64)'

I hope this clarifies matters.

Regards, EricB
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24590
Location: Switzerland

PostPosted: Tue Mar 06, 2012 2:27 am    Post subject: Reply with quote

Cannot reproduce, I just tried it - I'm getting the same dialog also in the 64-bit version with your ini files:

---------------------------
VirtualPanel.wfx
---------------------------
A plugin with this name is already installed in the following directory:

%COMMANDER_PATH%\Plugins\wfx\VirtualPanel\

Do you want to overwrite it?
Choose 'No' to select a different location.
---------------------------
Ja Nein Abbrechen
---------------------------

I started TC from D:\tc8\TOTALCMD64.EXE (the linked dir) and from D:\document\dropbox\tc8\TOTALCMD64.EXE (the real location), same effect.

Here are some values of ini entries:
wincmd.ini
[Configuration]
pluginbasedir=%COMMANDER_PATH%\Plugins

Settings\Plugins.ini
[FileSystemPlugins]
Virtual Panel=%COMMANDER_PATH%\Plugins\wfx\VirtualPanel\VirtualPanel.wfx

Any ideas?
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
EricB
Senior Member
Senior Member


Joined: 25 Mar 2008
Posts: 233
Location: The Netherlands

PostPosted: Tue Mar 06, 2012 2:42 am    Post subject: Reply with quote

Odd, for me it happened all the time. I have currently no access to the x64 machine, so I'll have to postpone further investigation till tomorrow. I'll also post some screenshots if necessary.

Regards, EricB
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24590
Location: Switzerland

PostPosted: Tue Mar 06, 2012 2:57 am    Post subject: Reply with quote

Could you check the values of the above ini values on 64-bit, please? Maybe they differ from mine?

Edit:
I remember that you sent me one ini file where the plugin path for VirtualPanel.wfx was an absolute path (no env. var.).

I even tried to delete the VirtualPanel.wfx64 before my test, but it worked fine too...
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
EricB
Senior Member
Senior Member


Joined: 25 Mar 2008
Posts: 233
Location: The Netherlands

PostPosted: Tue Mar 06, 2012 7:44 am    Post subject: Reply with quote

Christian,

My ini values are the same. Currently all my FS plugins use the environment variable.
I've done experiments yesterday with removing complete plugin reference and folder. On first install the proposed path is correctly shown with environment variable in it and also correctly written in plugins.ini. On second install I get the hard path, which is then also written in the plugins.ini. And I get the second dialog which states that an existing plugin was found with the same name but in a different directory, do you want to remove it?

I'll try to compile a more reproducible scenario tomorrow.

Regards, EricB
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24590
Location: Switzerland

PostPosted: Tue Mar 06, 2012 10:19 am    Post subject: Reply with quote

Ah, that's a different scenario - I just tried to re-install a plugin which was already there, not install the same plugin twice within the same session - that seems to have the described effect. I will check it.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
EricB
Senior Member
Senior Member


Joined: 25 Mar 2008
Posts: 233
Location: The Netherlands

PostPosted: Wed Mar 07, 2012 3:30 am    Post subject: Reply with quote

When I start TC 8.0 B22 x64 anew, and I reinstall an existing plugin (Virtual Panel, but same for your WPDPlug) I see the same behaviour:

In the overwrite confirmation dialog the hard path to existing plugin is shown. After confirming the overwrite the File Systems plugins panel is shown and the message about 'existing plugin was found with the same name but in a different directory, do you want to remove it?'.

- The FS plugins panel still shows the original plugin path with environment variable (I have to move the dialog box to see this).
- This is also still the case in plugins.ini, but FileSystemPlugins64 section is removed.
- When confirming existing plugin removal, the hard path is shown in the FS plugins panel, and the line is shifted to the end of the list. Plugins.ini still contains the original line unshifted with environment variable
- After using OK on the FS plugins panel the hard path is written to plugins.ini as last line. FileSystemPlugins64 section is added again.

Hope this helps to get more insight.

Regards, EricB
Back to top
View user's profile Send private message
EricB
Senior Member
Senior Member


Joined: 25 Mar 2008
Posts: 233
Location: The Netherlands

PostPosted: Fri Mar 16, 2012 5:56 am    Post subject: Reply with quote

Just tested using TC 8.0 Beta 23 x64:

Quote:
07/03/2012 Fixed: Installing a plugin twice in the same session didn't find the previous installation if the existing plugin path contained an environment variable (64)


- No hard path is shown in overwrite dialog, path with environment variable is now correctly shown
- FS plugins panel shows correct path with environment variable
- No 'existing plugin was found with same name etc' dialog is shown
- Path with environment variable is correctly written to FileSystemPlugins section of plugins.ini

So the issue seems to be fixed. Thx!

Regards, EricB
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24590
Location: Switzerland

PostPosted: Fri Mar 16, 2012 10:43 am    Post subject: Reply with quote

Ah, finally - thanks for your help fixing this problem!
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> TC Fixed bugs All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group