Re : when ~/.eclipse is already present as a directory

Iban HATCHONDO <[email protected]> Thu, 22 Apr 2010 23:21:30 +0000 (GMT)
Newsgroups gmane.comp.window-managers.eclipse
Message-ID <[email protected]>
Hi,

Yes you're right ! The .eclipse directory created by the IDE is in the way. =

Wouldn't it more portable to do (not (probe-file (make-pathname :directory =
f))) ?

Best,
Iban.



----- Message d'origine ----
De : david thompson <[email protected]>
=C0 : [email protected]
Envoy=E9 le : Jeu 22 avril 2010, 18 h 44 min 44 s
Objet : [eclipse-devel] when ~/.eclipse is already present as a directory

With my first run of eclipse, eclipse discovered that ~/.eclipse
is a directory and ground to a halt with

couldn't read from #<SB-SYS:FD-STREAM for "file /.../.eclipse" {AF2B2E9}>:
  Is a directory

Maybe having eclipse gracefully switch gears -- e.g., something like
the change below (in INITIALIZE) --  would be desirable?

...
      ;; load personal configuration file, or the default one.
      (labels ((load-if (f)
         (and (probe-file f)
              ;; try to ensure  ~/.eclipse isn't a directory...
              (not (probe-file (concatenate 'string f "/.")))
              (load-config-file f))))
...

_______________________________________________
eclipse-devel site list
[email protected]
http://common-lisp.net/mailman/listinfo/eclipse-devel



      =



_______________________________________________
eclipse-devel site list
[email protected]
http://common-lisp.net/mailman/listinfo/eclipse-devel