GithubHelp home page GithubHelp logo

Comments (6)

msteveb avatar msteveb commented on May 25, 2024

I agree it would be nice to have, but it requires someone to implement realpath(), which is non-trivial.

I will accept a patch...

from jimtcl.

mardukbp avatar mardukbp commented on May 25, 2024

I think that dirent provides the full path.

from jimtcl.

msteveb avatar msteveb commented on May 25, 2024

It doesn't. I will accept a working patch.

from jimtcl.

tangentsoft avatar tangentsoft commented on May 25, 2024

Meanwhile, the docs should warn that file normalize may give a "Not implemented" error in this case. There may be other cases where a documented command won't actually be built into Jim; those should be documented as well.

This particular case happens in autosetup where jimsh0 is built without first trying to discover whether realpath exists, presumably because that would be rather meta: a platform-independent build system needing to make platform checks in order to build a tool provided in order to avoid a platform dependency. :)

(And yes, I know about autosetup's file-normalize proc, presumably added to work around this very problem.)

from jimtcl.

msteveb avatar msteveb commented on May 25, 2024

It's true that there are many command that either won't be implemented, or may have a cut-down implementation based on selected features and the capabilities of the platform and compiler. I think that adding this information to the docs would be: incomplete, wrong most of the time, burdensome to maintain and get in the way of the the main content of the docs.

It may be useful to maintain this information separately, but this is still going to be a reasonable amount of work to implement and maintain. Contributions welcome.

from jimtcl.

tangentsoft avatar tangentsoft commented on May 25, 2024

incomplete, wrong, burdensome ...

Granted, but the current situation is that the Jim manual says it supports feature X, you try to use feature X, and it fails for no obvious reason.

Or the reverse: you're looking at Tcl docs, it tells you about file normalize or something else that's only conditionally supported by Jim, so you try it and it says something unhelpful like "Not implemented." Then you go to the Jim docs to verify that the function doesn't exist, only to find that it says it does exist, without any caveats or conditions.

Either way, the only way to figure out why it failed on your own is to go spelunking through the code, or hope to dig up some previous posting about it on the web somewhere.

Contributions welcome.

I'll add it to the list. I'm in the middle of several projects on Fossil itself at the moment, and I shouldn't allow myself to be distracted.

I'd prefer to make these documentation improvements via Fossil. If you're willing to give me a developer login, you can email me a default password via my profile's email address, which I'll change to something strong and random after first login. I'd prefer either "tangent" or "wyoung" as a login name.

from jimtcl.

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.