Giter VIP home page Giter VIP logo

eclipse3's Introduction

eclipse3

Eclipse plugins and Dart Editor

Build Status

Getting and installing the Dart plugin

In Eclipse, choose Help > Install new software… and add this URL:

http://dart-lang.github.io/eclipse3

Providing feedback

Please file issues and feedback using the Github issue tracker.

Building

To check it out:

gclient config [email protected]:dart-lang/eclipse3.git
gclient sync
gclient runhooks

To setup your dev workspace:

cd tools/features/com.google.dart.tools.deploy.feature_releng
java -jar $ANTJAR -f build_rcp.xml -Declipse.home=$E3HOME setupDevWorkspace

To build plugins:

cd tools/features/com.google.dart.eclipse.feature_releng
java -jar $ANTJAR -f build.xml -Declipse.home=$E3HOME

To build editor:

cd tools/features/com.google.dart.tools.deploy.feature_releng
java -jar $ANTJAR -f build_rcp.xml -Declipse.home=$E3HOME

To commit:

git commit -m 'your message'
git cl upload
<repeat as necessary until lgtm>
git cl land

To resync ...

git pull

eclipse3's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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

eclipse3's Issues

BadLocationException when clicking on a debug link after using search

It appears that when eclipse reuses editor panes (e.g. clicking around in search view) and then user clicks on debug link in console, this can happen. Still working on consistent repro.

!ENTRY org.eclipse.debug.ui 4 120 2015-05-29 12:01:04.659
!MESSAGE Error logged from Debug UI:
!STACK 0
org.eclipse.jface.text.BadLocationException
at org.eclipse.jface.text.ListLineTracker.getLineInformation(ListLineTracker.java:180)
at org.eclipse.jface.text.AbstractLineTracker.getLineInformation(AbstractLineTracker.java:137)
at org.eclipse.jface.text.AbstractDocument.getLineInformation(AbstractDocument.java:929)
at org.eclipse.core.internal.filebuffers.SynchronizableDocument.getLineInformation(SynchronizableDocument.java:337)
at org.eclipse.debug.ui.console.FileLink.linkActivated(FileLink.java:102)
at org.eclipse.ui.console.TextConsoleViewer$2.handleEvent(TextConsoleViewer.java:103)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4136)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1458)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1481)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1466)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1271)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3982)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3621)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

NPE when updating markers in open editor pane

!ENTRY org.eclipse.ui 4 0 2015-05-29 09:34:09.882
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
at org.eclipse.ui.internal.views.markers.Markers.getMarkerItem(Markers.java:344)
at org.eclipse.ui.internal.views.markers.ExtendedMarkersView.setSelection(ExtendedMarkersView.java:1418)
at org.eclipse.ui.internal.views.markers.MarkerSupportInternalUtilities.showMarker(MarkerSupportInternalUtilities.java:368)
at org.eclipse.ui.views.markers.MarkerViewUtil.showMarker(MarkerViewUtil.java:100)
at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.updateMarkerViews(AbstractDecoratedTextEditor.java:2214)
at com.google.dart.tools.ui.internal.text.editor.DartEditor.updateMarkerViews(DartEditor.java:3811)
at com.google.dart.tools.ui.internal.text.editor.DartEditor.updateStatusLine(DartEditor.java:3828)
at com.google.dart.tools.ui.internal.text.editor.DartEditor.selectionChanged(DartEditor.java:3563)
at com.google.dart.tools.ui.internal.text.editor.DartEditor$EditorSelectionChangedListener.selectionChanged(DartEditor.java:1325)
at com.google.dart.tools.ui.internal.text.editor.DartEditor$DartSelectionProvider$1.selectionChanged(DartEditor.java:1307)
at org.eclipse.jface.text.TextViewer.firePostSelectionChanged(TextViewer.java:2755)
at org.eclipse.jface.text.TextViewer.firePostSelectionChanged(TextViewer.java:2703)
at org.eclipse.jface.text.TextViewer$5.run(TextViewer.java:2682)
at org.eclipse.swt.widgets.Display.timerProc(Display.java:4699)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5457)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
at org.eclipse.swt.widgets.Display.applicationNextEventMatchingMask(Display.java:4875)
at org.eclipse.swt.widgets.Display.applicationProc(Display.java:5241)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
at org.eclipse.swt.internal.cocoa.NSApplication.nextEventMatchingMask(NSApplication.java:94)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3615)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

Semicolons should be automatically inserted at the correct position by the Editor

Originally opened as dart-lang/sdk#21954

This issue was originally filed by [email protected]


The Dart editor should provide an option similar to the Java Editor in Eclipse which, when enabled, will try to place a semicolon (when typed by the user) at the correct position (i.e. usually at the end of the line).

The rules for which could be as follows:

Precondition: user has entered ;
  if the EOL doesn't have a ;, add one
  else enter the ; where the cursor is

Thanks for considering my request

The debugger should not rely on packages symlinks

Originally opened as dart-lang/sdk#21749

This issue was originally filed by @zoechi


I tried the option --no-package-symlinks mentioned here http://dartbug.com/15103#c22 but I wasn't able to use the the DartEditor debugger without the packages symlinks.

Currently every time I change a source code file the used Docker image is rebuilt and this needs to run pub get twice which takes very long (30 - 60 sec).
If the symlinks wouldn't be necessary I had more options to accelerate this process.

What steps will clearly show the issue / need for enhancement?
1.
When I connect the DartEditor debugger using menu "Run > Remote Connection..." > [OK] the app fails.

See this discussion https://groups.google.com/a/dartlang.org/d/msg/cloud/OK1nJtg7AjQ/u-GzUDI-0VIJ for more details about how to set up such a development environment.
I assume this can also be reproduced by a simple Dart project with one package dependency.

2.
3.

What is the current output?
Uncaught Error: FileSystemException: Cannot open file, path = '/app/bin/packages/path/path.dart' (OS Error: No such file or directory, errno = 2)

when I connect the debugger to the running app.

What would you like to see instead?
Should work

What version of the product are you using? On what operating system?
Dart VM version: 1.8.0-dev.4.6 (Wed Nov 26 06:04:36 2014) on "linux_x64"

Please provide any additional information below.
related to http://dartbug.com/15103

Proxy in IDE update and pub get

Originally opened as dart-lang/sdk#22084

This issue was originally filed by [email protected]


What steps will clearly show the issue / need for enhancement?

  1. Currently China has blocked the site/port to check for IDE/SDK update
  2. The pub get also is unstable.

Both will result in failure to update IDE and even worse, pub get the packages to compile a program.

Suggest we have a proxy setting in Dart so that the update and pub get can run through this proxy server.

Google Dart plugin already dead or it at death's door?

I know a lot of bugs in Google Dart plugin for Eclipse.
But judging by how goes the process of development can confidently say that the project already not paid by Google (and possible at the death's door).
Is this right?
If this is not correct then why Google does not fixes the bugs in their software?

Is not it a shame for the developers claim that everything is well, but at the same time does not do nothing for make this software better?

These committed changes are far from that can be called as a development.

prefer suggestion with exact match
Commits on Jun 12, 2015

improve pub pkg manager error log message
Commits on May 29, 2015

Link to article about building editor
Commits on May 27, 2015

update DEPS to include args4j
Commits on May 19, 2015

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

Originally opened as dart-lang/sdk#21661

This issue was originally filed by [email protected]


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.

Debugger incorrectly display values of the inherited public members

Originally opened as dart-lang/sdk#22422

This issue was originally filed by @mezoni


I am about the member "i".

============
void main() {
  var o = new Child();
  o.foo();
}

class Base {
  dynamic i;

  foo() {
    print(i);
  }
}

class Child extends Base {
  int i;

  Child() {
    i = 5;
  }
}
============

See "Screen 1":

In "Child" instance it has value "5".
In "Base" instance it also has value "5" because it inherited by "Child".

Debugger display:
Child.i : 5
Base.i : null

But at the same time when we print it from "Base" then it print 5.

See "Screen 2":
5
5


Attachment:
[Screen 2](https://storage.googleapis.com/google-code-attachments/dart/issue-22422/comment-0/Screen 2) (246.89 KB)

Content Shell as Dart Editor Panel/Internal Browser

Issue by eukreign
Originally opened as dart-lang/sdk#21682


What steps will clearly show the issue / need for enhancement?

I don't know how hard this would be to implement but if Content Shell could be embedded in Dart Editor as a Panel/Internal Browser it would allow people to write plugins in Dart that could then be used in both Dart Editor and Chrome/Chrome Dev Editor.

Looking here: http://www.eclipse.org/swt/faq.php#browserlinux it seems that WebKit is already supported somehow in Eclipse as an internal browser. Would it be possible to do the same for Content Shell/Dartium?

There are already two use cases for this today: Observatory and the Polymer UI Editor. With Content Shell available in Dart Editor those applications could be Panels.

The usefulness would be huge even if none of the Dart Editor APIs are exposed to Content Shell (Observatory and Polymer UI don't need it).

Not everyone has two monitors where they can have Dart Editor on one and browser with Observatory/Polymer UI Editor/Something else on the other.

Other plugins could be built in Dart/Content Shell, such as:

  • a test result tree renderer, code coverage, etc
  • integration with task tracking/project management apps

Method signature tooltip text is not always displayed when the cursor is inside parentheses

Originally opened as dart-lang/sdk#22272

This issue was originally filed by @Emasoft


What steps will reproduce the problem?

  1. Call a method in Dart with some parameters. For example:
        element.style.setProperty("top", value);
  2. The first time you write the method, the method parameters info box is displayed above when you are inside the parentheses.
  3. Go back to the method after a while and move the cursor inside the parentheses again. The tooltip with the method signature is not displayed.
  4. Even typing something and changing the parameters of the method doesn't trigger the method signature tooltip to being displayed.
  5. You need to move the mouse pointer on the method to see the tooltip of the method to appear. But the mouse tooltip is bigger and more verbose than just the signature popup displayed when the method is wrote for the first time.

What is the expected output?

The analyzer should ALWAYS display the method signature informations in a popup when the cursor is inside the parentheses of a method or just beyond the first parenthese.

What do you see instead?

The method signature tooltip is displayed just the first time a method call is written. Moving the cursor inside the method parentheses again doesn't show the tooltip.

What version of the product are you using?

Dart Editor version 1.8.5.release (STABLE)
Dart SDK version 1.8.5

On what operating system?

OS X Yosemite 10.10.2

Please fix this asap, because it slows down the coding process a lot. We should never be forced to leave the keyboard and get back the mouse to see a method signature details. It's a waste of time.

When completion delayed by analysis, hitting control-space should cause completions to try again

Issue by stereotype441
Originally opened as dart-lang/sdk#22097


With the recent change that causes completions to display "Analyzing; try again soon", hitting control-space should cause completions to try again.

What currently happens is that further keypresses of control-space have no effect, even if analysis is complete now, because the (bogus) completion dropdown is still displayed. The user must press escape to dismiss the bogus completion dropdown and then press control-space again. This is counter-intuitive.

dev channel update

using http://www.dartlang.org/eclipse/update/channels/dev/
not sure if my setup is wrong, but while my Dart SDK is at version 1.12.0-dev.4.0 (as shown in the Preferences dialog) the eclipse plugin still reports Dart Editor for Eclipse 1.11.0.dev_00_00 - that is at least 10 weeks old now.

Analyzer should always display the completition dropdown menu if the user is typing

Originally opened as dart-lang/sdk#22159

This issue was originally filed by @Emasoft


Analyzer should always display the completition dropdown menu if the user is typing.

Currently there are big delays in the display of the completition dropdown menu because of the index that is currently updating. But the dropdown menu should always be displayed even if the index is under update. The partial completition dropdown should just display an "updating" message or animated icon to communicate its partial and "in progress" state to the user.
Also if a dropdown menu is shown too early, because the index is not being updated yet, the user receive an erroneus information about the current available members. Forcing him to press ctrl-space again and again after some intervals is NOT the correct way to handle this. The completition dropdown menu be updated in realtime and should display to the user the current state of the index update.
Otherwise it's just impossible for the user to know what is going on, and he ends thinking that if a method or a member is not listed it doesn't exist.
It should NEVER be necessary to press ctrl-space, for two reasons:

1 - Because if the user have no clue that a completition dropdown list is incomplete, he almost certainly don't know that he need to press ctrl-space a second time. He would just assume that the first completition list is complete and start coding accordingly.

2 - Because the autocompletition system objective is to allow a quicker typing, and forcing the user to stop the current word he is typing and change the hands position to press a key combination would invalidate the very reason d'etre of the autocompletition system, making it an hindrance instead of an help.

For this reasons the best way is to ALWAYS update the dropdown completition menu in realtime, while it is open floating above the word that is being typed. An animated icon and a message like "updating.." should be always visible at the bottom or at the top of the menu if the index is currently incomplete.

Also,for the same reasons mentioned, the dropdown completition menu should ALWAYS appear instantly while the user is typing, even if the index has not been updated yet or the list is still empty. In this way the feedback of the response will be fast and responsive, and at the same time the user will be able to know the current state of the indexing process. It should always be shown, even when we start typing an empty line. For example if I start typing "v", the menu should appear and "void" should be suggested together with all methods, keywords or classes beginning with v.

Always for the same reasons, the auto completition option for some very common code structures (like declaring a class, a method, writing a property getter/setter, adding a switch or a while or if loop) should not require the user to use some contextual menu, but they should be suggested as the first entries of the completition dropdown menu together with all the other entries. Many refactoring options can also be easily integrated in the same completition dropdown menu, avoiding to the user to stop his typing streak to search for some obscure menu option.

The slow performance of eclipse is already hindering the coding process. Anticipating the display of the completition options means anticipating the needs of the user, and consequently make the coding environment much more responsive than an environment that waits the user input to act.

Eclipse plugin fails when I try to clean project.

Originally opened as dart-lang/sdk#22641

This issue was originally filed by @giry


What steps will reproduce the problem?

  1. In Eclipse: Project->clean

What is the expected output? What do you see instead?
Error log shows bunch of errors (attached below), things like: code completion, ctrl+click etc doesn't work.

What version of the product are you using?
Eclipse 4.4.1, dart plugin: 1.9.0.dev_09_01.

On what operating system?
Windows 8.1.

Please provide any additional information below.


Attachment:
eclipse.log (15.40 KB)

Remote debugging connection to a stopped Docker container stays in CLOSE_WAIT state

Originally opened as dart-lang/sdk#22250

This issue was originally filed by @zoechi


see
https://code.google.com/p/googleappengine/issues/detail?id=11519

I'm pretty sure this is not a Dart issue that the Docker container can't reuse the debug port after when restarted but I find it weird nevertheless that DartEditor keeps the connection in CLOSE_WAIT state.

The googleappengine issue linked above is closed and they seem not to see any responsibility for it.

I think it is worth a look why DartEditor debugger doesn't recognize that the remote app it was connected to isn't available anymore.

After connecting 3 times to an app running inside a Docker container and restarting the Docker container afterwards lsof -i :5005 prints

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 30840 zoechi 101u IPv6 27889117 0t0 TCP localhost:46750->localhost:5005 (CLOSE_WAIT)
java 30840 zoechi 104u IPv6 27891059 0t0 TCP localhost:46752->localhost:5005 (CLOSE_WAIT)
java 30840 zoechi 105u IPv6 27887172 0t0 TCP localhost:46755->localhost:5005 (CLOSE_WAIT)

Dart Editor version 1.8.5.release (STABLE) Dart SDK version 1.8.5 on windows64 bit does not create sample code for new projects

Originally opened as dart-lang/sdk#22720

This issue was originally filed by [email protected]


The other day, I downloaded the Dart editor, and was going to begin trying out Dart. I tried creating a template from the webapp sample, but when I clicked finish, all I got was an empty project. I though it was perhaps the computer(it was not my own and discarded it. A day later, I download the Dart editor(on my computer), and try to create some projects, but I am getting the same issue as before. Only an empty project appears.

I am running Dart Editor version 1.8.5.release (STABLE) Dart SDK version 1.8.5 on Windows 8 x64 .

Also, if it helps, here is my dump data

Editor: 1.8.5.release (2015-01-13)
OS: Windows 8 - amd64 (6.2)
JVM: 1.8.0_31

projects: 5

open dart files: 1

auto-run pub: true
localhost resolves to: 127.0.0.1
mem max/total/free: 1778 / 470 / 317 MB
thread count: 23
index: [490304 locations, 161 sources, 38274 elements]

SDK installed: true
Dartium installed: true

Please make indent configurable

Currently indent is hardwired (as I understand it) at 2 spaces. I have been a 4-spaces-for-indent programmer for decades, and I am quite used to it. In addition, my eyesight is impaired, and 2-space indentation is somewhat more difficult to read.
Please make this configurable. Thanks.

Outline often doesn't show up

Opening a new file makes the outline go blank.

Clicking tabs to switch files seems to bring it back. As does closing a file.

Dat Editor gives "could not start pub serve" when "Run in Dartium" is clicked on mac

Originally opened as dart-lang/sdk#21752

This issue was originally filed by @isaacbernat


What steps will reproduce the problem?

  1. Get any of the sample projects available loaded from folder
  2. right-click on the .html file and select "run in Dartium"

What is the expected output? What do you see instead?
I'd expect the custom Chromium to open and show me the html with the dart code running.

I get a pop-up message "could not start pub serve". But looking at the logs I get

Loading source assets...
Serving avast_ye_pirates web on http://localhost:8080
Build completed successfully

If I manually open the browser and go to http://localhost:8080 and the custom subpath I see the correct result. This is quite inconvenient, because each time I have to manually kill the pub server by doing lsof -i :8080 and kill PID. Closing the Dart editor is not enough.

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

On what operating system?
Mac OS X 10.8.5 (12F45)

What browser (if applicable)?
The default custom Chromium included in the package(?)

Please provide any additional information below.

PS: I am sorry if this has already reported. I googled that around for a while and couldn't find a solution :-/

stack trace has two levels, hard to follow program flow from within async functions

Issue by sethladd
Originally opened as dart-lang/sdk#18005


Please see attached screenshot.

An error in a Dart library caused an exception. Dart Editor stopped the program and displayed a stack trace. It is only two levels deep: AsyncCompleter (future_impl.dart) => AudioContext.anonymousclosure (AudioContext.dart)

This is a tricky spot for the developer. There's no breadcrumb to the developer's code. How do they debug this? What if they had multiple spots in their code that called into AudioContext ?

Expected: some clue that leads the developer back to the line of code in the developer's app, which eventually triggered the error.

Using Dart Editor version 1.3.0.dev_07_07 (DEV)


Attachment:
Dart_Editor.png (243.93 KB)

New Project dialog does nothing

Originally opened as dart-lang/sdk#22217

This issue was originally filed by @unicomp21


What steps will reproduce the problem?

  1. Create a new project
  2. Pick one of the templates
  3. Hit 'finish'

What is the expected output? What do you see instead?
A new skeleton project. Just a folder.

What version of the product are you using?
1.8.5

On what operating system?
win8.1

What browser (if applicable)?
chrome 40

Please provide any additional information below.

Source code auto-formatting is presented slightly differently between dart & .html files

Originally opened as dart-lang/sdk#17256

This issue was originally filed by @mavaddat


What steps will reproduce the problem?

  1. Open a .dart file and right click a line of code to notice the auto-format feature in the drop-down menu (also given shortcut key combo Ctrl + Shift + R). There is no way to call this auto-format feature from the top menu. 'Source' option in the top menu.
  2. Open a .html file and click the 'Source' top menu item to notice the auto-format feature in the drop-down menu provided (with no associated key combo). There is no ability to access this feature by right-clicking the code.

What is the expected output? What do you see instead?

Both .dart and .html files should have the ability to call the auto-formatting feature from the same place in the top menu and by right-clicking a line of text.

What version of the product are you using? On what operating system?

1.2.0 (STABLE) on Windows 8 (6.2 build 9200 revision 0)

Please provide any additional information below.

http://pic.twitter.com/dWrmlt7Ndr


Attachment:
dart.png (107.20 KB)

Ad debugger safepoint before returning from a function/method that shows the return value

Originally opened as dart-lang/sdk#22232

This issue was originally filed by @zoechi


What steps will clearly show the issue / need for enhancement?
1.

Try to debug code like
return f1(a).f2(b).f3(c).f4(d);

especially when fx() are similar one-line expression.

2.
3.

What is the current output?
Only the result of the entire expression can be examined but no way to see intermediate values.

What would you like to see instead?
A debugger safepoint just before the function/methods returns but where the return value is already available.
The return value should be show in the variables view.

What version of the product are you using? On what operating system?
Dart VM version: 1.9.0-edge.43350 (Sun Feb 1 23:45:32 2015) on "linux_x64"

Please provide any additional information below.

Analysis server overlay out of sync after typing text and then quickly undo-ing

Issue by stereotype441
Originally opened as dart-lang/sdk#22223


I just encountered a sequence of actions which caused editor to send an improper overlay state to the analysis server. Here's what I did:

  1. Clicked on the file pkg/analysis_server/lib/src/analysis_server.dart in the "files" pane of editor. My cursor was positioned at the top of the file.
  2. Typed "pub" (this was a mistake--I was intending to type Cmd-J to start an incremental search before typing "pub").
  3. Quickly realized my mistake and typed Cmd-Z to undo.
  4. Typed Cmd-J followed by "pub", which took me to the first instance of the word "pub" in the file.

At this point I noticed that my semantic highlighting was incorrect.

Looking at the analysis server log, I see that during step 2, editor sent an "analysis.updateContent" message to the server containing instructing it to add an overlay for the file, with contents containing the text "pub" that I erroneously typed. This is as expected.

However, I would have expected that to be followed by an "analysis.updateContent" message instructing the server to remove the overlay at the time I typed Cmd-Z to undo. There was no such message.

This left the server and the editor in an inconsistent state--the server thought the file had unsaved changes (the three accidentally typed characters), where as the editor thought that the file was in the "saved" state.

Speculation: perhaps the reconciler does not properly detect a transition from "unsaved" to "saved" state when that transition happens as the result of an undo.

I have saved the analyzer log. I will now see if I can reproduce the bug.

Issues Building Eclipse Plugin from Instructions

Now that #13 is fixed (thanks @keertip !), I am having new difficulties in building the editor plugin.

I'm trying to follow the instructions in the README. I'm able to run the setupDevWorkspace step. However I cannot run the next step successfully.

First I get:

BUILD FAILED
/Users/jriggins/src/java/dart-eclipse3/eclipse3/tools/features/com.google.dart.eclipse.feature_releng/build.xml:5: please create a jriggins.properties file in build-settings/ to config this build (see sample.properties)

Which is fine (however missing from the instructions). After creating a jriggins.properties file as such:

build.dir=${user.home}/src/java/dart-eclipse3/eclipse3/dart-build
source.dir=${user.home}/src/java/dart-eclipse3/eclipse3/tools

I get this failure:

BUILD FAILED
/Users/jriggins/src/java/dart-eclipse3/eclipse3/tools/features/com.google.dart.eclipse.feature_releng/build.xml:33: Source resource does not exist: /Users/jriggins/src/java/dart-eclipse3/tools/VERSION

It could be that my directory references are wrong however the only VERSION file in the code base is at:

<source-dir>/third_party/gsutil/VERSION

And its value is 3.42.

Should I create a VERSION file myself? Am I otherwise doing something wrong?

Editor's debugger requires too many "step-into" operations to get where I'm going

Issue by bwilkerson
Originally opened as dart-lang/sdk#22096


Enter the following code in a Dart file:


class C {
  List _list;

  set list(List value) {
    _list = value;
  }
}

main() {
  C c = new C();
  c.list = ['one', 'two'];
}


In Dart Editor, place a breakpoint on the second to last line and then run. When it stops, click on "step into". Nothing happens. The second time it takes you to List.isEmpty. Four more clicks will finally get you to the body of the setter. (Continuing will drop off the end of main and into system code.)

Devon says:


I think this is likely a case where we've set the dart:core library to be debuggable. We have the ability to turn on and off debugging for the core libraries, so we can disable step-in for dart:core if we think that's best. Changing it often has some non-linear effects though - it can improve the situation for some cases and make it worse in others.


That might be true, but it seems to me that it's wrong when stepping into something appears to do nothing.

Eclipse Plugin - Dartium and SDK locations.

Originally opened as dart-lang/sdk#20678

This issue was originally filed by @si-robertson


Hi guys,

Could we have an option (or options) in the Dart plugin settings to change/select the location of Dartium and the Dart SDK directories. If people already have these installed on their system they end up having to maintain multiple copies of Dartium and the Dart SDK when using the Eclipse plugin. Also, manually dropping Dartium into the Eclipse directory doesn't feel like the most sensible thing to be doing.

Thanks :)

Debugger should not step in to the creation of a literal list or map

Issue by bwilkerson
Originally opened as dart-lang/sdk#21762


I debugging code and placed a breakpoint on a line like:

  foo(x, {1:2, 3:4});

When I clicked "Step Into" to step in to the method 'foo', the debugger stopped in a method in LinkedHashMap, presumably as part of creating the map argument. Unless user code is being invoked to create the keys and/or values, I don't want to step in to the creation of the map literal.

Send Feedback stopped working

This afternoon I sent feedback, but now the button is greyed out and doesn't do anything. This is Dart Editor version 1.10.1.release (STABLE) Dart SDK version 1.10.1 on a Mac

gclient sync Fails

I'm trying to follow the build instructions in the README, however I get this when trying to run gclient sync. Am I doing something wrong?

Oh hai! You are using subversion. Chrome infra is eager to get rid of
svn support so please switch to git.
Tracking bug: http://crbug.com/475320
Request a new git repository at: 
  https://code.google.com/p/chromium/issues/entry?template=Infra-Git

________ running 'svn checkout https://dart.googlecode.com/svn/third_party/apache_ant@19997 /Users/jriggins/src/java/dart-eclipse/eclipse3/third_party/apache_ant --revision 19997 --non-interactive --ignore-externals' in '/Users/jriggins/src/java/dart-eclipse'
svn: E175002: Unable to connect to a repository at URL 'https://dart.googlecode.com/svn/third_party/apache_ant'
svn: E175002: OPTIONS of 'https://dart.googlecode.com/svn/third_party/apache_ant': Server certificat
________ running 'svn checkout https://dart.googlecode.com/svn/third_party/eclipse@38742 /Users/jriggins/src/java/dart-eclipse/eclipse3/third_party/eclipse --revision 38742 --non-interactive --ignore-externals' in '/Users/jriggins/src/java/dart-eclipse'
svn: Ee 1v750e02: Unabrificle tation faileo connect td: issoue r is nota repo sitortrusyted (https at ://dart.gooUgRL 'httlps://decodarte.g.com)
ooglecode.com/svn/third_party/eclipse'
svn: E175002: OPTIONS of 'https://dart.googlecode.com/svn/third_party/eclipse': Server certificate verification failed: issuer is not trusted (https://dart.googlecode.com)

________ running 'svn checkout https://dart.googlecode.com/svn/third_party/args4j@19997 /Users/jriggins/src/java/dart-eclipse/eclipse3/third_party/args4j --revision 19997 --non-interactive --ignore-externals' in '/Users/jriggins/src/java/dart-eclipse'
svn: E
________ running 'svn checkout https://dart.googlecode.com/svn/third_party/android_adb@36744 /Users/jriggins/src/java/dart-eclipse/eclipse3/third_party/android_adb --revision 36744 --non-interactive --ignore-externals' in '/Users/jriggins/src/java/dart-eclipse'
svn: E117755000022::  UnUnabable to cle to connect to a repository at URL 'https://dart.googlecode.com/svno
________ running 'svn checkout https://dart.googlecode.com/svn/third_party/apache_http@37872 /Users/jriggins/src/java/dart-eclipse/eclipse3/third_party/apache_http --revision 37872 --non-interactive --ignore-externals' in '/Users/jriggins/src/java/dart-eclipse'
s/vtnn:hinecrd_par Ett17 5y0to/02a:r ags4j 'r eU
psovnabn: Eles1 i7to connect to5t0 a 02or:yr  OPTIONat eUSp RLosito orfy 'https' h:/tt/daarpstt:/ /Udart.R
________ running 'svn checkout https://dart.googlecode.com/svn/third_party/apache_compress@19997 /Users/jriggins/src/java/dart-eclipse/eclipse3/third_party/apache_compress --revision 19997 --non-interactive --ignore-externals' in '/Users/jriggins/src/java/dart-eclipse'
sg.ooLg goo'glven: clecohdEte.co1tm/o7spvs5n:/d//t0dh0ae.2cor: m/svt.nir
________ running 'svn checkout https://dart.googlecode.com/svn/third_party/commons-io@19997 /Users/jriggins/src/java/dart-eclipse/eclipse3/third_party/commons-io --revision 19997 --non-interactive --ignore-externals' in '/Users/jriggins/src/java/dart-eclipse'

________ running 'svn checkout https://dart.googlecode.com/svn/third_party/commons-lang@33092 /Users/jriggins/src/java/dart-eclipse/eclipse3/third_party/commons-lang --revision 33092 --non-interactive --ignore-externals' in '/Users/jriggins/src/java/dart-eclipse'
sUngsaovdvble/t _phn:iaontr g:d_olec Ertpod1coa E7r1y750t50/0e.cnnyoa2m0/:nar/drosvgs Una4j'i:ed Sctn_a to/te 2: ardbU hb'inrervadbple _p
svteonsor:l aeico to  rcEnne17ry 50etctra t0tyt2:tiof o /U  icOcRoapPTILatOna aNS cho e'ef_htth vnercttep tep'
os 'itro htifistavpcn s:/t:repoao/dsp Easti:ito17r/5/rry oynt d0atf. a0ag Ui2ltar: Oet RL.gooPTgURldIe L: 'cOh o'htoNodgtplSe.set icoostcof s:/ps'hdut/:dme/a/tp/r srdst:av.is/rng /tno/thi.t ored.go_cdtroauspogrtat.m/oglgrtsevceonolyed/ (do/ahtecn.cthgdooditrerdm_./pcopaolerisds_:m/ac/sodvbvtn/d/nt':e./yc t/dhhiSoraaideprmatr/rsche__vvnc.omdgo/t_eprphi pogcertrardre_tlpeyairf/icass'cr
scttyyoao/mdt/emavecpa.o cnnsvc-eroi:ohe Eomi'
_mosfnh1vntt:m7 ip)cas5'tiE-o1ln7:
5a00n 00g' 2: 
2:s vSOnOfePai:lrPTeTIvdO er :E1 NcSi7 s5seorIOu0NftiS0fe  'ioh2:tt cOpaPsfte r T:/v/d 'IaehrrittOi.ts npNfiSscg:o/ ooao/fgttd ail 'trherotct.ogdontups:ost feega/d./icd laol(mehe/drttt:c i.pssgo:oossg/du/eleevdac.rcronot. goodme/istgl/he cs.ncvoioodn/erd.c_thotiprdmm/s)_ van/
rthpiatrdrtty_yr//uspatead (pcoarthymcthe/motps:_nscc-/ooiom/p'dmr:ame onsSesr-s'r:vlter.a cngeg' roSt:eior Sfigvecaervtrel re ce vcoedreetrifi.cccaitfeiero tcamvte)i
irfifionicatc ae fvtaieriifoinlc edfa:ati lioinsesu der:f  iissasi notleu edtr: ri su istneodts  su(treruhst ttpeids:/ /(sdhtat rnt.pogosotg l:ect/rust/oddaertde. (.coghoottglemcp)s
://daode.com)
rt.googlecode.com)

eclipse3/third_party/apache_ant (ERROR)
----------------------------------------
[0:00:07] Started.
----------------------------------------
Error: Command 'svn checkout https://dart.googlecode.com/svn/third_party/apache_ant@19997 /Users/jriggins/src/java/dart-eclipse/eclipse3/third_party/apache_ant --revision 19997 --non-interactive --ignore-externals' returned non-zero exit status 1 in /Users/jriggins/src/java/dart-eclipse

Add "Open Type" or "Open Resource" navigation feature

Originally opened as dart-lang/sdk#22132

This issue was originally filed by [email protected]


DartEditor supports F3 to follow a reference to the source code for that type, which is great if you already have that type being used in the active editor.

It would nice to be able to launch a dialog that lets the user type in all or part of a type name (or file name) and then open the matching item.

In regular Eclipse these features are located off the Navigate menu and are called Open Type and Open Resource, respectively.

DartEditor needs to bring back being able to view getter properties

Originally opened as dart-lang/sdk#19506

This issue was originally filed by [email protected]


What steps will reproduce the problem?

  1. Create a class with a bunch of getters and setters.
  2. Debug it to see the value of a getter

What is the expected output? What do you see instead?
Debugger should show the getter values
Debugger does not show any value that is a method call.

What version of the product are you using? On what operating system?

Please provide any additional information below.
I understand why this might be done but can we add a checkbox or an option/preferences to enable seeing the value of getters much like it was a few weeks ago.

C1

Dart Editor - Automatic inserting of empty line at EOF

Originally opened as dart-lang/sdk#21812

This issue was originally filed by @si-robertson


Could we have a Dart Editor option that automatically inserts an empty line at the end of text/Dart files if one does not exist?

The reason for this request is mainly related to code repositories. Git, for example, will complain if a text file does not end with an empty line. It is easy enough to insert an empty line manually but it is also an easy thing to overlook when working with many files, so having the editor take care of this would be helpful.

Thanks.

Plugins looking for libraries.dart file

Now that the plugins is using the Analysis Server, it no longer needs to look into the sdk and pharse the dart: libraries. Throws this exception if the libraries.dart file is not present in the old location

java.io.FileNotFoundException: /usr/local/google/eclipse45_keertip/stable/dart-sdk/lib/_internal/libraries.dart (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:138)
at java.io.FileReader.(FileReader.java:72)
at com.google.dart.engine.utilities.io.FileUtilities.getContents(FileUtilities.java:62)
at com.google.dart.engine.sdk.DirectoryBasedDartSdk.initialLibraryMap(DirectoryBasedDartSdk.java:577)
at com.google.dart.engine.sdk.DirectoryBasedDartSdk.(DirectoryBasedDartSdk.java:268)
at com.google.dart.engine.sdk.DirectoryBasedDartSdk.(DirectoryBasedDartSdk.java:256)
at com.google.dart.tools.core.model.DartSdkManager.initSdk(DartSdkManager.java:400)
at com.google.dart.tools.core.model.DartSdkManager.(DartSdkManager.java:176)
at com.google.dart.tools.core.model.DartSdkManager.(DartSdkManager.java:104)
at com.google.dart.tools.core.DartCore.start(DartCore.java:1994)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:941)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:318)
at org.eclipse.osgi.container.Module.doStart(Module.java:571)

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.