Giter VIP home page Giter VIP logo

Comments (3)

ZedThree avatar ZedThree commented on September 21, 2024

Thanks for reporting this @econwang, sorry it's taken so long to take a look! Do you have an example that errors? The examples include e.g. use iso_fortran_env and the links work ok.

from ford.

econwang avatar econwang commented on September 21, 2024

Yes, it works with PosixPath, so no problem on linux, but on windows, it will raise WinError 123 error.

In [1]: import pathlib

In [2]: url = 'https://github.com/Fortran-FOSS-Programmers/ford/issues/648'

In [3]: pathlib.Path(url).resolve()
---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
Cell In[3], line 1
----> 1 pathlib.Path(url).resolve()

File C:\Intel\intelpython\lib\pathlib.py:1215, in Path.resolve(self, strict)
   1209 def resolve(self, strict=False):
   1210     """
   1211     Make the path absolute, resolving all symlinks on the way and also
   1212     normalizing it (for example turning slashes into backslashes under
   1213     Windows).
   1214     """
-> 1215     s = self._flavour.resolve(self, strict=strict)
   1216     if s is None:
   1217         # No symlink resolution => for consistency, raise an error if
   1218         # the path doesn't exist or is forbidden
   1219         self.stat()

from ford.

ZedThree avatar ZedThree commented on September 21, 2024

Ah, yes I can see how that would be a problem! I think the obvious fix is just skip this for links already beginning with http

from ford.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.