Giter VIP home page Giter VIP logo

sciencefidelity / nova-dart Goto Github PK

View Code? Open in Web Editor NEW
13.0 4.0 0.0 2.79 MB

๐ŸŽฏ Dart and Flutter tooling for Nova.

Home Page: https://extensions.panic.com/extensions/sciencefidelity/sciencefidelity.dart/

License: Other

JavaScript 1.16% TypeScript 76.68% Dart 16.74% Shell 0.24% Kotlin 0.11% Swift 0.37% Objective-C 0.04% HTML 3.41% Ruby 1.25%
nova nova-extension dart dartlang flutter

nova-dart's Introduction

Hi there ๐Ÿ‘‹

nova-dart's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar sciencefidelity avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nova-dart's Issues

Dart Language Server failing to initialise.

I'm seeing this error in Nova:

-32602 Invalid params for initialize:
params.rootUri must not be undefined

Nova then asks me to ignore or restart the Dart Language Server. Restarting the server immediately causes the error again.

Any idea?

macOS 14.1.1, Nova 11.6

FVM Support

Would be amazing if the extension could support FVM by reading a project's .fvm/fvm_config.json file and using the appropriate Flutter version.

Debugging support

Since Nova 9 introduced debugging, it would be super nice to have it working for Dart/Flutter.

Darth Analyzer Path issue

I think there is an issue with the Dart Plugin.

When I run i get this error on the extension console:

Dart[8:25:25.020000] Activating...
Dart[8:25:25.020000] Analyzer path is: "/usr/local/bin/cache/dart-sdk/bin/snapshots/analysis_server.dart.snapshot".
Dart[8:25:25.026000] LSP Running
Dart Language Server[8:25:25.109000] Could not find a command named "/usr/local/bin/cache/dart-sdk/bin/snapshots/analysis_server.dart.snapshot".
Dart Language Server[8:25:25.110000] 
Dart Language Server[8:25:25.110000] Usage: dart <command|dart-file> [arguments]
Dart Language Server[8:25:25.110000] 
Dart Language Server[8:25:25.110000] Global options:
Dart Language Server[8:25:25.110000] -h, --help                 Print this usage information.
Dart Language Server[8:25:25.110000] -v, --verbose              Show additional command output.
Dart Language Server[8:25:25.110000]     --version              Print the Dart SDK version.
Dart Language Server[8:25:25.110000]     --enable-analytics     Enable analytics.
Dart Language Server[8:25:25.110000]     --disable-analytics    Disable analytics.
Dart Language Server[8:25:25.110000] 
Dart Language Server[8:25:25.110000] Available commands:
Dart Language Server[8:25:25.110000]   analyze    Analyze Dart code in a directory.
Dart Language Server[8:25:25.110000]   compile    Compile Dart to various formats.
Dart Language Server[8:25:25.110000]   create     Create a new Dart project.
Dart Language Server[8:25:25.110000]   devtools   Open DevTools (optionally connecting to an existing application).
Dart Language Server[8:25:25.110000]   doc        Generate HTML API documentation from Dart documentation comments.
Dart Language Server[8:25:25.110000]   fix        Apply automated fixes to Dart source code.
Dart Language Server[8:25:25.110000]   format     Idiomatically format Dart source code.
Dart Language Server[8:25:25.110000]   migrate    Perform null safety migration on a project.
Dart Language Server[8:25:25.110000]   pub        Work with packages.
Dart Language Server[8:25:25.110000]   run        Run a Dart program.
Dart Language Server[8:25:25.110000]   test       Run tests for a project.
Dart Language Server[8:25:25.110000] 
Dart Language Server[8:25:25.110000] Run "dart help <command>" for more information about a command.
Dart Language Server[8:25:25.110000] See https://dart.dev/tools/dart-tool for detailed documentation.

So I searched to where I have that analyzer.dart.snapshot. and it was on my home directory, cool. When I choose the picker for the path, the PICKER only allows to choose a FILE: but the next errors shows that we path is being prepended to the name of the file, so I get:

Dart[8:25:25.020000] Activating...
Dart[8:25:25.020000] Analyzer path is: /Users/pedroluz/dart-sdk/bin/snapshots/analysis_server.dart.snapshot/analysis_server.dart.snapshot
Dart[8:25:25.026000] LSP Running
Dart Language Server[8:25:25.109000] Could not find a command named "/Users/pedroluz/dart-sdk/bin/snapshots/analysis_server.dart.snapshot/analysis_server.dart.snapshot".
Dart Language Server[8:25:25.110000] 
Dart Language Server[8:25:25.110000] Usage: dart <command|dart-file> [arguments]
Dart Language Server[8:25:25.110000] 
Dart Language Server[8:25:25.110000] Global options:
Dart Language Server[8:25:25.110000] -h, --help                 Print this usage information.
Dart Language Server[8:25:25.110000] -v, --verbose              Show additional command output.
Dart Language Server[8:25:25.110000]     --version              Print the Dart SDK version.
Dart Language Server[8:25:25.110000]     --enable-analytics     Enable analytics.
Dart Language Server[8:25:25.110000]     --disable-analytics    Disable analytics.
Dart Language Server[8:25:25.110000] 
Dart Language Server[8:25:25.110000] Available commands:
Dart Language Server[8:25:25.110000]   analyze    Analyze Dart code in a directory.
Dart Language Server[8:25:25.110000]   compile    Compile Dart to various formats.
Dart Language Server[8:25:25.110000]   create     Create a new Dart project.
Dart Language Server[8:25:25.110000]   devtools   Open DevTools (optionally connecting to an existing application).
Dart Language Server[8:25:25.110000]   doc        Generate HTML API documentation from Dart documentation comments.
Dart Language Server[8:25:25.110000]   fix        Apply automated fixes to Dart source code.
Dart Language Server[8:25:25.110000]   format     Idiomatically format Dart source code.
Dart Language Server[8:25:25.110000]   migrate    Perform null safety migration on a project.
Dart Language Server[8:25:25.110000]   pub        Work with packages.
Dart Language Server[8:25:25.110000]   run        Run a Dart program.
Dart Language Server[8:25:25.110000]   test       Run tests for a project.
Dart Language Server[8:25:25.110000] 
Dart Language Server[8:25:25.110000] Run "dart help <command>" for more information about a command.
Dart Language Server[8:25:25.110000] See https://dart.dev/tools/dart-tool for detailed documentation.

First issue is that the picker should only allow a FOLDER to be select, not a FILE.
The good thing is that you can manually input text into the input (thank u for that).
So the next issue is, What is this?

Dart[8:31:58.134000] Activating...

Dart[8:31:58.134000] Analyzer path is: /Users/pedroluz/dart-sdk/bin/snapshots/analysis_server.dart.snapshot

Dart[8:31:58.144000] LSP Running

Dart Language Server[8:31:58.174000] Wrong full snapshot version, expected 'd56742caf7b3b3f4bd2df93a9bbb5503' found '9cf77f4405212c45daf608e1cd646852'

Thanks

Wrong full snapshot version

I've pointed the extension to my dart analysis server. I'm on the latest flutter (after running flutter upgrade), but the extension says it expects a specific snapshot of the analysis server:

Wrong full snapshot version, expected 'e59f75a761ed45ec5ef49f39d5e0e1ee' found '1044d5d7857485639caee4798a5dcbb7'

Why is it locked to a specific version?

Quick fix

Is it possible to use quick fixes within nova?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.