Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error after writing \$ in a string literal #908

Closed
danrubel opened this issue Dec 19, 2011 · 4 comments
Closed

Error after writing \$ in a string literal #908

danrubel opened this issue Dec 19, 2011 · 4 comments
Assignees

Comments

@danrubel
Copy link

[user feedback]
floitsch:
Error after writing "" in a string literal.

////////////////////////////////////////////////////////////////////////////////////
Editor Version: 2562
OS: Linux - amd64
////////////////////////////////////////////////////////////////////////////////////

       at java.lang.reflect.Method.invoke(Method.java:616)
       at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
       at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
       at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
       at org.eclipse.equinox.launcher.Main.main(Main.java:1386)

!ENTRY org.eclipse.ui 4 0 2011-12-19 16:04:20.231

!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.IllegalArgumentException: Argument not valid
       at org.eclipse.swt.SWT.error(SWT.java:4263)
       at org.eclipse.swt.SWT.error(SWT.java:4197)
       at org.eclipse.swt.SWT.error(SWT.java:4168)
       at org.eclipse.swt.custom.StyledText.getBidiSegments(StyledText.java:4776)
       at org.eclipse.swt.custom.StyledTextRenderer.getTextLayout(StyledTextRenderer.java:789)
       at org.eclipse.swt.custom.StyledTextRenderer.getTextLayout(StyledTextRenderer.java:720)
       at org.eclipse.swt.custom.StyledTextRenderer.calculate(StyledTextRenderer.java:211)
       at org.eclipse.swt.custom.StyledTextRenderer.calculateClientArea(StyledTextRenderer.java:229)
       at org.eclipse.swt.custom.StyledText.calculateTopIndex(StyledText.java:1630)
       at org.eclipse.swt.custom.StyledText.scrollVertical(StyledText.java:7913)
       at org.eclipse.swt.custom.StyledText.handleVerticalScroll(StyledText.java:6311)
       at org.eclipse.swt.custom.StyledText$9.handleEvent(StyledText.java:5667)

------------------- snip ---------------------------
!ENTRY org.eclipse.jface 4 2 2011-12-19 16:04:21.799
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".

!STACK 0
java.lang.IllegalArgumentException: Argument not valid
       at org.eclipse.swt.SWT.error(SWT.java:4263)
       at org.eclipse.swt.SWT.error(SWT.java:4197)
       at org.eclipse.swt.SWT.error(SWT.java:4168)
       at org.eclipse.swt.custom.StyledText.getBidiSegments(StyledText.java:4776)
       at org.eclipse.swt.custom.StyledTextRenderer.getTextLayout(StyledTextRenderer.java:789)
       at org.eclipse.swt.custom.StyledTextRenderer.getTextLayout(StyledTextRenderer.java:720)
       at org.eclipse.swt.custom.StyledTextRenderer.calculate(StyledTextRenderer.java:211)
       at org.eclipse.swt.custom.StyledTextRenderer.calculateClientArea(StyledTextRenderer.java:229)
       at org.eclipse.swt.custom.StyledText.resetCache(StyledText.java:7791)
       at org.eclipse.swt.custom.StyledText.redrawRange(StyledText.java:7456)
       at org.eclipse.jface.text.source.MatchingCharacterPainter.draw(MatchingCharacterPainter.java:199)
       at org.eclipse.jface.text.source.MatchingCharacterPainter.handleDrawRequest(MatchingCharacterPainter.java:162)
       at org.eclipse.jface.text.source.MatchingCharacterPainter.paint(MatchingCharacterPainter.java:261)
       at org.eclipse.jface.text.PaintManager.paint(PaintManager.java:298)
       at org.eclipse.jface.text.PaintManager.selectionChanged(PaintManager.java:337)
       at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:164)
       at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
       at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
       at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
       at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:162)
       at org.eclipse.jface.text.TextViewer.fireSelectionChanged(TextViewer.java:2732)
       at org.eclipse.jface.text.TextViewer.selectionChanged(TextViewer.java:2711)
       at org.eclipse.jface.text.TextViewer$4.widgetSelected(TextViewer.java:1830)
       at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)

       at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
       at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
       at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282)
       at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1267)
       at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1061)
       at org.eclipse.swt.custom.StyledText.sendSelectionEvent(StyledText.java:8035)
       at org.eclipse.swt.custom.StyledText.clearSelection(StyledText.java:1710)
       at org.eclipse.swt.custom.StyledText.doMouseLocationChange(StyledText.java:2811)
       at org.eclipse.swt.custom.StyledText.handleMouseDown(StyledText.java:6002)
       at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:5637)

@floitschG
Copy link
Contributor

Hmm. Not sure what happened here. The report should have said: "error after writing "$" in a string literal.
Anyways I think I found a way to reproduce:
start with a string literal as follows: " $foo ".
Now try to change this to " $$foo ". In my case I get a nasty error.

1 similar comment
@floitschG
Copy link
Contributor

Hmm. Not sure what happened here. The report should have said: "error after writing "$" in a string literal.
Anyways I think I found a way to reproduce:
start with a string literal as follows: " $foo ".
Now try to change this to " $$foo ". In my case I get a nasty error.

@bwilkerson
Copy link
Member

Set owner to @bwilkerson.
Added Started label.

@bwilkerson
Copy link
Member

Fixed by http://codereview.chromium.org/8956031/


Added Fixed label.
Changed the title to: "Error after writing $ in a string literal".

copybara-service bot pushed a commit that referenced this issue Apr 6, 2023
Revisions updated by `dart tools/rev_sdk_deps.dart`.

http (https://github.com/dart-lang/http/compare/ffb4438..877f134):
  877f134  2023-04-06  Kevin Moore  latest CI actions (#908)

source_span (https://github.com/dart-lang/source_span/compare/b739fbf..905a167):
  905a167  2023-04-05  Natalie Weizenbaum  Add public access to a SourceFile's code units (#93)
  1806578  2023-04-05  Devon Carew  blast_repo fixes (#96)

sync_http (https://github.com/dart-lang/sync_http/compare/36a1bd0..660ad87):
  660ad87  2023-04-05  Kevin Moore  blast_repo fixes (#35)

tools (https://github.com/dart-lang/tools/compare/0304fbb..cd799be):
  cd799be  2023-04-06  Daco Harkes  [cli_config] Support non-String map keys (#73)

webdev (https://github.com/dart-lang/webdev/compare/0a2804b..22b34e3):
  22b34e35  2023-04-05  Elliott Brooks  Reset DWDS to `19.0.1-dev` after release (#2076)
  e93ad39b  2023-04-05  Elliott Brooks  Prep Webdev for release to `3.0.4` (#2075)

Change-Id: Id9413473ced284fc3479507d1fe06135404566f3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/293967
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Auto-Submit: Devon Carew <devoncarew@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants