GithubHelp home page GithubHelp logo

Comments (11)

eseidelGoogle avatar eseidelGoogle commented on July 17, 2024 1

See also flutter/flutter#3449

from flutter-intellij.

sethladd avatar sethladd commented on July 17, 2024 1

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.

sethladd avatar sethladd commented on July 17, 2024

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.

pq avatar pq commented on July 17, 2024

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.

eseidelGoogle avatar eseidelGoogle commented on July 17, 2024

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.

pq avatar pq commented on July 17, 2024

Added a separate tracking bug for the per-project SDKs ask (#56). Thanks for all the input! :)

from flutter-intellij.

pq avatar pq commented on July 17, 2024

An editor notification (in progress), that nags if the SDKs are not the same.

screen shot 2016-08-24 at 5 02 05 pm

@sethladd : wordsmithing appreciated!

from flutter-intellij.

jwren avatar jwren commented on July 17, 2024

Great progress Phil!

from flutter-intellij.

sethladd avatar sethladd commented on July 17, 2024

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.

pq avatar pq commented on July 17, 2024

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.

pq avatar pq commented on July 17, 2024

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)

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.