Giter VIP home page Giter VIP logo

flutter.el's People

Contributors

amake avatar ericdallo avatar jcs090218 avatar storvik avatar zwpaper avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

flutter.el's Issues

Run tests on lsp-dart

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

Option to `flutter test`

VSCode has a visual option for running a single test:
flutter-test
I know that something visual is a bit complex, but what about a command like flutter-run-all-tests or flutter-run-test-at-point?

Test invocations fail on pure-Dart files in Flutter project

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.

Compile error during install, symbol’s value as variable is void: flutter-interactive-keys-alist

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

flutter-run(-or-hot-reload) appropriates current window for *Flutter*

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?

l10n functions problems

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?

flutter.el doesn't detect physical devices connected via adb

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")

Running in no-sound-null-safety

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?

after save hook?

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!

Interaction with running flutter process exits prematurely on Windows

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?

[feature request] "Killing Gradle on exit"

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.

`flutter-run(-or-hot-reload)` from different project invokes in previous project

  1. Invoke flutter-run or flutter-run-or-hot-reload from project A
  2. Optionally end the flutter process (but leave the *Flutter* buffer open)
  3. Invoke flutter-run or flutter-run-or-hot-reload from project B

Because 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

  • Invoking flutter-run et al when an existing flutter process is already running in a *Flutter* buffer for a different project
    • Prompt to kill running process?
  • Invoking flutter-run et al when a *Flutter* buffer for another project exists but no process is running
    • Just change PWD and invoke?

How do I view the log output?

Sorry if this is a stupid question but I can't find a buffer where I can view the log or print output.
I'm using flutter-run-or-hot-reload in order to run my app on an iOS simulator.

More Flutter commands

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.

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.