Danny,
I can't find the details now (I can't remember where I mentioned it), but
Post by Danny Tuppenyit was something along the lines of packages in the SDK relying on each
other but pubspecs had no paths, so running "pub get" would result in
pulling packages from pub when they needed to be built from all the local
code.
Correct. The simple answer is: don't run pub when developing code in the
SDK. If you have previously done so, then delete every `.packages` file
(and `packages` directory) in your SDK checkout *except* the `.packages`
file at the root of the checkout. That's the file that specifies the
package map used while developing in the SDK (and that file is committed
and hence maintained automatically).
I was specifically trying to build the analyzer snapshot, so maybe it was
Post by Danny Tuppenymore involved then generally building the SDK. I should try and find some
time to try it all again; it's been a while!
No, building the SDK will build all of the snapshots that are shipped with
the SDK, including both the command-line analyzer and analysis server
snapshots.
Post by Danny Tuppenyhttps://groups.google.com/a/dartlang.org/forum/#!topic/analyzer-discuss/IqvtQ-KtRD0
Yeah, things have changed since then. We didn't use to have the `.packages`
files, so we didn't have one checked in and you did used to need to run
pub, but that's no longer the case.
I think I tried running the analyzer tests from the next release SDK and
Post by Danny Tuppenythey also failed there, so I gave up. I'd been hoping to try and implement
something in the analysis server but it seemed like building that from
bleeding_edge needed to build a whole SDK, and then I needed Python 2, a
C++ compiler, etc.; and it all started to look like a lot of effort to
tweak some Dart scripts ;(
You should be able to run all of the analyzer-related tests without
building an SDK. There is a file at the root of both the analyzer's and
analysis server's `test` directories (named `testAll.dart`) that you can
execute (as a normal dart application) that will execute all of the tests.
The only time you'd need to build an SDK is when you go to test the new
functionality in the IDE.
Brian
Post by Danny TuppenyOn Thu, 16 Feb 2017 at 18:41 'Bob Nystrom' via Dart Misc <
Post by 'Bob Nystrom' via Dart MiscFiled a bug about Python 3: https://github.com/dart-lang/sdk/issues/28793
Ta!
Post by 'Bob Nystrom' via Dart Misc1. I find bootstrapping appealing on programming language nerd "let's
see how meta we can go" grounds, but in practice it is kind of a pain in
the ass and it doesn't buy you that much. We *do* use Dart for most
of our big internal tools like dart2js, analyzer, etc, so we aren't missing
much by using a few hundred lines of Python here and there for little build
scripts.
That's valid; though I don't think getting a Dart SDK in the build
environment is complicated (apt-get, chocolatey, download and unzip) and
the PITA that is Python 2v3 might make it worth it! :D
- Had to make changes to all pubspecs to point at local (in-repo) paths so
Post by 'Bob Nystrom' via Dart Miscpackages weren't pulled from Pub (which I think was causing version
constraint issues)
Strange. You shouldn't *have* to do that, but maybe something is or was
in a weird state. Now that we have ".packages" files, that may be better.
If you can give us more details on this, I can take a look.
I can't find the details now (I can't remember where I mentioned it), but
it was something along the lines of packages in the SDK relying on each
other but pubspecs had no paths, so running "pub get" would result in
pulling packages from pub when they needed to be built from all the local
code.
I was specifically trying to build the analyzer snapshot, so maybe it was
more involved then generally building the SDK. I should try and find some
time to try it all again; it's been a while!
Post by 'Bob Nystrom' via Dart Misc- Many tests failed before even making any changes (this happened in the
release SDKs, so I couldn't figure out if it was exepcted or some
dependency or something missing)
:(
- Our test runner is old and poorly documented and it's not clear
even to people on the Dart team what test suites there are, which
configurations are meaningful, and how to run them.
- We do seem to have an increasing number of flaky tests. We have
acquired some technical debt around our tests that we are slowly
starting to pay off
<https://github.com/dart-lang/sdk/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aopen%20label%3Agardening%20>
.
https://groups.google.com/a/dartlang.org/forum/#!topic/
analyzer-discuss/IqvtQ-KtRD0
I think I tried running the analyzer tests from the next release SDK and
they also failed there, so I gave up. I'd been hoping to try and implement
something in the analysis server but it seemed like building that from
bleeding_edge needed to build a whole SDK, and then I needed Python 2, a
C++ compiler, etc.; and it all started to look like a lot of effort to
tweak some Dart scripts ;(
--
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.