Discussion:
[dart-misc] Pub or IntelliJ problem: The local content of the "lib" folder of many packages was removed
Gen
2015-10-21 09:26:14 UTC
Permalink
Hi,

I ran the simplest test code from here https://github.com/dart-lang/test
First I had used IntelliJ to downlaod pacakges with the pubspec.yaml file.
Then I had removed the packages directory.
Then I had used "pub upgrade --no-package-symlinks" on the Windows 10
command line.
AFAIR, the test code still worked then.

After that I had used pub upgrade with and without "--no-package-symlinks"
and removed the packages folder in my project several times.
Maybe this provoked that the content of the "lib" directory of at least the
following packages had been removed:
test 0.12.5+1
path 1.3.6
matcher 0.12.0+1
async 1.3.0

I guess this forum is the wrong place for such reports but I have not found
any better place.
--
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

To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Günter Zöchbauer
2015-10-21 10:45:28 UTC
Permalink
Not sure what you actually want to report.
If your pub cache got corrupted because of how symlinks “work" on Windows, you can fix it by running 'pub cache repair'
Post by Gen
Hi,
I ran the simplest test code from here https://github.com/dart-lang/test
First I had used IntelliJ to downlaod pacakges with the pubspec.yaml file.
Then I had removed the packages directory.
Then I had used "pub upgrade --no-package-symlinks" on the Windows 10 command line.
AFAIR, the test code still worked then.
After that I had used pub upgrade with and without "--no-package-symlinks" and removed the packages folder in my project several times.
test 0.12.5+1
path 1.3.6
matcher 0.12.0+1
async 1.3.0
I guess this forum is the wrong place for such reports but I have not found any better place.
--
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

To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Gen
2015-10-21 11:12:51 UTC
Permalink
ok. I just thought it might be useful to know about this weird problem.
Symbolic links on Windows do work and do not remove the linked (downloaded)
file.
If the handling of symbolic links by pub or IntelliJ is indeed the problem
then better remove that mechanism rather sooner than later.
It might be useful to have "pub repair" in addition to "pub cache repair".
At first I had also expected that "pub upgrade" would verify the cache and
add or replace files if the cache differs from the source.
Post by Günter Zöchbauer
Not sure what you actually want to report.
If your pub cache got corrupted because of how symlinks “work" on Windows,
you can fix it by running 'pub cache repair'
Post by Gen
Hi,
I ran the simplest test code from here https://github.com/dart-lang/test
First I had used IntelliJ to downlaod pacakges with the pubspec.yaml
file.
Post by Gen
Then I had removed the packages directory.
Then I had used "pub upgrade --no-package-symlinks" on the Windows 10
command line.
Post by Gen
AFAIR, the test code still worked then.
After that I had used pub upgrade with and without
"--no-package-symlinks" and removed the packages folder in my project
several times.
Post by Gen
Maybe this provoked that the content of the "lib" directory of at least
test 0.12.5+1
path 1.3.6
matcher 0.12.0+1
async 1.3.0
I guess this forum is the wrong place for such reports but I have not
found any better place.
--
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

To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Günter Zöchbauer
2015-10-21 11:38:17 UTC
Permalink
`pub upgrade` only analyzes the version constraints and tries to find the
newest versions that fulfill the constraints. If one isn't available
locally already pub fetches it from where it's hosted.
There is no reason for `pub upgrade` to check any content of cached
libraries. There is no reason to assume they are corrupted.

What is `pub repair` actually supposed to do?
Post by Gen
ok. I just thought it might be useful to know about this weird problem.
Symbolic links on Windows do work and do not remove the linked
(downloaded) file.
If the handling of symbolic links by pub or IntelliJ is indeed the problem
then better remove that mechanism rather sooner than later.
It might be useful to have "pub repair" in addition to "pub cache repair".
At first I had also expected that "pub upgrade" would verify the cache and
add or replace files if the cache differs from the source.
Post by Günter Zöchbauer
Not sure what you actually want to report.
If your pub cache got corrupted because of how symlinks “work" on
Windows, you can fix it by running 'pub cache repair'
Post by Gen
Hi,
I ran the simplest test code from here
https://github.com/dart-lang/test
Post by Gen
First I had used IntelliJ to downlaod pacakges with the pubspec.yaml
file.
Post by Gen
Then I had removed the packages directory.
Then I had used "pub upgrade --no-package-symlinks" on the Windows 10
command line.
Post by Gen
AFAIR, the test code still worked then.
After that I had used pub upgrade with and without
"--no-package-symlinks" and removed the packages folder in my project
several times.
Post by Gen
Maybe this provoked that the content of the "lib" directory of at least
test 0.12.5+1
path 1.3.6
matcher 0.12.0+1
async 1.3.0
I guess this forum is the wrong place for such reports but I have not
found any better place.
--
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

To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Gen
2015-10-21 11:59:50 UTC
Permalink
Post by Günter Zöchbauer
What is `pub repair` actually supposed to do?
The same as "pub cache repair".
Post by Günter Zöchbauer
`pub upgrade` only analyzes the version constraints and tries to find the
newest versions that fulfill the constraints. If one isn't available
locally already pub fetches it from where it's hosted.
There is no reason for `pub upgrade` to check any content of cached
libraries. There is no reason to assume they are corrupted.
What is `pub repair` actually supposed to do?
Post by Gen
ok. I just thought it might be useful to know about this weird problem.
Symbolic links on Windows do work and do not remove the linked
(downloaded) file.
If the handling of symbolic links by pub or IntelliJ is indeed the
problem then better remove that mechanism rather sooner than later.
It might be useful to have "pub repair" in addition to "pub cache repair".
At first I had also expected that "pub upgrade" would verify the cache
and add or replace files if the cache differs from the source.
Post by Günter Zöchbauer
Not sure what you actually want to report.
If your pub cache got corrupted because of how symlinks “work" on
Windows, you can fix it by running 'pub cache repair'
Post by Gen
Hi,
I ran the simplest test code from here
https://github.com/dart-lang/test
Post by Gen
First I had used IntelliJ to downlaod pacakges with the pubspec.yaml
file.
Post by Gen
Then I had removed the packages directory.
Then I had used "pub upgrade --no-package-symlinks" on the Windows 10
command line.
Post by Gen
AFAIR, the test code still worked then.
After that I had used pub upgrade with and without
"--no-package-symlinks" and removed the packages folder in my project
several times.
Post by Gen
Maybe this provoked that the content of the "lib" directory of at
test 0.12.5+1
path 1.3.6
matcher 0.12.0+1
async 1.3.0
I guess this forum is the wrong place for such reports but I have not
found any better place.
--
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

To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Günter Zöchbauer
2015-10-21 12:07:09 UTC
Permalink
Post by Günter Zöchbauer
What is `pub repair` actually supposed to do?
The same as "pub cache repair".
I think it would be confusing to have two commands that do the same.
Post by Günter Zöchbauer
Post by Günter Zöchbauer
`pub upgrade` only analyzes the version constraints and tries to find the
newest versions that fulfill the constraints. If one isn't available
locally already pub fetches it from where it's hosted.
There is no reason for `pub upgrade` to check any content of cached
libraries. There is no reason to assume they are corrupted.
What is `pub repair` actually supposed to do?
Post by Gen
ok. I just thought it might be useful to know about this weird problem.
Symbolic links on Windows do work and do not remove the linked
(downloaded) file.
If the handling of symbolic links by pub or IntelliJ is indeed the
problem then better remove that mechanism rather sooner than later.
It might be useful to have "pub repair" in addition to "pub cache repair".
At first I had also expected that "pub upgrade" would verify the cache
and add or replace files if the cache differs from the source.
Post by Günter Zöchbauer
Not sure what you actually want to report.
If your pub cache got corrupted because of how symlinks “work" on
Windows, you can fix it by running 'pub cache repair'
Post by Gen
Hi,
I ran the simplest test code from here
https://github.com/dart-lang/test
Post by Gen
First I had used IntelliJ to downlaod pacakges with the pubspec.yaml
file.
Post by Gen
Then I had removed the packages directory.
Then I had used "pub upgrade --no-package-symlinks" on the Windows 10
command line.
Post by Gen
AFAIR, the test code still worked then.
After that I had used pub upgrade with and without
"--no-package-symlinks" and removed the packages folder in my project
several times.
Post by Gen
Maybe this provoked that the content of the "lib" directory of at
test 0.12.5+1
path 1.3.6
matcher 0.12.0+1
async 1.3.0
I guess this forum is the wrong place for such reports but I have not
found any better place.
--
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

To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Alexander Doroshko
2015-10-21 11:49:59 UTC
Permalink
Unfortunately when you delete symlink in IntelliJ IDEA it also deletes
the original file. For now you should avoid doing this manually. 'Pub
cache repair' will help.
Since Dart SDK 1.14 there will be no more 'packages' folder next to
pubspec.yaml, so the problem will become obsolete.
Post by Gen
Hi,
I ran the simplest test code from here https://github.com/dart-lang/test
First I had used IntelliJ to downlaod pacakges with the pubspec.yaml file.
Then I had removed the packages directory.
Then I had used "pub upgrade --no-package-symlinks" on the Windows 10
command line.
AFAIR, the test code still worked then.
After that I had used pub upgrade with and without
"--no-package-symlinks" and removed the packages folder in my project
several times.
Maybe this provoked that the content of the "lib" directory of at
test 0.12.5+1
path 1.3.6
matcher 0.12.0+1
async 1.3.0
--
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

To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Gen
2015-10-21 12:00:22 UTC
Permalink
Thanks for the answer.
Post by Alexander Doroshko
Unfortunately when you delete symlink in IntelliJ IDEA it also deletes
the original file. For now you should avoid doing this manually. 'Pub
cache repair' will help.
Since Dart SDK 1.14 there will be no more 'packages' folder next to
pubspec.yaml, so the problem will become obsolete.
Post by Gen
Hi,
I ran the simplest test code from here https://github.com/dart-lang/test
First I had used IntelliJ to downlaod pacakges with the pubspec.yaml
file.
Post by Gen
Then I had removed the packages directory.
Then I had used "pub upgrade --no-package-symlinks" on the Windows 10
command line.
AFAIR, the test code still worked then.
After that I had used pub upgrade with and without
"--no-package-symlinks" and removed the packages folder in my project
several times.
Maybe this provoked that the content of the "lib" directory of at
test 0.12.5+1
path 1.3.6
matcher 0.12.0+1
async 1.3.0
--
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

To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
'Natalie Weizenbaum' via Dart Misc
2015-10-21 19:39:44 UTC
Permalink
For reference, the --no-package-symlinks flag is not currently officially
supported and shouldn't be used for anything more than just playing around.
Post by Gen
Hi,
I ran the simplest test code from here https://github.com/dart-lang/test
First I had used IntelliJ to downlaod pacakges with the pubspec.yaml file.
Then I had removed the packages directory.
Then I had used "pub upgrade --no-package-symlinks" on the Windows 10
command line.
AFAIR, the test code still worked then.
After that I had used pub upgrade with and without "--no-package-symlinks"
and removed the packages folder in my project several times.
Maybe this provoked that the content of the "lib" directory of at least
test 0.12.5+1
path 1.3.6
matcher 0.12.0+1
async 1.3.0
I guess this forum is the wrong place for such reports but I have not
found any better place.
--
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
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

To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Loading...