dart-archive / sdk

The Dartino project was an experiment seeking to improve productivity when writing application code for embedded devices.
https://dartino.org
Other
332 stars 36 forks source link

Debugging broken after latest Dart roll #588

Closed jakobr-google closed 8 years ago

jakobr-google commented 8 years ago

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 commented 8 years ago

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 notifications@github.com 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 https://github.com/dartino/sdk/issues/588, or mute the thread https://github.com/notifications/unsubscribe-auth/AFq9yLlSLGgHMSYylHQ1IlGBe35Goq1Kks5qcFEggaJpZM4Jba-- .

sgjesse commented 8 years ago

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

On Wed, Aug 3, 2016 at 1:29 PM, karlklose notifications@github.com 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 notifications@github.com 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 https://github.com/dartino/sdk/issues/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 https://github.com/dartino/sdk/issues/588#issuecomment-237212037, or mute the thread https://github.com/notifications/unsubscribe-auth/ABSBqkr8bou-Xm_75USFPK7mxE8MbQIyks5qcHuegaJpZM4Jba-- .