#1847 YAP Inverse Search causes Windows AIP error 2

attic
2016-04-20
2010-04-20
No

Hi,
I am using the newest version of MiKTex Portable (YAP:2.8.3503), everything works fine, despite when I want to do an inverse search with YAP.
No matter which editor I use (Winedt or TeXnic), when double click the text in YAP, a Miktex problem report pops up, telling:
Windows API error 2: Das System kann die angegebene Datei nicht finden. - Could not find the file...
In the Data field this is displayed: C:\Programme\WinEdt Team\WinEdt\winedt.exe" "[Open(|C:/elsarticle/SurfSci_long.tex|);SelPar(133,8)]
and does not jump back to the source file.
Of course the system can not find the file, because there is something wrong with the quotation marks.
When I check the "option" menu, the correct path: "C:\Programme\WinEdt Team\WinEdt\winedt.exe" "[Open(|%f|);SelPar(%l,8)]" is set.
What is wrong there ?
Best regards Alex

Discussion

  • Christian Schenk

    Thank you for the report.

    Unfortunately, the problem isn't reproducible. At the moment
    I have not enough information to work on this problem
    effectively.

     
  • Christian Schenk

    It works for me (MiKTeX 2.8, WinEdt6). editor.ini (...\miktex\config) contains this lines:

    [WinEdt]
    program=C:\Program Files (x86)\WinEdt Team\WinEdt 6\WinEdt.exe
    arguments=[Open(|%f|);SelPar(%l,8)]

     
  • Alex SchieBer

    Alex SchieBer - 2010-04-21

    With the entry in the editors.ini it worked fine, no error occured. Therefore the problem is caused by the autodection routine of YAP (at least for the WinEdt (5.5) version), like mentioned before, the quotation marks are set wrong.
    Thank you very much so far!

     
  • A. Haferburg

    A. Haferburg - 2010-09-22

    I run into the same problem. I get the following error:
    <error>
    MiKTeX Problem Report
    Message: Windows API error 2: The system cannot find the file specified.

    Data: C:\Program Files\editors\TeXnicCenter\TEXCNTR.EXE" /ddecmd "[goto('G:/bachelorarbeit/tex_project/bachelorarbeit.tex', '33')]
    Source: Programs\MiKTeX\Yap\MFC\yap.cpp
    Line: 1083
    MiKTeX: 2.8
    OS: Microsoft Windows XP Professional Service Pack 3 (build 2600)
    SystemAdmin: no
    PowerUser: no
    Root0: C:\Program Files\editors\miktex
    etc
    </error>

    Note that the path to my texniccenter also contains a space, this might be a problem.

    I then tried to add another entry for inverse search in YAP. The entry in the editors.ini is:

    [YAPINVERSE]
    program=C:\Program Files\editors\TeXnicCenter\TEXCNTR.EXE
    arguments=/ddecmd "[goto('%f', '%l')]"

    After I add it, inverse search works. But when I then restart YAP, I get the same error as before, because YAP uses the auto-config entry.
    When I go to Options, select YAPINVERSE and click OK, inverse search works.

    One more thing which might be of interest: When I go to Options, select YAPINVERSE, then click Change, I get the following error:

    <error>
    MiKTeX Problem Report
    Message: Unexpected condition.
    Data:
    Source: Programs\MiKTeX\Yap\MFC\AddChangeEditorDialog.cpp
    Line: 92
    MiKTeX: 2.8
    etc
    </error>

    Also note that when I select the auto-detect entry, the command line is exactly the same as for the manually added YAPINVERSE:
    "C:\Program Files\editors\TeXnicCenter\TEXCNTR.EXE" /ddecmd "[goto('%f', '%l')]"

    I'm not sure what to make of this, but there's a problem with the auto-detected entry.

     
  • A. Haferburg

    A. Haferburg - 2010-09-22

    Appears to be fixed in 2.9.3780. Thanks! :)

     
  • Christian Schenk

    • Status: open --> attic
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks