Skip to content
This repository was archived by the owner on Sep 15, 2022. It is now read-only.

Debugging broken after latest Dart roll #588

Closed
jakobr-google opened this issue Aug 3, 2016 · 2 comments
Closed

Debugging broken after latest Dart roll #588

jakobr-google opened this issue Aug 3, 2016 · 2 comments

Comments

@jakobr-google
Copy link
Contributor

I get the following error when I try to debug a target using eg. 'dartino debug samples/stm32f411re-nucleo/volume.dart on tty /dev/ttyACM0':

* the entire message you see here (including the full stack trace below)

Relative paths for dart extensions are not supported: 'src/serial_port'
Session 'local' was terminated.

Looks like path resolution for external libraries was changed recently on the Dart side, and now disallows relative paths. The third party serial_port library uses import 'dart-ext:src/serial_port';.

@karlklose
Copy link
Contributor

We need to change the location of the serial port library in the same way I
did with the other libraries in the roll.

On Wed, Aug 3, 2016 at 10:28 AM, jakobr-google [email protected]
wrote:

I get the following error when I try to debug a target using eg. 'dartino
debug samples/stm32f411re-nucleo/volume.dart on tty /dev/ttyACM0':

  • the entire message you see here (including the full stack trace below)

Relative paths for dart extensions are not supported: 'src/serial_port'
Session 'local' was terminated.

Looks like path resolution for external libraries was changed recently on
the Dart side, and now disallows relative paths. The third party
serial_port library uses import 'dart-ext:src/serial_port';.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#588, or mute the thread
https://github.com/notifications/unsubscribe-auth/AFq9yLlSLGgHMSYylHQ1IlGBe35Goq1Kks5qcFEggaJpZM4Jba--
.

@sgjesse sgjesse closed this as completed in af933f9 Aug 3, 2016
@sgjesse
Copy link
Contributor

sgjesse commented Aug 3, 2016

Thanks for the info Karl. I will create a CL.

On Wed, Aug 3, 2016 at 1:29 PM, karlklose [email protected] wrote:

We need to change the location of the serial port library in the same way I
did with the other libraries in the roll.

On Wed, Aug 3, 2016 at 10:28 AM, jakobr-google [email protected]
wrote:

I get the following error when I try to debug a target using eg. 'dartino
debug samples/stm32f411re-nucleo/volume.dart on tty /dev/ttyACM0':

  • the entire message you see here (including the full stack trace below)

Relative paths for dart extensions are not supported: 'src/serial_port'
Session 'local' was terminated.

Looks like path resolution for external libraries was changed recently on
the Dart side, and now disallows relative paths. The third party
serial_port library uses import 'dart-ext:src/serial_port';.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#588, or mute the thread
<
https://github.com/notifications/unsubscribe-auth/AFq9yLlSLGgHMSYylHQ1IlGBe35Goq1Kks5qcFEggaJpZM4Jba--

.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#588 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABSBqkr8bou-Xm_75USFPK7mxE8MbQIyks5qcHuegaJpZM4Jba--
.

dnfield pushed a commit to dnfield/flutter_packages that referenced this issue Oct 18, 2018
The latest version of the Dart VM require native code for native
extensions to be in the same directory as the Dart file inporting it.

Closes flutter#588

BUG= dart-archive/sdk#588

[email protected]
BUG=

Review URL: https://codereview.chromium.org/2206873004 .
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants