Hi

I'm seeking for good ideas how to robustly solve this problem.

I want to use cygwin as development environment on win for scripts using the systems Perl (ActiveState)

Especially I want to use Emacs there because some el-module provider don't want to fix problems with win-emacs.

The problem is that cygwin uses a unix stile paths while the win-perl expect win-style path

While using cygwin-emacs with cygwin-perl works calling win-perl from emacs fails because the path to the script can't be resolved.

Example: C:\tmp\tst_flymake.pl is /cygdrive/c/tmp/tst_flymake.pl in emacs.

One workaround is to use a wrapper to call win-perl which does the translation:

perl `cygpath -w /cygdrive/c/tmp/tst_flymake.pl`

But the warnings and errors emitted from win-perl will be windows-style again and emacs will fail to automatically jump to the correct line number.

I also tried to work with softlinks to establish a common compromise path-system, like linking C: to /cygdrive/c/ but with little success.

I am sure I can come out with a more or less stable solution with several layers of complicated translations, but would appreciate other ideas...

related discussions

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

PS: before the emacs bashing starts, VIM users should face the same problem even more, because of more dependencies on a unix like environment.


In reply to Pathproblems while using CygWin as development environement on Win by LanX

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.