Commit Graph

531 Commits

Author SHA1 Message Date
Gary Verhaegen
fe8a7d11ce don't annoy people with broken master (#936) 2019-05-06 16:15:40 +00:00
Gabor Aranyossy
dd1ac5067b
adding a simple test to hedge against existing sql migration files (#943)
* simple test to hedge against existing sql migration files

* copyright

* adding better failure message

* adding intructions on generating the digest file
2019-05-06 17:34:56 +02:00
Beth Aitman
d77384bcb6 Migration guide for new assistant (#768)
* Migration guide for new assistant

* Add some more words about the changes and start explaining config file.

* Flesh out migration of configs.

* Fix summary of changes.

* Fix formatting of list

* Tidying up migration guide
2019-05-06 14:55:20 +00:00
A. F. Mota
2d63d27da0 Move the dispatch env vars to the end. (#880) 2019-05-06 16:10:13 +02:00
Moritz Kiefer
90fed27a63
Output a compilation message in damlc build (#934)
For long builds, it’s nice to know what damlc is doing. We might want
to consider making this configurable via some --quiet flag but given
that we already output the “Created out.ar.” message unconditionally
it seems reasonable to add this without an option for now.
2019-05-06 15:55:46 +02:00
Moritz Kiefer
66541f18d0
Upgrade to new Stackage snapshot (#941)
I also started an Upgrading.md document. I’ll add the documentation
for upgrading nixpkgs in a separate PR.
2019-05-06 15:45:31 +02:00
Neil Mitchell
1a069ad80b
Move the DAML config stuff out of haskell-ide-core (#940)
* Move the GHC config stuff out of haskell-ide-core

* Add an export list to UtilGHC
2019-05-06 14:11:36 +01:00
Moritz Kiefer
569fb1b2d2
Retry nix-build on unexpected end-of-file errors (#938) 2019-05-06 14:52:12 +02:00
Moritz Kiefer
3f6ae21fbc
Output a note about the new project in "daml new" (#935) 2019-05-06 14:34:24 +02:00
Nick Smith
d725d50be9 add result of exercise to transaction -- fixes #479 (#583)
Modify the DAML Engine, Ledger API and Sandbox to pass the result of the
exercise as a field of the transactions.
2019-05-06 14:33:44 +02:00
Jussi Mäki
32a168a999
Index service refactoring (#928)
* Add configuration to LedgerInitialConditions

* Wait until index state is established in reference index service

This fixes a race condition where the daml-on-x server has been
brought up before the index service can serve it.

* Remove ledgerId checks from index service

Now that we have decided on non-changing ledger identifiers, remove
the ledgerId checks from index service and simplify the interface.

* Reformat and fix leftover ??? from DamlOnXTransactionService
2019-05-06 13:59:06 +02:00
Gerolf Seitz
b38ac29532
Attempt at fixing flaky CodegenLedgerTest (#929)
* Increase call timeout to 40 seconds
* Run test exclusively
* Add logback-test.xml and set level to DEBUG

Contributes to #808.
2019-05-06 12:48:20 +02:00
Gerolf Seitz
ec0bba2488
Fix "unbound variable" error in fmt.sh (#933)
Seems like an array that is only declared but never assigned to cannot
be dereferenced with `arr[@]` under `set -u`. We can easily work around
this by using an empty string as default value like `:-`.
2019-05-06 12:06:41 +02:00
Neil Mitchell
c3a8a4d02a
IDE cleanups and progress towards external usability (#930)
* Remove the requirement for Binary on Shake rules (was not used)

* Add a deriving Show on Event, easier for external integrations

* Rename GeneratePackageState to LoadPackageState and move its fields to the rule, rather than the key

* Inline getPackageState away

* Change to passing a ModRenaming to the package loader. Two reasons:
1) When loading non-DAML things we might want to omit the renaming
2) The type ModRenaming has documentation of semantics, unlike [(String, String)]
2019-05-06 10:57:17 +01:00
Gabor Aranyossy
990a8ea5db
Dispatcher cleanup (#855)
* dispatcher cleanup

* doc improvements

* extracting SubSource from Dispatcher

* moving tests
2019-05-06 11:43:51 +02:00
Beth Aitman
d34afb7502 Signposting the Node.js bindings (#931)
* Signposting the Node.js bindings

* Change link to actually point to the docs
2019-05-06 09:42:42 +00:00
Moritz Kiefer
7f42f2e556
Release 0.12.15 (#925) 2019-05-06 09:57:15 +02:00
Gary Verhaegen
c36055ddf9 tweak azure build file (#922)
- change jobs names to match the names Azure uses, so GitHub doesn't get
  confused. These were the names when the pipeline was originally set
  up; since I changed them it looks like Azure and GitHub don't agree on
  test names, resulting in some occurrences of GitHub forever expecting
  more info about `linux` while `Linux` is completed.
- add `-i` to cURL invocations, so we can see the response headers. This
  is an attempt to debug a situation I have seen three times now where
  Azure says it executed the cURL step successfully, yet no message
  appears in Slack.
- add test name to failure message sent to Slack.
2019-05-06 00:21:06 +00:00
Neil Mitchell
11b1d1deb9
Use less da-base (#919)
* Delete Test.Tasty.HUnit.Extended - no one was using the extended pieces

* Delete stuff from TH.Extended that was unused

* Delete stuff from Control.Monad.Except.Extended and simplify

* Delete unused stuff from Data.Text.Extended

* Inline the one use of runDefaultExceptT

* Delete Control.Monad.Except.Extended

* Clean up getAssociatedVirtualResources by inlining and thinking

* Fix dumb typos in getVirtualResources

* Remove usages of Control.Monad.Except.Extended

* Add a missing package import
2019-05-05 21:48:37 +01:00
Neil Mitchell
df02a5399f Avoid using package imports (#924)
* Hide the package ghc-boot-th by default

* Don't use package imports in haskell-ide-core
2019-05-05 21:22:15 +02:00
Moritz Kiefer
9deb4ae7b2 Revert "Upgrade to nixpkgs 19.03 (#871)" (#917)
This reverts commit 3d8acde916.

For some reason that commit seems to have resulted in a lot of
"unexpected end of file" errors during cache downloads. I do not know
what is going on here or how to fix it so let’s revert it for now.
2019-05-05 09:10:20 +00:00
Gary Verhaegen
e95575b033 install StackDriver on build machines (#905)
Requested by Security
2019-05-04 22:55:51 +00:00
Moritz Kiefer
3d8acde916 Upgrade to nixpkgs 19.03 (#871) 2019-05-04 20:01:48 +00:00
Neil Mitchell
fe3e5c9639
Delete DA.Prelude (#914)
* Use DA.Prelude a lot less

* Make LANGUAGE pragmas have the right case

* Don't reexport DA.Prelude

* Remove more DA.Prelude imports

* Remove the nastiest renaming DA.Prelude

* Final removal of DA.Prelude

* Kill DA.Prelude

* Add missing dependencies

* More missing package imports

* More missing package imports

* Update compiler/daml-lf-ast/src/DA/Daml/LF/Ast/Base.hs

* Update compiler/daml-lf-ast/src/DA/Daml/LF/Ast/Base.hs
2019-05-04 18:51:56 +01:00
Martin Huschenbett
f098b0e4be
Remove a deprecated package database build rule (#913)
The rule was used in only in one place and that place can be updated
to a newer rule.
2019-05-04 15:32:05 +02:00
Neil Mitchell
3cab59ad6d Remove completely redundant imports of DA.Prelude (#911)
* Remove completely redundant imports of DA.Prelude

* Start chipping away at some NoImplicitPrelude too
2019-05-04 12:40:07 +00:00
Neil Mitchell
f256ef09c4 Delete modules that appear entirely unused (#909) 2019-05-04 11:54:27 +00:00
Moritz Kiefer
89d2a3c080 Shorten data-default-instances-dlist target name (#908)
This PR copies the hack that I used for the other
data-default-instances-* packages to data-default-instances-dlist. The
exact conditions under which this seems to be required probably depend
on things like your username and the directory of your project which
is why this failed for Neil but not for me.
2019-05-04 11:06:23 +00:00
Neil Mitchell
e36e1074e0 Rename the runTests function to main, since it serves as a main (#910) 2019-05-04 09:37:23 +00:00
Martin Huschenbett
c9bf9e02fc Make record constructors in contract keys work (#907)
* Make record constructors in contract keys work

Currently, they don't always work because we don't inline record constructors
aggressively enough. The PR address this flaw by inlining more constructors.

Fixes #890.

* Remove left over comment
2019-05-03 22:22:15 +00:00
Martin Huschenbett
f667954323 Support the inline return type syntax for recursive functions (#904)
* Support the inline return type syntax for recursive functions

Currently, the inline return type syntax does not work for recursive
functions as it produces a locat letrec which the compiler can't handle
yet. The PR works around this problem by doing a very limited form of
lambda lifting.

This fixes #747.

* Apply Neil's suggestions
2019-05-03 21:32:48 +00:00
Martin Huschenbett
4df1ccfa13
Improve documentation for DA.TextMap.merge and DA.Next.Map.merge (#902)
Leave an explanation of what the functions is actually doing.
2019-05-03 21:48:43 +02:00
Martin Huschenbett
0ebdcb961e
Add fromListWith and merge to DA.TextMap and DA.Next.Map (#898)
Also, resurrect the tests we had for both functions when we still tested
`DA.Map`.
2019-05-03 20:41:11 +02:00
Martin Huschenbett
efe5907c20
Remove an unnecessary special case regarding strings from the compiler (#900)
There's no need for this special case since `convertExpr` will also fail on
string literals which are not surrounded by one of the special functions.
2019-05-03 20:39:55 +02:00
Martin Huschenbett
f155dbebee
Make daml-ghc test easier to debug by removing parallelism (#899)
I often end up in situations where I need to to look at the GHC Core or
the DAML-LF before type checking. In the current parallel setting they
ususally don't get written to disk before the first error pops up. By
running the compiler stages one after another, we make sure that the
outputs of successful stages can be written to disk before starting the
next stage.
2019-05-03 20:39:26 +02:00
DavidM-D
aacb94d798 Changed Diagnostics to FileDiagnostics (#897)
* Changed Diagnostics to FileDiagnostics

* Hlint fixes

* Fix tests

* Removed the lenses
2019-05-03 17:43:40 +00:00
gleber
c85503159b ledger-api-test-tool: uniquify command ids. (#884)
Add 'commandIdMangler' lambda to SemanticTester which forms command identifiers,
which can be passed via a constructor.
2019-05-03 16:46:15 +00:00
Bolek@DigitalAsset
c3550b4612
webide: add vscode settings to disable telementry (#825)
* webide: add vscode settings to disable telementry

* webide: remove keybindings

* Adding settings.json to webide server image, in order to disable
telemetry popup.

* clean webide 400 and 500 error messages (which reveal too much about
software)

* disable daml guidelines link until it can be fixed

* more hiding of content from front end
2019-05-03 12:04:30 -04:00
Martin Huschenbett
0a45bd71ac
Remove a few duplicate/unused main scenarios from daml-ghc/tests (#891)
Back in the day, every test case needed a `main` scenario and that was the
only scenario tested. Now, all scenarios are tested and hence a few of these
`main` scenarios are no longer necessary.
2019-05-03 17:44:35 +02:00
Martin Huschenbett
168191875d
Merge conflicting release-notes.rst changes automatically (#893)
... by keeping both entries.
2019-05-03 17:15:18 +02:00
Francesco Mazzoli
e8261f2fd9
clarify the role of party sets in various locations (#766)
* clarify role of party sets in various locations

* use 1.dev for tests...

...so that we're sure we're testing the latest value / tx versions.
2019-05-03 17:09:59 +02:00
Martin Huschenbett
16ea1ceacd
Add Functor/Applicative/Action instances for reader monad (#888)
* Add Functor/Applicative/Action instances for reader monad

This is possible because we dropped DAML-LF 1.0 support from the
compiler lately.

* Add release notes

* Fix language-server-tests
2019-05-03 17:01:09 +02:00
Martin Huschenbett
59abe7e384
Deprecate DA.{Map, Set} in favour of DA.Next.{Map, Set} (#886)
* Deprecate DA.{Map, Set} in favour of DA.Next.{Map, Set}

`DA.Next.{Map, Set}` were known as `DA.Experimental.{Map, Set}` until now.

We also remove the tests for `DA.{Map, Set}` because our test infrastructure
can't nicely deal with tons of deprecation warning. Since we're not going to
change these files anymore, this seems to be a fair trade-off.

* Fix code spans in release notes
2019-05-03 16:53:50 +02:00
gleber
e057265af4 LedgerApiTestTool: exit with success when doing '--extract' (#889) 2019-05-03 14:41:55 +00:00
Gerolf Seitz
ecf6ece8c4
CommandService returns useful data for successful submissions (#875)
Submitting a command via the CommandService now returns either the
transaction id (SubmitAndWaitForTransactionId), the flat transaction
(SubmitAndWaitForTransactionResponse), or the transaction tree
(SubmitAndWaitForTransactionTreeResponse).

This means that users don't have to wade through the transaction stream
to retrieve the resulting transaction. This is particularly useful in
combination with #479.

Fixes #406
2019-05-03 16:01:41 +02:00
Andreas Herrmann
7cf02b8579 Hazel: ./configure in build step (#848)
* Hazel: configure in build step

* Hazel: patch network

* Hazel: unpatch old-time

* Hazel: Don't remove c2hs
2019-05-03 13:51:43 +00:00
gleber
b3e2e10897 scenario-tester: Allow to mangle names used in scenarios before their executions. (#795)
* Allow to mangle names used in scenarios before their executions.

This allows to run a scenario against a long-running server repeatedly and avoid
clashes between runs, since each party is unique (up to the randomness used).

* ScenarioRunner: add test for partyNameMangler
2019-05-03 13:04:23 +00:00
Martin Huschenbett
debef0ec89
Upgrade the vscode version used by daml-extension (#878)
Bump from 1.1.24 to 1.1.33. This drops the dependency on a version of
`tar` with a security vulnerability.
2019-05-03 14:21:09 +02:00
Moritz Kiefer
4b7d7d2149
Remove dev-env tests (#883)
We don’t run these tests anywhere and they don’t test anything useful.
2019-05-03 14:17:50 +02:00
Neil Mitchell
3ee6f4f096
Fix prettyRange so it prints ranges like it used to (#882)
Before it was garbled and wrong:
Range:    Range Start: Position Line: 2Character: 15End:   Position Line: 2Character: 15

After it's correct and like it was before:
Range:    3:15-3:17
2019-05-03 12:49:51 +01:00