Skip to content

Let's create fish 3.0 (our second major release) #4154

Closed

Description

@krader1961

In the past 1.7 years (the time frame I've been contributing changes to the project) there have been a couple of controversial, non backward compatible, changes made in minor releases. In each case the core devs felt the risks were worth the benefits. We're now poised to make a couple more changes that are not strictly backward compatible. One is how set -lx works (see #1091 and #4149). The other is implementing "tied" variables (see #436 and #4082). I also have a proof of concept implementation for making abbreviations more efficient (see #4048). That one would be simpler and even more efficient if we didn't have to also maintain backward compatibility. You can find a list of issues tagged for the next major release here. There are probably quite a few more with a "fish-future" (meaning next minor) milestone that really should only be done in a major release.

So the question is whether we should bite the bullet and focus on a few of the changes that are risky to do in a minor release and focus on completing them for a fish 3.0 release sometime in the next six months (give or take).

If we did this it would mean fish 2.x would be put in bug fix only status. With the exception of continuing to add new completions that people submit. The fish project simply does not have enough regular contributors to actively enhance two major versions in parallel.

Activity

  1. faho commented on Jun 21, 2017

    @faho
    Member

    In general, I would be okay with doing a major release, with breaking changes and such.

    However, the major question is "How much do we break?". Do we go all-in and change e.g. the command substitution syntax to $() (something I'd actually like!) or do we still try to keep breakage to a minimum (e.g. #4149 is unlikely to actually affect any code negatively)?

    Then there's another question: How much are we capable of implementing in a timely manner (nobody would be served by us taking two years to release anything)? A tiny major release might be a bad idea.

    Then there's the issue of getting enough carrot of cool stuff to go along with the stick of breakage - if the changes don't appear worth it, people won't want to switch.

    These last two points are maybe a bit too doom'n'gloom, I just don't want another programming-thing-with-an-animals-name-jumping-from-version-2.6-to-3.


    Okay, so let's say we do it. How do we go about it? For how long will fish 2.x be supported? Do we delay the planned release date for now-3.0? Will poor @zanchey suffer a meltdown and become a wombat-farmer? Do we provide any facility for versioning (e.g. fish 3.0 installs as "fish3", or we rename the entire project to "Great Original SHell")?


    So that's a "yes, if we can pull it off". I'd propose that we try to get 4 cool compat-breaking changes in PRs. I.e. we don't merge #4149 and #4082 until we have two more. Then we branch off a 2.7.0 branch as a backup and merge all of them to master. Then we just try to stuff 3.0 full with cool features so that it eclipses 2.6.0 completely.

    Also, I'd like to have greater buy-in from and communication with the community. I'm kinda annoyed that #4103 only reached us after release, even though it was discovered earlier.

  2. krader1961 commented on Jun 21, 2017

    @krader1961
    ContributorAuthor

    We should go as big as we can and still commit to a major release no more than six to 12 months in the future. Because once we start working on it we'll have very few resources for fixing issues with the 2.x branch. We should definitely change () to $() for example. Although we'll almost certainly need to still recognize () outside of quoted strings. We should also take the opportunity to no longer automatically turn PATH, MANPATH and CDPATH into arrays by leveraging the tied variable change I have in progress. Finding similar items that can be implemented in the near future shouldn't be hard.

    My thinking is fish 2.x would continue to be supported for two or three years. But critical bug fixes only and possibly new completion scripts people submit. We would branch master to a Integration_2.7 branch and that would be our last 2.x minor release. After that it would be 2.7.1, 2.7.2, etc. as necessary to address critical bugs.

    Whether we should rebrand as "fish3" is a tough question. When iTerm 2.0 came out it became known as iTerm2 and it lives in /Applications/iTerm2.app/. But iTerm 3.0 is still referred to as iTerm2 and lives in the same directory. I've seen that happen with other projects too. And calling it "fish3" only superficially makes it easier for people to have both versions installed. Look at the situation with python for example.

  3. krader1961 commented on Jun 22, 2017

    @krader1961
    ContributorAuthor

    Another change we should make: math should be a builtin rather than a wrapper around bc. This needs to be done in a major release because we can't simply embed bc in our project due to licensing issues. So we'll need to pick another implementation whose license is compatible with this project.

  4. faho commented on Jun 22, 2017

    @faho
    Member

    Okay, so I've started tagging issues/PRs with a new "fish-3.0" milestone (and I pulled a random due date from hammerspace). See https://github.com/fish-shell/fish-shell/milestone/18 for the full list.

    The idea is that that milestone would contain things that we are reasonably certain we want to actually do for 3.0, while "next-major" would be for proposed breaking changes.

    math should be a builtin rather than a wrapper around bc. This needs to be done in a major release because we can't simply embed bc in our project due to licensing issues.

    Yes, #3157, included in the list.

  5. simotek commented on Jun 22, 2017

    @simotek

    From a Distro packager / maintainer point of view it makes my life much easier if breaking changes only ever occur in major versions and if that means releasing major versions more frequently then In my opinion its not a bad thing.

    If you consider we have the following Major.Minor.Point I strongly think the following should apply

    Point: Bugfixes only
    Minor: Anything in point + New features that don't affect compatibility
    Major: Any change including breaking ones.

    That sends a clear signal to those of us putting fish into distro's about when and what updates we can push. For example in the openSUSE world we have Tumbleweed which is for users who want the latest and greatest, at an extreme case you could do a new major version every couple of months there and knowone would complain (I'm not suggesting you would). Then we have Leap which is designed to be more conservative. And while we would always take a new fish major version for a new Leap version and a Minor version (no breaks) for a new Leap Service Pack/Minor version, depending on the changes and the time in the release cycle I might not take a new Major version for a new Leap SP depending on the breakages, ie I might not take a new major version between Leap SP3-SP4 if it has a number of breaks, but I'd be more likely to take it between SP1 and SP2. Similar for our packaging system for SUSE Linux Enterprise although through OBS people can always choose the latest version if they want it.

    And then for a version of Leap thats already released I'd only ever update to a new point version of fish and if a minor version came out with bugfixes that users care about i'd probably manually backport them into our packages.

    I guess in summary I would have preferred if you did 3.0 instead of 2.5 with the breaking changes (especially the change in behavior for running applications when fish exited) instead of releasing. If your going to make breaking changes and not bump the major version the major / minor version numbers don't really mean anything.

  6. simotek commented on Jun 22, 2017

    @simotek

    We should definitely change () to $() for example. Although we'll almost certainly need to still recognize () outside of quoted strings.

    I agree here, if your making a change like this compatibility needs to stay around for a while, maybe in fish 4.0 you can move to printing something to std:err when its detected and remove the old syntax in fish 5.0 (Just as an example it of course depends on actual release timelines). It would also be nice if you could enable a environment variable in fish 3.0 to also print to std:err to make it easy for people trying to port to catch everything.

    My thinking is fish 2.x would continue to be supported for two or three years. But critical bug fixes only and new completion scripts people submit. We would branch master to a Integration_2.7 branch and that would be our last 2.x minor release. After that it would be 2.7.1, 2.7.2, etc. as necessary to address critical bugs.

    Speaking with a Distro maintainer hat on I do like this idea, but how many critical fixes do you think we will find? To me fish 2.X seems really stable so i'd consider a halfway approach, create the branch but don't plan any releases then if any critical issues or security issues do appear you can spin a release but know one is expecting one otherwise.

    I also suspect most people outside those who are just using whichever version of fish there distro provides will migrate to 3.0 pretty quickly the only exception will be the few who use fish as there main scripting language as opposed to there main interactive shell and I don't see this group being as concerned about getting new completions etc. From all the people I talk to there is not many of these people, most I speak to use fish as an interactive shell and still use bash or python for scripting.

    Whether we should rebrand as "fish3" is a tough question. When iTerm 2.0 came out it became known as iTerm2 and it lives in /Applications/iTerm2.app/. But iTerm 3.0 is still referred to as iTerm2 and lives in the same directory. I've seen that happen with other projects too. And calling it "fish3" only superficially makes it easier for people to have both versions installed. Look at the situation with python for example.

    I don't think we should, in the Linux world atleast most applications don't do this and the ones that do cause us a bunch of headaches. Python is a different example, the changes between 2 and 3 were massive and many people had massive python code bases and 10 years on there are still some of these that knowone has finished porting to python3 yet. Distro's also have all handled this slightly differently arch for example has had /usr/bin/python as python3 for a long time and /usr/bin/python2 as python 2. Python 2 -> Python 3 had atleast 10 to 20 as big breaking changes as going from () to $() without being backwards compatible. (They have since realised that was too much and won't go that far with python 4)

    On Linux atleast its easy to co install multiple fish versions you can install one to /usr/local. or install them to /opt/fish2 /opt/fish3 then symlink or use update alternatives to choose the one thats actually used. This still leaves you with both versions using the same config files and presumably the reason you would want to have multiple versions installed is because you haven't migrated all your config / scripts yet. So to install multiple versions you'd also want to create new fish3 config files, which for most people is going to be more effort then its worth, given most people will probably be able to get the new version fix any issues in there config and then be happy on fish version 3. There will be some people with a larger number of fish scripts that they need to port and I'd expect these people would be able to co install both versions until they had ported.

    It will be a more interesting problem if fish 3 breaks the plugin managers such as fisherman oh-my-fish etc, but there developers really should be trying the beta's so they are ready in time but if there not there users will just wait and migrate when its ready.

  7. simotek commented on Jun 22, 2017

    @simotek

    I also forgot to mention in my last message another reason for not creating a /usr/bin/fish3 etc is if come 2-3 years time if someone can see valid reasons for breaking changes even if there small breaks i'd much rather a fish 4.0 gets released rather then trying to squeeze them into a fish 3.X release, and having to change biniaries and config files again would make that process much harder.

  8. krader1961 commented on Jun 22, 2017

    @krader1961
    ContributorAuthor

    @simotek: Many thanks for the feedback.

    how many critical fixes do you think we will find?

    Very few. Probably no more than five over the two to three years we would expect to support it. Because even though we'll continue to see people reporting bugs against 2.x few of them will impact enough people, or represent a security issue, to warrant a point release.

    Your thoughts on "fish3" mirror mine. I have fish23, fish24, and fish25 installed with different root directories. This allows me to easily test the behavior of older versions. But because I've updated my fish config to rely on recent changes I almost always have to use the env HOME=xxx fish23 trick when using those old versions. Not something a typical user is going to want to deal with. Which argues pretty strongly for us not changing the binary name. Anyone who needs multiple versions will be prepared to deal with it via symlinks and such. Those who don't will just be annoyed that it's now "fish3" rather than "fish".

  9. GReagle commented on Jun 22, 2017

    @GReagle
    Contributor

    Why change command substitution syntax to $()? Is this discussed in another issue? I tried to search for it with no success.

  10. krader1961 commented on Jun 22, 2017

    @krader1961
    ContributorAuthor

    Also, I feel pretty strongly that we should be aiming for a fish 3.0 release closer to six months from now than 12 months. If that means not doing a fish 2.7 release I think that's a reasonable tradeoff.

    Why change command substitution syntax to $()?

    For a variety of reasons but the primary one is to allow command substitutions inside double quoted strings. Also for consistency with ksh/zsh/bash. There is no good reason for fish to be different in this regard. There may be others but the primary issue where this is discussed is #159.

  11. SanskritFritz commented on Jun 22, 2017

    @SanskritFritz
    Contributor

    My 2 cents are simple:
    If Python can do it, Fish can do it too. It happens time to time that ideas that seemed good at their time are deemed obsolete or even wrong, so changing is not only desirable but actually necessary to improve the quality of the product. So, please go for the changes if most of us agree they're good changes.

  12. braham-snyder commented on Jun 22, 2017

    @braham-snyder

    Another +1 to fish 3.0, FWIW. I'm certainly biased by being quite new to fish, but it's perhaps significant that I've already ran into #159 twice, and -- as noted by at least one additional user in that issue -- I'd completely forgotten about the issue and its workarounds the second time I ran into it.

    Additionally:

    And calling it "fish3" only superficially makes it easier for people to have both versions installed. Look at the situation with python for example.

    Not only that, but naming it fish3 might (unfairly, in my humble opinion) bias users against moving on from fish 2.

  13. pim-Den commented on Jun 22, 2017

    @pim-Den

    My 1/2 cent: I agree with Braham-Snyder. Do not isolate users by changing the name. For the rest, it has already been said above.

  14. zachyordy commented on Jun 22, 2017

    @zachyordy

    Long time fish user, first time poster. Freaking love this shell!

    Don't have anything against forward progress and breaking / non-compatible changes.

    Fish 3.0 sounds good to me, but I'd strongly encourage the binary name to stay the same. The full path to a binary of a shell has it's way of showing up in lots of places you might not expect (chsh, /etc/passwd, user scripts, crontab, etc.). For a shell, even if the changes are breaking, I'd prefer to maintain the binary name. The other things that people mention about the future (fish4?) also place doubt in my mind.

    I personally think Python caused themselves a lot of trouble when they decided to continue with two binaries (e.g. python3), and that's probably a lot of what is preventing the general public from moving on (as well as creating strain for the python programmers, as they now have to continue to support and develop two completely separate code trains). Just my 2 cents.

  15. anordal commented on Jun 24, 2017

    @anordal
    Contributor

    What I would like to see in a major release is more safety (ref #805). That's the reason I use bash for scripting.

    Of the low hanging fruit, I don't see why we don't have the equivalent of bash's set -u by default:

    > set hippopotamus
    > ls $typopotamus
    fish: $typopotamus is not defined.
    ls $typopotamus
       ^
    

    Compare that to failglob, which we already have:

    > ls *nonexist
    fish: No matches for wildcard '*nonexist'. See `help expand`.
    ls *nonexist
       ^
    

    I don't know if I'm the only fish user who don't use fish for scripting, but we may be overestimating the importance of backward compatibility: Unlike most programming languages, fish is a user interface that happens to be a programming language. Compare that to python: Python is a programming language that happens to have a REPL interface. So it was more important for python.

    Python3 was a failure in that some people still cling to python2. I think the lesson from that must be that even a major release must not be too backward incompatible.

  16. 44 remaining items

  17. ridiculousfish commented on Aug 26, 2018

    @ridiculousfish
    Member

    No estimate; I consider all issues remaining in the 3.0 milestone to be blockers and these are trending down slowly. Things that get added at this point are newly discovered blockers (e.g. zanchey's observation that out-of-tree tarballs don't work).

  18. faho commented on Oct 21, 2018

    @faho
    Member

    Okay, after I have just punted a few unimportant things from the checklist (if anybody implements them, we'll still take them, of course! There's just no need to have them block 3.0), the state is:

    I've reset the due date to 11.11.

  19. faho commented on Oct 25, 2018

    @faho
    Member

    I've fixed #5267, #5251 and #5229.

    In addition @ridiculousfish has opened #5271, which is a bit of a follow-up to #5245. Not having that in 3.0 would be a bit awkward.

  20. zanchey commented on Nov 2, 2018

    @zanchey
    Member

    The release notes need a bit of work, which I'll hopefully get to this week.

  21. crocket commented on Nov 2, 2018

    @crocket
  22. faho commented on Nov 2, 2018

    @faho
  23. crocket commented on Nov 2, 2018

    @crocket
  24. faho commented on Nov 2, 2018

    @faho
  25. mqudsi commented on Nov 3, 2018

    @mqudsi
  26. locked as resolved and limited conversation to collaborators on Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions