I had tried multiple versions of tramp. I checked my elpa/ and saw I had tried tramp 2.5.1 and 2.5.1.1 earlier. Now that I renamed my elpa/ folder to elpa-bak/, emacs is using the built-in 2.4.5.27.2. I now tried installing the latest tramp via emacs menu Options>Manage Emacs Packages> and then selecting tramp 2.5.1.1 from there and clicking install. It gives me an error, please see below. This is with "GNU Emacs 27.2 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95)) of 2021-03-27".
Contacting host:
elpa.gnu.org:443Parsing tar file...done
Extracting...done
INFO Scraping files for tramp-autoloads.el...
Generating autoloads for tramp-adb.el...done
Generating autoloads for tramp-archive.el...done
Generating autoloads for tramp-cache.el...done
Generating autoloads for tramp-cmds.el...done
Generating autoloads for tramp-compat.el...done
Generating autoloads for tramp-crypt.el...done
Generating autoloads for tramp-ftp.el...done
Generating autoloads for tramp-fuse.el...done
Generating autoloads for tramp-gvfs.el...done
Generating autoloads for tramp-integration.el...done
Generating autoloads for tramp-pkg.el...done
Generating autoloads for tramp-rclone.el...done
Generating autoloads for tramp-sh.el...done
Generating autoloads for tramp-smb.el...done
Generating autoloads for tramp-sshfs.el...done
Generating autoloads for tramp-sudoedit.el...done
Generating autoloads for tramp-uu.el...done
Generating autoloads for tramp.el...done
Generating autoloads for trampver.el...done
INFO Scraping files for tramp-autoloads.el...done
Wrote /Users/mkancherla/.emacs.d/elpa/tramp-2.5.1.1/tramp-autoloads.el [2 times]
Error in package--load-files-for-activation: (void-function tramp-register-crypt-file-name-handler)
tramp-register-file-name-handlers: Symbol’s function definition is void: tramp-register-crypt-file-name-handler