dart-archive / eclipse3

DEPRECATED - NO LONGER maintained/supported - Eclipse plugins and Dart Editor
8 stars 6 forks source link

DartEditor: chrome app: "run" from foo.dart runs as web app #27

Open DartBot opened 9 years ago

DartBot commented 9 years ago

Originally opened as https://github.com/dart-lang/sdk/issues/21661

This issue was originally filed by dhasenan@gmail.com


What steps will reproduce the problem?

  1. Create a new chrome app project "foo"
  2. Open the main dart file "foo.dart"
  3. Hit Ctrl+R to run the app

What is the expected output? I expect dartium to launch with my chrome app running straight away. Essentially: dart-sdk/chromium/chrome --load-and-launch-app=path/to/my/project/web

What do you see instead? DartEditor starts a web server and opens dartium, pointing it at localhost:8081/foo.html.

What version of the product are you using? Dart Editor version 1.7.2.release (STABLE) Dart SDK version 1.7.2

On what operating system? Linux Mint 17

Please provide any additional information below. A chrome app will package up everything in its folder, so maybe it would be best to consider everything in the same folder as manifest.json as part of a chrome app for the purposes of determining which run configurations to generate automatically.

Also, I'm grateful for this bug template.

DartBot commented 9 years ago

This comment was originally written by @zoechi


As far as I remember you need to run the manifest file from DartEditor to launch it as Chrome app.

DartBot commented 9 years ago

This comment was originally written by dhasenan@gmail.com


That's what I'm doing as a workaround. It's just that I'm very rarely editing manifest.json, but I have to keep it open and visible so I can switch to it and run the correct configuration. Even that wouldn't be too annoying if it at least didn't do something wrong when I tried running a different file but instead did nothing.

DartBot commented 9 years ago

This comment was originally written by @zoechi


Do you have enabled     Menu > Run > Always Run Last Launch enabled? (don't know if this is supposed to work with Chrome app launch)

DartBot commented 9 years ago

This comment was originally written by dhasenan@gmail.com


That does the right thing.

DartBot commented 9 years ago

Comment by floitschG


Added Area-Editor, Triaged labels.

DartBot commented 9 years ago

Comment by clayberg


Set owner to @keertip. Removed Priority-Unassigned label. Added Priority-Medium label.