Skip to content

launch selection rather than last if selection is an application [+4] #2730

Closed
@danrubel

Description

@danrubel

[user feedback]
Newly created application not been set as main project/application. When I open a new application and try to run it using the green play button or “ctrl+r” the previous application is running, to run the application for the first time i need to right click and select run as---> dartium launch.

Activity

danrubel

danrubel commented on Apr 25, 2012

@danrubel
Author

When the user clicks the "big green run button", I think that we should always "run last" unless the currently selected file is a Dart application (has a main() method) in which case we should run the selected application.

See also http://code.google.com/p/dart/issues/detail?id=2499

clayberg

clayberg commented on Apr 25, 2012

@clayberg

Changed the title to: "launch selection rather than last if selection is an application [+1]".

clayberg

clayberg commented on Apr 25, 2012

@clayberg

It is important that the green button behavior not be surprising. Always running last when you have selected a runnable Dart file is very surprising and unexpected.

lukechurch

lukechurch commented on Apr 27, 2012

@lukechurch
Contributor

+1 Or after just creating a new project... Which will usually come to the same thing.

clayberg

clayberg commented on Apr 29, 2012

@clayberg

[user feedback]

it would be nice if when we click Run, it runs the app where the cursor is positioned or the file that is being displayed in the editor rather than what was Run before


Removed Priority-Medium label.
Added Priority-High label.
Changed the title to: "launch selection rather than last if selection is an application [+2]".

clayberg

clayberg commented on Apr 29, 2012

@clayberg

[hackathon comments]

(from jmesserly@ ... taking notes at hackathon) Launch configurations seem to require a lot of setup. It'd be much easier if a there was a "JS in browser" and "Dartium" option by default. Also everyone seems to be trying to right click on the entry point and run it. Finally sometimes "run" doesn't seem to have the right effect (or any effect). It's like it is stuck on an old configuration or something like that. (not sure the details of how to reproduce this one)


Changed the title to: "launch selection rather than last if selection is an application [+3]".

danrubel

danrubel commented on Apr 30, 2012

@danrubel
Author

Howdy, editor folks. (KathyW here)

I'm starting to beef up the Dart Editor docs, but I don't know what to write about launches. The behavior isn't what I expected. Here's what happened:

  1. I downloaded a fresh copy of Dart Editor today. (I did not install this copy on top of another one.)
  2. I clicked a sample (sunflower) to open it.
  3. I executed the sample by clicking the Run button. Success.
  4. I probably clicked Manage Launches to check the state of checked mode and debugging.
  5. I created a server app. Clicking the Run button DOESN'T RUN IT. Instead, it runs the sunflower app.

I don't know how to get the server app to run, other than painfully creating a new launch for it.

Another surprise. CHECKED MODE is still off. For some reason, I thought it was now on by default. I guess only debugging is on by default.

What's the story on launching apps (aside from the first app)?

Thanks,

-k-
////////////////////////////////////////////////////////////////////////////////////
Editor Version: 6943
////////////////////////////////////////////////////////////////////////////////////
OS: Mac OS X - x86_64 (10.6.8)
SDK installed = true
Dartium installed = true
////////////////////////////////////////////////////////////////////////////////////
<no log file available>


Changed the title to: "launch selection rather than last if selection is an application [+4]".

keertip

keertip commented on Apr 30, 2012

@keertip
Contributor

As per all the feedback, changing Run button behavior to

  • Run selection if it can be launched - either a browser or server app
  • If not, run last launched
    Added Started label.
keertip

keertip commented on Apr 30, 2012

@keertip
Contributor

Issue #2499 has been merged into this issue.

keertip

keertip commented on May 1, 2012

@keertip
Contributor
added
P1A high priority bug; for example, a single project is unusable or has many test failures
on May 1, 2012
added a commit that references this issue on Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1A high priority bug; for example, a single project is unusable or has many test failurestype-enhancementA request for a change that isn't a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @kevmoo@keertip@danrubel@lukechurch@clayberg

      Issue actions

        launch selection rather than last if selection is an application [+4] · Issue #2730 · dart-lang/sdk