Comments (11)
See also flutter/flutter#3449
from flutter-intellij.
To be clear, Flutter isn't released in a way that makes this super easy. But, we'll get there before we know it. And as long as we're talking about configurations, I'd like us to think about how to do per-project SDK configurations.
from flutter-intellij.
It will definitely be confusing :)
Please override whatever Dart SDK is configured by the user over in the dart plugin, and use whatever Dart SDK is vendored by Flutter when editing a Flutter app.
Also, consider allowing each project to have a Flutter SDK setting. A global setting, for all projects across the IDE, makes it hard to have project A using Flutter 1.2.3 and project B using Flutter 2.1.1.
from flutter-intellij.
A global setting, for all projects across the IDE, makes it hard to have project A using Flutter 1.2.3 and project B using Flutter 2.1.1.
Right. This brings up the larger issue which is that the Dart Plugin currently does not support per-project SDKs....
cc @jwren for some background.
from flutter-intellij.
This is a large issue, see flutter/flutter#3770 for more context. Our current focus is internal where this doesn't occur, but as Seth notes, external deployments are going to sneak up on us soon. So we definitely need to design for a world where folks can have multiple flutter projects not all of which use the same versions of flutter (and thus Dart). Not sure what the entire solution looks like, but please do plan for such a world. :)
from flutter-intellij.
Added a separate tracking bug for the per-project SDKs ask (#56). Thanks for all the input! :)
from flutter-intellij.
An editor notification (in progress), that nags if the SDKs are not the same.
@sethladd : wordsmithing appreciated!
from flutter-intellij.
Great progress Phil!
from flutter-intellij.
Sorry, I'm confused. Why does this check exist?
Shouldn't a Flutter project's Dart SDK be auto-set from the Flutter SDK that they've pointed to.
In other words, shouldn't the Flutter project's settings be decoupled from a Dart project's settings? Why are we (apparently?) forcing our users to have a single Dart SDK configured for all projects in IntelliJ that might be using Dart?
(apologies if I'm not understanding what this message is telling our users...)
from flutter-intellij.
Shouldn't a Flutter project's Dart SDK be auto-set from the Flutter SDK that they've pointed to.
Absolutely. That's what we're shooting for but the Dart plugin does not support per-module SDKs. I opened #56 to track this at the Flutter plugin level but this is really a deeper issue with Dart support in general.
@jwren feel free to chime in... Otherwise, perhaps we should all VC to discuss?
from flutter-intellij.
I think we're as far as we want to go on this for a first cut. Flutter SDK configuration should set the right SDK and if a user has done something different they'll see an editor notification. Feel free to re-open if you want to continue to iterate. Or maybe better still, open new issues to track specific asks.
from flutter-intellij.
Related Issues (20)
- Bulid Error HOT 1
- com.intellij.diagnostic.PluginException about ActionUpdateThread.OLD_EDT HOT 1
- Exception on opening context menu HOT 1
- `ActionUpdateThread.OLD_EDT` is deprecated HOT 1
- Error getting Flutter sdk information. HOT 2
- Not Able to open and edit HOT 2
- flutter_tts sucks HOT 1
- Android Studio console log can't link to source code HOT 2
- JSArray
- Remove the Flutter outline HOT 8
- Provide DTD address to analysis server
- windows version , flutter, android studio not recognized HOT 1
- It is not possible to open an android module as a project in android studio. HOT 2
- [Android Emulator] Child pages are not rendered after exiting a nested initial page with the back gesture and launching from the Android launcher. HOT 1
- Migrate existing usages of `embed=true` query parameter for DevTools screens to `embedMode=one`
- Remove use of `page=` query param for DevTools embeddings HOT 6
- ActionUpdateThread.OLD_EDT` is deprecated Error HOT 1
- Unable to build Android module HOT 1
- Unnecessary options to open Android emulators that are already open
- The error comes when changing from Flutter project to Open Android Module In Android Studio mode HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter-intellij.