Re: Bug when opening with single file.



On 27 May 2014 22:57, pintuxgu <pintuxgu hoevendesign com> wrote:
Hi All,

I just tried right clicking on a file and then select "open with meld".
I saw my screen flicker momentarily and then meld was gone again.
Then I did some simple tests from the command line.

*********
This is what Meld 1.8.2 says to me:
<snip>

That one has been fixed in 1.8.x (as you've found).
 
********
paul dualcore:~$ ~/bin/meld-1.8.4/bin/meld projects/c/TDatabase.cpp
Traceback (most recent call last):
  File "/home/paul/bin/meld-1.8.4/bin/meld", line 178, in <module>
    main()
  File "/home/paul/bin/meld-1.8.4/bin/meld", line 170, in main
    new_window = app.parse_args(sys.argv[1:])
  File "/home/paul/bin/meld-1.8.4/meld/meldapp.py", line 169, in parse_args
    tab = open_paths(args, options.auto_compare, options.auto_merge)
  File "/home/paul/bin/meld-1.8.4/meld/meldwindow.py", line 791, in open_paths
    self._single_file_open(a)
  File "/home/paul/bin/meld-1.8.4/meld/meldwindow.py", line 784, in _single_file_open
    doc.run_diff(path)
  File "/home/paul/bin/meld-1.8.4/meld/vcview.py", line 536, in run_diff
    comp_path = self.vc.get_path_for_repo_file(path)
  File "/home/paul/bin/meld-1.8.4/meld/vc/_vc.py", line 180, in get_path_for_repo_file
    raise NotImplementedError()
NotImplementedError

Yeah that's a problem. Please feel free to file a bug for this.

I suspect that the get_path_for_repo_file() implementation for vc._null can probably just be grafted back from 3.11.x to 1.8.x. However, I'm trying to avoid new 1.8.x releases, and this is a bit of a corner case; you're asking for a single file version control comparison on a file that isn't version controlled.

cheers,
Kai


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]