amake / flutter.el Goto Github PK
View Code? Open in Web Editor NEWFlutter tools for Emacs
License: GNU General Public License v3.0
Flutter tools for Emacs
License: GNU General Public License v3.0
I think I fixed our regex problems in lsp-dart :)
Sorry for noticing only now that VSCode uses LSP to build the tests lens and do not need that crazy regex.
Maybe we can remove the tests functions if you want it
flutter-run-hot-reload
currently uses pop-to-buffer-same-window
to display the *Flutter*
buffer, which almost always displays it in the current window. I find this very disruptive: I set flutter-run-hot-reload
in after-save-hook
, so every time I save a buffer the code I was just editing disappears from view.
Since *Flutter*
is similar in role to a *compilation*
buffer, can this be changed to use something like display-buffer
instead, which is more common for such buffers?
when I flutter-run, I can run in chrome or as a Linux app. Is there some way to launch the app to emulator?
I hope it can autocompleter.
there are many logs in it, i want to clear it
When I try flutter-run
, then I got the following error:
More than one device connected; please specify a device with the '-d <deviceId>' flag, or use '-d all' to act on all devices.
<list of devices>
Process Flutter exited abnormally with code 1
Does this package support entering the device id?
hi, I'm having trouble with the flutter-l10n-externalize-at-point
function.
The first thing I noticed is that apparently the flutter documentation now recommends a different approach to localisation which is to write these arb (json) files with the strings we want and let flutter generate the localisation classes from that. These are written to $ROJECTROOT/.dart_tool/flutter_gen/gen_l10n/app_localizations.dart
so I changed the flutter-l10n-file
variable.
But then I get another error:
error: "Invalid search bound (wrong side of point)"
With my as of yet rudimentary edebug skills I've observed that this gets thrown while in flutter-l10n--delete-applied-consts
but I don't really understand why. This shouldn't be something that's affected by the flutter-l10n-file
, or should it?
Hi!
I want to use flutter with emacs and really want to run the function flutter-run-or-hot-reload after I save a file of my flutter project. Any idea how do we implement this?
Thank you!
Not sure if this is mission critical, but just putting it here for your convenience.
When I do M-x package-install RET flutter RET
, I see the following in *Compile log*
buffer.
^L
Compiling internal form(s) at Wed Jun 5 17:44:17 2019
Leaving directory ‘/Users/alice/.emacs.d/elpa/flutter-20190204.601’
^L
Compiling file /Users/alice/.emacs.d/elpa/flutter-20190204.601/flutter.el at Wed Jun 5 17:44:17 2019
Entering directory ‘/Users/alice/.emacs.d/elpa/flutter-20190204.601/’
flutter.el:80:1:Error: Symbol’s value as variable is void: flutter-interactive-keys-alist
It not so conveniently each time run flutter-run
on my local, have to specify a options with C-u.
In an effort to support running tests in pure-Dart projects (because you may want to work on a pure-Dart project for use in a Flutter project), we try to be smart about which invocation to use: flutter test
or pub run test
.
But we are not smart enough: we assume a Flutter project only if the file has a import package:flutter(_test)?/...
statement, and otherwise assume a Dart project.
This falls down for pure-Dart files in Flutter packages.
We need some cheap way of determining whether the project is a Flutter one or not.
It should be possible to obtain devices prior to run, and propose to chose one if it's not the only one.
Right now, you have to run it once to fail and obtain device ID, then run with arg, then inpur "-d device-id".
Are there any support for flutter debugging commands? For example Flutter: Toggle Baseline Painting
I'm loving this, since I began developing on a 10-year-old ThinkPad with 4Gb of RAM, so having Gradle in the background without having to fire up Android Studio is the only way to go.
However, after exiting Emacs, one has to manually kill Gradle, as it sits there, idling, using a good part of the machine's RAM.
Still, just a very minor quirk.
I'll suggest the Spacemacs community to include flutter
in the dart
layer, as both go well together.
Tag a release for Melpa-Stable?
flutter-run
or flutter-run-or-hot-reload
from project Aflutter
process (but leave the *Flutter*
buffer open)flutter-run
or flutter-run-or-hot-reload
from project BBecause the *Flutter*
buffer's PWD is still in project A, the new invocation starts up project A again.
The flutter
command itself uses locks to ensure only one process runs at a time, so I think it's OK to have only one active *Flutter*
buffer at a time. We need to handle
flutter-run
et al when an existing flutter
process is already running in a *Flutter*
buffer for a different project
flutter-run
et al when a *Flutter*
buffer for another project exists but no process is running
When I run flutter devices
in the terminal, it detects my device
❯ flutter devices
2 connected devices:
HD1917 (mobile) • 192.168.88.150:39297 • android-arm64 • Android 11 (API 30)
Linux (desktop) • linux • linux-x64 • NixOS 21.11 (Porcupine) 5.14.9
However, flutter.el does not see it and gives me an error ("No supported devices are connected")
Hi, thanks for the incredible job here!
Been using the package for a couple of days now. Just saw the package lacking some essential commands (in order to keep us in the Emacs only xD) (and since I'm a noob in writin Lisp thought I just come here and say what I think instead of making a Pull request).
Just the absence of a functions like: flutter-create is a big deal. (and pub)
It would be nice to implement such commands in here too.
Hello, thank you for your work on this package, it's just perfect for my current needs.
However, with the update to Flutter 2, some of the libs I use have not updated yet to null safety, so I have a temporary need to run flutter with flutter run --no-sound-null-safety
. How would I go about adding the --no-sound-null-safety
command line parameter?
If I use flutter from terminal, I can use flutter config
to change some settings. is there a way to do this with flutter.el?
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.