Discussion:
[dart-misc] dartfmt paths conflicting?
'Samuel Rawlins' via Dart Misc
2017-02-03 21:54:16 UTC
Permalink
If I try to activate the latest dart_style:

$ pub global activate dart_style
Package dart_style is currently active at version 0.2.15.
Resolving dependencies...
...
Precompiled dart_style:format.
Installed executables dartfmt and dartformat.
Activated dart_style 0.2.15.

Then run it:

$ dartfmt --version
0.2.14

It's not the new version :(

$ which dartfmt
/usr/local/bin/dartfmt
$ dart --version
Dart VM version: 1.22.0-dev.9.0 (Thu Jan 19 03:04:50 2017) on "macos_x64"
$ which dart
/usr/local/bin/dart
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
'Harry Terkelsen' via Dart Misc
2017-02-03 21:59:12 UTC
Permalink
pub global activate dart_style only updates the dartfmt in ~/.pub-cache/bin,
not the one included in the Dart SDK. You will need to put ~/.pub-cache/bin
before the Dart SDK in your $PATH.

On Fri, Feb 3, 2017 at 1:54 PM 'Samuel Rawlins' via Dart Misc <
Post by 'Samuel Rawlins' via Dart Misc
$ pub global activate dart_style
Package dart_style is currently active at version 0.2.15.
Resolving dependencies...
...
Precompiled dart_style:format.
Installed executables dartfmt and dartformat.
Activated dart_style 0.2.15.
$ dartfmt --version
0.2.14
It's not the new version :(
$ which dartfmt
/usr/local/bin/dartfmt
$ dart --version
Dart VM version: 1.22.0-dev.9.0 (Thu Jan 19 03:04:50 2017) on "macos_x64"
$ which dart
/usr/local/bin/dart
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
'Samuel Rawlins' via Dart Misc
2017-02-03 21:59:55 UTC
Permalink
Bam! Thanks

On Fri, Feb 3, 2017 at 1:59 PM, 'Harry Terkelsen' via Dart Misc <
Post by 'Harry Terkelsen' via Dart Misc
pub global activate dart_style only updates the dartfmt in
~/.pub-cache/bin, not the one included in the Dart SDK. You will need to
put ~/.pub-cache/bin before the Dart SDK in your $PATH.
On Fri, Feb 3, 2017 at 1:54 PM 'Samuel Rawlins' via Dart Misc <
Post by 'Samuel Rawlins' via Dart Misc
$ pub global activate dart_style
Package dart_style is currently active at version 0.2.15.
Resolving dependencies...
...
Precompiled dart_style:format.
Installed executables dartfmt and dartformat.
Activated dart_style 0.2.15.
$ dartfmt --version
0.2.14
It's not the new version :(
$ which dartfmt
/usr/local/bin/dartfmt
$ dart --version
Dart VM version: 1.22.0-dev.9.0 (Thu Jan 19 03:04:50 2017) on "macos_x64"
$ which dart
/usr/local/bin/dart
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Loading...