All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- All commands have been updated to proactively mention project and runtime information, making it easier to understand what is going on and how to configure your tooling.
- State Tool will now give you a heads-up if the organization you're accessing has gone over its runtime limit.
- State Tool will now configure itself for all supported shells on your system, rather than just the currently active shell.
- Better support for Bash on Windows.
- Significantly improved the performance of runtime executors.
state revertnow reverts "a" commit, rather than reverting "to" a commit. This is meant to bring the user-experience in line with that of git.- Bash on macOS is no longer supported as a shell. This is due to the fact that macOS has deprecated the use of bash in favor of zsh. Using bash should still work, but you will receive warnings, and it may stop working in the future.
- The state-svc is now installed as an App on macOS. Solving the issue of macOS referring to it as an sh script which isn't very useful for end-users.
- Progress indication for runtime installations will now show build progress for all artifacts, even if they are cached.
- Reorganized the
--helpoutput.
- Fixed error message received when running State Tool without the
HOMEenv var not being indicative of that root cause. - Fixed progress count being off when installing runtimes.
- Fixed progress sometimes hangs or panics while installing runtimes.
- Fixed
state languages installandstate platforms addshould not modify the remote project (that's whatstate pushis for). - Fixed
state importpanics when ran outside of a project folder. - Fixed malformed error message when
state clean uninstallfails. - Fixed
state pushcreating the remote project even if the user told it not to. - Fixed unstable subcommands not showing a warning explaining that they are unstable.
- Fixed
state shellgiving a misleading error when no default project is configured. - Fixed
state updateshowing redundant output. - Fixed
state import --non-interactivecancelling out of import rather than continuing without prompting. - Fixed
state revert <commit ID>should not work on a commit that doesn't exist in the history. - Fixed
state clean cachenot giving a success or abort messaging. - Fixed
state export private-keygiving an uninformative error message when improperly authenticated. - Fixed
state shownot working with commits that haven't been pushed to the platform. - Fixed
state checkoutfailing if target dir is non-empty but does not contain an activestate.yaml.
- Removed the
--set-versionflag fromstate update. Instead, you can run the installation script with the-vflag. - The experimental tray tool (ActiveState Desktop) has been removed. It will be making a reappearance in the future.
- The
--namespaceflag has been removed fromstate history. To inspect projects without checking them out you can use the website.
We are introducing a set of new environment management commands that will
eventually replace state activate. The intend behind this is to make the
use-cases currently covered by the activate command more explicit, so that users
have more control over their workflow.
In short; we're introducing the following commands:
- checkout - Checkout the given project and setup its runtime
- A checkout is required before you can use any of the following commands
- use - Use the given project runtime as the default for your system
- reset - Reset your default project runtime (this also resets the project
configured via
state activate --default) - show - Show your default project runtime
- reset - Reset your default project runtime (this also resets the project
configured via
- shell - Starts a shell/prompt for the given project runtime (equivalent of virtualenv)
- switch - Switch to a branch or commit
All of the above commands are currently marked as unstable, meaning you cannot
use them unless you opt-in to unstable commands with
state config set optin.unstable true.
This is to give us time to test and improve the commands without necessarily
ensuring backward compatibility. These commands have been thoroughly tested, but
since they are new bugs are still more likely than with stable commands.
Note that state activate will still be available for the foreseeable future.
- Added new environment management commands (see above for details)
- Added
state checkoutcommand. - Added
state usecommand. - Added
state use resetcommand. - Added
state use showcommand. - Added
state shellcommand. - Added
state switchcommand.
- Added
- Added
state export envcommand - Export the environment variables associated with your runtime. - Added
state deploy uninstallcommand for reverting astate deploy. - Added
state update unlockcommand, which undoes whatstate update lockdoes. - Runtime artifacts are now cached, speeding up runtime setup and reducing
network traffic.
- The cache is capped at 500mb. This can be overridden with
the
ACTIVESTATE_ARTIFACT_CACHE_SIZE_MBenvironment variable (value is MB's as an int).
- The cache is capped at 500mb. This can be overridden with
the
- State tool will now error out when passed superfluous arguments (
eg.
state activate name/space superfluos-arg). - The installer will no longer show debug error messages.
- We now start the background service automatically when you boot your machine.
- State tool now configures all compatible shells that were found on the users system.
- We now report how far ahead / behind you are from your branch when
running
state show.
- Fixed State Tool being unusable on M1 Macs running Ventura.
- Fixed
~/.cshrcnot being respected when usingtcsh. - Fixed
-vflag not working when usinginstall.shto install State Tool. - Fixed state tool background service closing prematurely.
- Fixed bash scripts on Windows using the wrong path format.
- Fixed a variety of missing/wrong localisation issues.
- Fixed
state inviteresulting with response code error message. - Fixed various issues where running with
--non-interactivewould not have the desired behavior. - Fixed
state config setaccepting invalid values for booleans. - Fixed
state execnot respecting the--pathflag. - Fixed issue where PYTHONPATH would be set up with a temp directory on macOS.
- This still worked as expected in the end, but is obviously awkward.
- Fixed panic when running
state secrets getwithout a project. - Fixed issue where
state learnwould give an unhelpful error when it could not reach the browser. - Fixed
state shownot working for private projects. - Fixed variables as arguments to executors (eg. python3.exe) not being expanded properly.
- Fixed state tool interpreting
-vflag when its passed throughstate runorstate execbut not intended for the state tool. - Fixed State Tool being added to PATH multiple times.
- Fixed unstable commands reporting
--helpinfo when passed invalid arguments, instead of saying the command is unstable and you should opt in. - Fixed
state uninstallwith a non-existent package reporting the wrong error.
- The
state usecommand has been marked unstable.
- Fixed issue where activating a second project with an identical name to the first would instead activate the first project.
- Fixed issue where error output was sometimes missing important details about what went wrong.
- Fixed issue where build errors were incorrectly reported.
- Fixed issue where service could not run due to filepath size limits on macOS.
- Fixed issue where passing a relative path to
state activate --pathwould sometimes not resolve to the correct path. - Fixed issues where installer would sometimes give the update user experience.
- We've started flagging commands as stable and unstable, and by default will
only support execution of stable commands. To run unstable commands you must
first opt-in to them using
state config set optin.unstable true. - We've added a new
state use <orgname/project>command, which will allow you configure the given project as the default runtime on your system. - Automatic updates can now be disabled with
state config set autoupdate false. - On Windows we now add an Uninstall shortcut to the start menu.
- Analytics can now also be disabled with an environment variable:
ACTIVESTATE_CLI_DISABLE_ANALYTICS=true.
- The state-svc (our background daemon) has seen significant improvements to its
start / stop behavior. Primarily intended to improve the reliability of our
update process.
- As a result our minimum Windows version required to run the state tool is now Windows 10 Build 17134 (Codename Redstone 4).
- The State tool will now error out when it can't communicate with the state-svc. Preventing the user from running into much more vague errors as a result of the missing daemon.
state configcan now only act on valid config keys.- A number of error messages have been improved to give a better idea of how the user can remedy the error.
- Our installer has been optimized to use a smaller file size and reduce the number of processes as part of the installation.
- Fixed issue where variables in command line arguments were not properly interpolated. Causing the command to receive an empty value rather than the variable name.
- Fixed issue where
state clean uninstallwould fail to clean up the environment. - Fixed issue where
state activate --branchwould sometimes error out. - Various issues leading to corrupt, miss-placed, or error-prone installation directories.
- Fixed issue where the State Tool installation directory was added to PATH multiple times.
- Fixed issue where calling
state clean cachewith--non-interactivedid not clean the cache. - Fixed issue where
state historywould fail if history had an author that is no longer a member of the organization. - Fixed issue where automated tools and integrations (including Komodo IDE) could not get the list of organizations for the authenticated user due to a backwards incompatible change.
- Fixed cases of missing localization.
- The
--replaceflag has been dropped fromstate activate, its use-case has been addressed bystate pull --set-project.
-
Authentication now uses your browser for a more secure and transparent authentication process.
- The old behavior is still available as well, and use-cases where you provide the api key or credentials in the command are unaffected.
-
Added a new
state configcommand, which can be used to change behavior of the State Tool itself.- Currently can be used to disable analytics and error reporting, eg.
state config set report.analytics false # Turns off analytics state config set report.errors false # Turns off error reporting
- Fixed issue where temporary files were not cleaned up in a timely manner.
- Fixed issue where the
state-svcprocess would not be shut down correctly. - Fixed issue where
state clean uninstallwould say it succeeded but the State Tool would still be installed.
- Several performance enhancements have been made affecting all parts of the State Tool.
- Activating an already activated project won't error out anymore.
- The local project is no longer affected if
state installfails.
- The
-cflag has been removed fromstate activateas this is now handled bystate exec.
- Fixed issue where auto-update could not complete for certain older versions
- Fixed issue that could sometimes cause recursion in our logging
- Added PPM and PIP shims to help educate people about the State Tool.
- Added support for Ruby projects
- Fixed issue where a failed solve was reported incorrectly.
- More progress indicators are now given when sourcing runtimes and installing packages.
- Package operations are now much faster
- Binary sizes have been significantly reduced
- You no longer need to start a new shell when installing the State Tool ( provided you're running an interactive session)
- Fixed issue where environment would not always be sourced properly
- Fixed issue where certain runtime executables could not be resolved
- Recursion has been disabled while we improve the mechanic for a future version
- Fixed recursion issue when running certain State Tool commands
- Enriched the installer with analytics to allow us to diagnose installation failures
- Fixed issue where State Tool sometimes could not identify its service daemon
- Fixed issue where our analytics events would send the full executable paths
- New Command:
state learn. Opens the State Tool Cheat Sheet in your browser.
- The install and activate user experience have been overhauled to be much more concise and avoid unnecessary prompts.
- Several performance enhancements have been made. Note that some of these will require at least one more release before they can realise their potential.
- Running
state updatewill now immediately perform the update, rather than deferring it to a background process. - State Tool should now attempt to use the latest version available for a given language, when initializing a project.
- Fixed issue where on macOS the
stateexecutable would sometimes not be added to your PATH. - Resolved issue where
state execor certain invocations of the language runtime could lead to recursion errors. - Fixed issues where sometimes State Tool would say it have a new version available when it didn't.
- Fixed race condition in anonymized analytics
- Improved error reporting to help direct stability improvements
- Fixed race condition that could lead to logs being written to stderr
- Uninstalling no longer leaves a stale executable
- Auto updating from earlier versions no longer results in error
- Package management is now performed only locally, meaning you have
to
state pushyour changes back to your project when you are ready to save them. - Enhanced error reporting when attempting package operations on an out of sync project (PR #1353)
- Enhanced error reporting for errors that occur when cloning a project's associated git repository (PR #1351)
- The State Tool now comes with a preview of the ActiveState Desktop application, which facilitates shortcuts to commonly used actions, including activating your projects.
- You can now switch to specific State Tool versions by
running
state update --set-version <version>(PR #1385)
- Enhanced error reporting for errors that occur when cloning a project's associated git repository (PR #1351)
- We no longer produce 32bit Windows builds of the State Tool
- Removed unwanted output (eg.
%!s(<nil>)) when running scripts (PR #1354) - Fixed issue where
state clean uninstallwould not remove expected files on Windows (PR #1349) - Fixed a rare case where the configuration file can get corrupted when two processes access it simultaneously. ([PR #1370] (ActiveState#1370))
- Fixed package installs / uninstalls not using the cache (PR #1331)
- New runtimes are installed in parallel and 2-4 times faster. (PR #1275)
state pushupdates project name in activestate.yaml. (PR1297)
- Fixed issue where
state uninstallwould not completely remove package files (PR #1304)
- New system tray executable for the Windows platform (PR #1285)
- Enhanced error reporting for errors that happened early on in the application logic (PR #1280)
- Updated name of
state cvecommand tostate security. Aliasedstate cvetostate security(PR #1286)
- Fixed issue where
state pushwould fail on existing projects. (PR #1287)
- New command
state cve open <cve-id>opens the National Vulnerability Database entry for the given CVE (PR #1269)
- Fixed issue where
state deploywould fail without the--pathflag (PR #1270)
- Fixed issue where
state pullwould not pull in the latest changes (PR #1272)
Warning: This update will force a change to your activestate.yaml which is incompatible with earlier state tool versions. As long as everyone on your project updates their state tool there should be no interruption to your workflow.
- New command
state cveallows for reviewing security vulnerabilities on your project (PR #1209) - You can now specify a package version when calling
state info, eg.state info <name>@<version>(PR #1201) - You can now specify a new project name by
running
state pull --set-project OWNER/NAME(primarily for converting headless projects) (PR #1198) - You can now switch between update channels
via
state update --set-channel(PR #1190) - State tool will now provide instructions on how to get out of a detached state (PR #1249)
- State tool now supports branches via flags in
state activateand thestate branchsubcommand. Seestate branch --helpfor more information.
- Activating a new project non-interactively no longer makes that project "
default" (you can pass the
--defaultflag for this use-case) (PR #1210) - The user experience of
state secretsis now consistent with the rest of the State Tool (PR #1197) state importnow updates your runtime, so you don't need to re-activate after importing anymore (PR #1241)
- Progressbar sometimes hangs while waiting for build to complete (PR #1218)
- Fixed issue where some unicode characters were not printed properly (PR #1207)
- Prompts for default project should now only happen once per project (PR #1210)
- Fixed issue where
state activatesometimes used the wrong activestate.yaml (PR #1194) - Fixed issue where
state info owner/namewould fail if not currently in a project directory (PR #1255) - Fixed issue where running tooling from the global default project with
the
-vflag would spew out state tool debug info (PR #1239) - Fixed issue where sometimes perl/python is still pointing at the system install after activation (PR #1238)
- Fix issue where state tool sometimes throws "panic" errors when updating the configuration (PR #1232)
- Fix issue where
state activatesometimes throws a " panic" (PR #1229)
- The
--replaceflag forstate activateis now deprecated in favour ofstate pull --set-project