Nova

Extensions


Readme

Advanced Flutter and Dart tools for Nova.

Supports syntax highlighting, intelligent code completion, auto formatting, the Nova Color Assistant, commands, sidebar and clips.

Installation

To use this extension you will need to have the Flutter SDK or the Dart SDK installed on your system.

To use the built in language server, specify the full path to the the Dart Language Server executable (analysis_server.dart.snapshot) in the extension preferences.

If using Flutter will be <path to Flutter SDK>/flutter/bin/cache/dart-sdk/bin/snapshots, or if using the Dart SDK the path will be <path to Dart SDK>/dart-sdk/bin/snapshots.

If you installed Flutter with Homebrew the path will be similar to one the following:

# for M1 mac
/opt/homebrew/Caskroom/flutter/2.8.0/flutter/bin/cache/dart-sdk/bin/snapshots
# for Intell mac
/usr/local/Caskroom/flutter/2.8.0/flutter/bin/cache/dart-sdk/bin/snapshots

Please open an issue and let me know the install paths of other package managers.

Caveats

The extension is still in beta, several planned features are not fully implemented, you may find UI elements and commands that do not work. If you find something that dosen't work or have a feature request please feel free to open an issue.

Credits

The syntax of Dart was modified from Dart Code by Danny Tuppeny. Much of the code for the LSP was copied from TypeScript by Cameron Little. Clips are borrowed from Dart Code by Danny Tuppeny. Many thanks to the creators of those extensions!

Dart and the related logo are trademarks of Google LLC. Flutter and the related logo are trademarks of Google LLC. We are not endorsed by or affiliated with Google LLC.


Changelog

Version 0.5.3

Temporarily remove functionality where the extension tries to find the Dart LSP, which will now need to be input manually in preferences. Allow users to use choose a file of a folder with the picker when adding the path to the LSP. Process to path so that the LSP file cannot be added twice (by the user and by the extension).

Version 0.5.2

Fix type errors that were causing build to fail. Temporarily remove @types/nova-editor-node while sending a PR to Definately Typed.

Version 0.5.1

Fix a bug that would show an alert when reloading the LSP.

Version 0.5.0

The Color Assistant is now fully functional. Added named colors for all Material and Cupertino colors. Hot reload not working.

Version 0.4.1

Add editor menu command and shortcut for hot reload. Add editor menu command and shortcut to open iOS Simulator and the Android Emulator.

Version 0.4.0

Implemented document formatting on save.

Version 0.3.1

Register sidebar with information view listing Dart and Flutter versions installed.

Version 0.3.0

Extension now connects to the LSP and hover tips are shown in the editor.

Version 0.2.2

Added syntax highlighting for html strings. Highlighting inside dartdoc comments now works. Improved highlighting for imports. Started to add support for completions.

Version 0.2.1

Syntax rewritten and is now readable and intuitive, and the syntax is usable.

Version 0.2.0

Support added for clips. Syntax highlighting mostly works.

Version 0.1.1

Add support for identifiers and expressions, the syntax highlighting is almost usable.

Version 0.1.0

Initial release. Not currently usable, syntax highlighting based on Nova's official TypeScript syntax, with language definitions coming from the Dartlight extension for Sublime Text and the Dart Code.


License

This project is provided under the MIT license:

Copyright © 2021 Matt Cook

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.