sciencefidelity / nova-dart Goto Github PK
View Code? Open in Web Editor NEW๐ฏ Dart and Flutter tooling for Nova.
Home Page: https://extensions.panic.com/extensions/sciencefidelity/sciencefidelity.dart/
License: Other
๐ฏ Dart and Flutter tooling for Nova.
Home Page: https://extensions.panic.com/extensions/sciencefidelity/sciencefidelity.dart/
License: Other
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
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.
Since Nova 9 introduced debugging, it would be super nice to have it working for Dart/Flutter.
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
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?
Is it possible to use quick fixes within nova?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.