Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get this to work under Windows 10 #1

Open
SteveBenner opened this issue Aug 16, 2019 · 2 comments
Open

Can't get this to work under Windows 10 #1

SteveBenner opened this issue Aug 16, 2019 · 2 comments

Comments

@SteveBenner
Copy link

I just installed differ, and tested on several file types, but it doesn't work! I get the same error each time:

REPRODUCE:

  • Alt-d on any two files of same type (.txt, .md, .js, etc) in the same panel OR in opposing panels
Command 'ShowDiff' raised error.

Traceback (most recent call last):
  File "fman\impl\plugins\command_registry.py", line 128, in _execute_command
  File "C:\Users\sven\AppData\Roaming\fman\Plugins\Third-party\differ\differ\__init__.py", line 21, in __call__
    Popen([DIFF_COMMAND, l_url, r_url])
  File "subprocess.py", line 709, in __init__
  File "subprocess.py", line 997, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified

I noted the script uses a command meld, but I'm not familiar with

@jardous
Copy link
Owner

jardous commented Aug 16, 2019

Looks like you have to install meld

@SteveBenner SteveBenner changed the title Doesn't work! Can't get this to work under Windows 10 Aug 21, 2019
@SteveBenner
Copy link
Author

SteveBenner commented Aug 21, 2019

UPDATE:

Apologies for leaving this unfinished! I immediately realized the plugin requires one to install Meld after looking at the script code, but was distracted and forgot to complete the intitial issue.

DISCLAIMER:

While I have tons of experience in software and systems, I'm no pythonista, and I don't have too much advanced Windows experience. I basically expected this plugin to work from the get-go, especially after installing Meld and adding it to my PATH.

Here is the situation after much troubleshooting:

  • I am on Windows 10, 64-bit (Version 10.0.18362 Build 18362)
  • I am using the latest version of fman and differ plugin
  • I installed Meld from the official site to C:\Program Files (x86)\ (please note: I also attempted this with version 3.18, as suggested by the official site in case of isssues)
  • I added the following to my user and windows path:
    • C:\Program Files (x86)\Meld
    • C:\Program Files (x86)\Meld\Meld.exe
    • C:\Users\sven\Downloads (location of comparison files)

Using Meld 3.20

All attempts result in the Windows 'waiting' cursor animation, but nothing happens, UNLESS one of the fman panes is opened to the install location (C:\Program Files (x86)\Meld\). I've no clue what this means.

Using Meld 3.20 (in install dir) or 3.18 in any dir

Attempts result in Meld opening, but with errors on both sides. Please see attached screenshots:

meld-error-1a
meld-error-1

This can't be a merely an issue with Meld, becuase after installing it and adding to path, using cmd I was able to open two files in meld and diff without issue, using the exact same command format as in your script.

Basically I am lost at this point, lacking experience to do advanced troubleshooting with python/Windows.

P.S. I suggest updating your README.md with explicit instructions for using this plugin on a platform basis (macOS/linux/Windows), as well how to setup/install any dependencies. Maybe you could start me out with sharing what OS and setup you use with this plugin that works. Also, it is unclear what the user should do before Alt-D command; that is, clarify if files to compare should be in the same OR opposite panes, and if one needs to select the files in fman via space key, or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants