{"id":17006488,"url":"https://github.com/patoconnor43/asdf-dart","last_synced_at":"2025-08-24T05:05:42.066Z","repository":{"id":42621624,"uuid":"164263957","full_name":"PatOConnor43/asdf-dart","owner":"PatOConnor43","description":"dart plugin for asdf version manager https://github.com/asdf-vm/asdf","archived":false,"fork":false,"pushed_at":"2024-04-15T18:31:26.000Z","size":55,"stargazers_count":43,"open_issues_count":4,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-21T01:43:24.222Z","etag":null,"topics":["asdf","asdf-dart","asdf-plugin","asdf-vm"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PatOConnor43.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-06T00:58:17.000Z","updated_at":"2025-02-20T21:43:22.000Z","dependencies_parsed_at":"2023-02-09T17:01:04.159Z","dependency_job_id":"ab8edf78-eb8b-438c-84db-30b96fb94697","html_url":"https://github.com/PatOConnor43/asdf-dart","commit_stats":{"total_commits":62,"total_committers":9,"mean_commits":6.888888888888889,"dds":0.4354838709677419,"last_synced_commit":"d14ad3bd609d6c3115863f1cc69510b39d9adbc0"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatOConnor43%2Fasdf-dart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatOConnor43%2Fasdf-dart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatOConnor43%2Fasdf-dart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatOConnor43%2Fasdf-dart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PatOConnor43","download_url":"https://codeload.github.com/PatOConnor43/asdf-dart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244986389,"owners_count":20543006,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asdf","asdf-dart","asdf-plugin","asdf-vm"],"created_at":"2024-10-14T05:05:58.691Z","updated_at":"2025-03-22T16:30:53.571Z","avatar_url":"https://github.com/PatOConnor43.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# asdf-dart\ndart plugin for [asdf version manager](https://github.com/asdf-vm/asdf)\n\n\n## Requirements\n- `curl`\n- `unzip` or `7z` to decompress the downloaded zip\n\n\n## Install\n\n```\nasdf plugin add dart https://github.com/patoconnor43/asdf-dart.git\n```\n\n## Use\n\nCheck the [asdf instructions](https://asdf-vm.com/guide/getting-started.html#_5-install-a-version) for how to install and set your Dart version.\n\n## Customization\nThe default behavior for this plugin used to include `dev` and `beta` versions\nwhen listing all the versions. This got really noisy and interfered with\n`asdf install dart latest` installing the latest stable version. If you want\nto re-enable these channels you can set these environment variables.\n```\nASDF_DART_ENABLE_BETA=true\nASDF_DART_ENABLE_DEV=true\n```\nThese environment variables will ensure only the base versions are included.\n\n## Installation differences between Dart 1 and Dart 2\n\nAll Dart 1 versions come with corresponding versions of `content_shell` and `dartium`. Since Dart 2 doesn't use these tools, they aren't included. For more information on tooling differences, check out [the docs](https://webdev.dartlang.org/dart-2).\n\n## Using in your favorite IDE/Editor\nDart plugins for IntelliJ, VS Code, etc., typically need you to provide a path where the Dart SDK is installed.\nUsing asdf installs Dart in a consistent place, but may be confusing if you don't know where that is.\nThe install location can be found by running `asdf where dart`, which should be `$HOME/.asdf/installs/dart/VERSION`\nContinuously updating this path can get annoying between upgrades or if you're doing work between Dart 1 and 2.\nBecause of this I added a script to this repo (`tools/dart_version_watcher.sh`) that will create a file watcher\nfor any time your global versions change and then update a symlink that points to the current version.\nThis means you can point your IDE at `${HOME}/.asdf_dart_sdk` and anytime you change versions, this file\nwill point to the most recent version. If you're interested check the [install instructions](./tools/README.md)\ninside the `tools/` directory.\n\n## Included Shims\n\n- `dart2js`\n- `dart2native`\n- `dart`\n- `dartanalyzer`\n- `dartaotruntime`\n- `dartdevc`\n- `dartdevc`\n- `dartdoc`\n- `dartfmt`\n- `pub`\n- `and many more...`\n- `content_shell` (Dart 1 exclusive)\n- `dartium` (Dart 1 exclusive)\n\n## Working with multiple SDKs\nIf you're using this plugin it's probably because you're using multiple\nversions of the Dart SDK. This means you also want to be able to use different\nversions of the language server. This is easy enough in Vim/Neovim by getting\nthe language server path by running `asdf where dart`. In VSCode, you'll\nprobably want to use the `dart.sdkPaths` setting. This will allow you to add a\npath where your SDKs are located and then switch them on the fly. An example\nvalue for this setting is `\u003can absolute path to your asdf\nfolder\u003e/installs/dart`. If you hover over the Dart Syntax Switcher in the\nbottom right of the editor you should see a way to change which SDK you want to\nuse.\n\n\u003cimg width=\"346\" alt=\"A screenshot showing a popup menu when hovering over the\nsyntax selector in VSCode. There is a label that shows the current Dart version\nand a button that says 'change'.\"\nsrc=\"https://github.com/PatOConnor43/asdf-dart/assets/6657525/c82b9974-a121-4fb8-b35a-6d590bf0db7c\"\u003e\n\n*IMPORTANT NOTE: If there are versions of the SDK that are installed, but don't\nshow up in the menu, you should be able to uninstall and re-install those\nversions. This is due to a path change that was necessary to facilitate this\nfeature.*\n\nShoutout to @Rapougnac for bringing this up!\n\n## Contributing\n\nFeel free to create an issue or pull request if you find a bug.\n\n## License\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatoconnor43%2Fasdf-dart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatoconnor43%2Fasdf-dart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatoconnor43%2Fasdf-dart/lists"}