Opened 14 years ago

Closed 13 years ago

#28400 closed defect (fixed)

Kile-devel @2.1b5 unable to launch any external app

Reported by: informatique@… Owned by: NicosPavlov
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: zweistein12@…, boutino@…, olivier.boutin@…, wanthalf@…
Port: kile-devel

Description

The problem appeared when I upgraded to Kile 2.1-beta5, but I upgraded the whole KDE at the same time.

When I try to launch any external application in Kile (Okular, pdflatex, etc) all I get in Kile's "Log and messages" tab is a "Failed to start" message.

When used separately, all those applications work fine. It's only Kile being unable to launch them. The only workaround I have is launching the apps manually in the "Konsole" tab in Kile.

I checked my $PATH variable, it's fine, /opt/local/bin is in it. I also reinstalled the whole KDE and Kile packages, starting with default preferences. It didn't change anything.

I don't really know how to track the problem. Thanks for any help.

Attachments (5)

patch-Portfile.diff (586 bytes) - added by nicos_pavlov@… 14 years ago.
patch-kilestdtools.rc.macports.diff (9.0 KB) - added by nicos_pavlov@… 14 years ago.
patch-kilestdtools.rc.texbin.diff (8.2 KB) - added by nicos_pavlov@… 14 years ago.
patch-runTests.sh.macports.diff (311 bytes) - added by nicos_pavlov@… 14 years ago.
patch-runTests.sh.texbin.diff (322 bytes) - added by nicos_pavlov@… 14 years ago.

Download all attachments as: .zip

Change History (16)

comment:1 Changed 14 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to zweistein12@…

Please remember to cc the maintainer.

comment:2 Changed 14 years ago by jmroot (Joshua Root)

Cc: zweistein12@… added
Owner: changed from zweistein12@… to nicos_pavlov@…
Port: kile-devel added; kile removed
Summary: Kile unable to launch any external appKile-devel @2.1b5 unable to launch any external app

Wait, 2.1b5? That would be kile-devel then, not kile.

comment:3 Changed 14 years ago by nicos_pavlov@…

I think it is indeed a problem of $PATH, but which is divided in 2 problems.

First, if you launch applications with the bundle, the $PATH defined in your ./profile is typically not loaded.
Second, KDE applications are installed as bundles in /Applications/MacPorts/KDE4, and not in /opt/local/bin.

This problem is more general than kile and concerns all KDE applications, I think. I have no clean way to solve this presently. As a workaround, I made in my case a link /opt/local/bin/okular pointing to /Applications/MacPorts/KDE4/okular.app/Contents/MacOS/okular, and ensured that applications bundles had /opt/local/bin in their path.

I will probably send a mail to the developer mailing list, to see if a nicer and more general way could be suggested by the people handling kde4 ports to solve this issue.

comment:4 Changed 14 years ago by informatique@…

Thanks for your answer. I had already tried defining my PATH in various files (.bashrc, .login, .profile et .bash_profile), to no avail.

But your post gave me an idea and I entered the complete PATH to pdflatex and okular in Kile preferences. Everything works now, thank you very much. :) Though I'd like to know why Kile (and maybe other KDE apps) ignores PATH as it's defined in all the usual shell files.

comment:5 in reply to:  4 ; Changed 14 years ago by boutino@…

Replying to informatique@…:

But your post gave me an idea and I entered the complete PATH to pdflatex and okular in Kile preferences. Everything works now, thank you very much. :)

I'm using a Makefile of my own for my compilations and it doesn't work any more for me either since the upgrade to beta 5. Whatever I put into the "Configure Kile / Tools / Build" window for my command, Kile just doesn't want to launch it. Even if I put a wrong command, Kile doesn't complain more than saying "Failed to start", and just yields the output of the last command that had worked (for instance, I tried the LaTeX built-in command and it did work). Could you be more accurate about the place where you have put the complete PATH to your commands? In the meantime, I can also use the workaround of the Kile built-in console, but this is not convenient at all...

comment:6 Changed 14 years ago by boutino@…

Cc: boutino@… added

Cc Me!

comment:7 Changed 14 years ago by olivier.boutin@…

Cc: olivier.boutin@… added

Cc Me!

comment:8 in reply to:  5 Changed 14 years ago by nicos_pavlov@…

Replying to boutino@…:

I'm using a Makefile of my own for my compilations and it doesn't work any more for me either since the upgrade to beta 5.

In the case of your own Makefile, I am not sure that it is related to Kile, at least to my experience with external scripts.

Nevertheless, following the idea of setting up Kile through the configuration of tools, I created patches so that the paths should be set to correct values. I added also a variant +texbin, to set paths for the TeX distribution of MacTeX instead of macports one.

Changed 14 years ago by nicos_pavlov@…

Attachment: patch-Portfile.diff added

Changed 14 years ago by nicos_pavlov@…

Changed 14 years ago by nicos_pavlov@…

Changed 14 years ago by nicos_pavlov@…

Changed 14 years ago by nicos_pavlov@…

comment:9 Changed 14 years ago by wanthalf@…

Cc: wanthalf@… added

Cc Me!

comment:10 Changed 13 years ago by NicosPavlov

Owner: changed from nicos_pavlov@… to nicos@…
Status: newassigned

comment:11 Changed 13 years ago by NicosPavlov

Resolution: fixed
Status: assignedclosed

Issue solved with new port kde4-kile, a stable version of replacement of kile-devel in r84698 and r84700. The transfer to the new port is automatic through upgrade.

Note: See TracTickets for help on using tickets.