Commit Graph

976 Commits

Author SHA1 Message Date
Moritz Kiefer
be974260ce
Normalize percent-encoding in URIs (#1603)
This implements step 1. from #1507 and also adds a test that uses an
insane percent-encoding to verify that we can handle that.

I also tested this in the IDE on Windows and Linux.
2019-06-12 15:20:23 +02:00
Nick Smith
7575f8cb0e
Buildsystem scala sources improvements (#1602)
* Fixes #1600. Improve Bazel Scala source JAR generation.

Include sources from JAR files defined as 'sources' to a Bazel Scala
target. The improvement will allow inclusion of generated source targets
in sources JARs of dependencies.

* Use temporary directory in the dar_to_scala() rule.

Place the output of the Scala code generator in a temporary
directory instead of a directory at the 'primary' output path as Bazel
rules should never have directory dependencies.
2019-06-12 14:45:54 +02:00
Martin Huschenbett
9d25f248a1
Rename automerge-dangerous-but-faster to automerge (#1605)
At the same time rename `automerge` to `automerge-after-rebase`.
2019-06-12 08:37:07 -04:00
Beth Aitman
cc2aab6740 Correct docs (#1604)
* Correct docs

* apply suggestion from code review

Co-Authored-By: Martin Huschenbett <martin.huschenbett@posteo.me>

* Fix regex
2019-06-12 12:28:55 +00:00
Fran
3eb2fd659a
Sort template list in daml new --list (#1599)
* Sort template list in daml new --list

* sort after takeFileName
2019-06-12 13:08:44 +01:00
Martin Huschenbett
99adde7a5e Remove useless version paramater from LF.World.initSelfWorld (#1601)
That parameter should have never been there in the first place since it is
completely useless.
2019-06-12 11:55:27 +00:00
Anup Kalburgi
98c2a86b8f Visual input param (#1589)
* Reading manifest complete

* Now takes only dar are arg

* Removing IO as it is no more doing that

* now only takes dar as arg

* Adding commands to generate PNG

* Correcting the wording
2019-06-12 07:13:48 -04:00
Jost Berthold
b0b3e29c49
language-support/scala: add support for specifying dependency roots explicitly (#1210)
* language-support/scala: add support for specifying roots explicitly

By default, code-gen will use all templates in the given package as roots, and
generate code for all types used. This patch adds the ability to specify roots
explicitly via a set of regex.es to match the (fully qualified) template names.

This is an experiment, tests and UI need to be adjusted later.

* scala codegen rootfilter: move filtering to envIFace handling

* doc for --root option

* scalafmt

* test filterTemplatesBy

* release note for --root Scala codegen option
2019-06-12 11:10:23 +10:00
Bolek@DigitalAsset
2b5c25fa48
webide: build webide image when sdk releases (#1568)
* webide: build webide image when sdk releases

* add scripts which check the latest version of sdk. If webide docker
image version does not exist or is older than the sdk version, it will
kick off a build of the webide docker image

* add job to azure cron

* webide: minor response to review
2019-06-11 19:02:19 -04:00
Bolek@DigitalAsset
d6a028cb8e added links to environment setup (#1590)
* added links to environment setup

* add user / session dashboard
2019-06-12 00:23:58 +02:00
Stephen Compall
cc21c78be2
Scala ecosystem: discourage Identifier name in scala primitive (#1570)
* Primitive.LegacyTemplateId replaces 2-tuple TemplateId.unapply; 3-tuple variant introduced

* ensure the suggested replacements are well-typed and behaved

* suggest LegacyTemplateId for 2-valued form
2019-06-11 17:31:28 -04:00
Remy
3618ca76cf Document syntactic restriction for ids in ledger-api proto (#1585)
* document syntactic restriction for ids in ledger-api proto

* address Gerolf's comments
2019-06-11 19:24:20 +00:00
Leonid Shlyapnikov
8ed703e14d Removing damlc dependency (#1588)
quickstart-scala example does not buld DAR from SBT
2019-06-11 18:17:51 +00:00
Beth Aitman
cebefd4bd9 Set support expectations more clearly (#1584)
* First stab at clarifying how we support community

* Mention email

* Rogue space

* Edits, add CoC

* Apply suggestions from code review

Co-Authored-By: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com>
2019-06-11 14:57:00 +00:00
Moritz Kiefer
8029080fc7
Use FromServerMessage directly (#1583)
Previously we had two layers of indirection:

In the compiler we emitted Event, we then translated this to
ClientNotification which was then translated to
FromServerMessage.

Apart from being confusing and convoluted this also resulted in us
doing the conversion to generic LSP types too late so we had scenario
specific code in places where it shouldn’t be.

This PR removes the indirection and just uses FromServerMessage
directly.
2019-06-11 16:03:44 +02:00
Shayne Fletcher
da88ab0f9d
Up-(actually down-)grade to ghc-lib-8.8.0.20190610 (#1576)
* Up-(actually down-)grade to ghc-lib-8.8.0.20190610

* A `#ifndef GHC_STABLE` removed. `ml_hie_file` must be set unconditionally

* Pass Opt_WriteHie in xFlagsSet

* Oops. Revert. This breaks Windows. Very confusing

* Disable test; track in issue https://github.com/digital-asset/daml/issues/1582

* Remove Opt_WriteHie flag (Causes test failures trying to write into a read-only filesystem in CI)
2019-06-11 08:58:16 -04:00
Beth Aitman
e6c1d1e414 Suggestions for demo instructions (#1580) 2019-06-11 11:25:27 +01:00
Moritz Kiefer
d9f266a4d4 Remove EventFileValidation (#1579)
We never actually emit this event so it’s pretty much useless. If we
do want to add progress reporting at some point, we should go with the
recently added official support for that in LSP
https://github.com/Microsoft/language-server-protocol/issues/70#issuecomment-483252666.
2019-06-11 09:15:12 +00:00
mziolekda
319e042860 create separate bazel targets for participant-state-v2 (#1562) 2019-06-11 08:00:02 +00:00
Moritz Kiefer
186692813a Move closer to upstream haskell-lsp and lsp-test (#1577)
The custom methods changes to haskell-lsp have been merged upstream
and the Windows fixes to lsp-test have been merged as well. I’ll work
on upstreaming the custom methods patches to lsp-test next. After that
we should be in sync with upstream.
2019-06-11 07:34:08 +00:00
Beth Aitman
1e6c5e9188 Connect up services page and proto docs (#1558)
* Add links to proto docs

* corrections
2019-06-11 07:26:38 +00:00
Robert Autenrieth
80e8ac113d
Add support for party management in the sandbox (#1452)
Fixes #1312

This PR adds support for party management in the sandbox:

Both the in-memory and the SQL backend track a list of known
parties, and implicitly add any party mentioned in a transaction.
New calls were added to the IndexService and the WriteService
for managing parties. These calls are wired to the above mentioned
persistence backends, and to a new API service.
A corresponding client interface was added to the scala API client.
An integration test was added for checking that a call to allocate a
party succeeds.
An integration test for the sandbox was added for checking that the
sandbox implicitly adds all parties mentioned in a transaction.
2019-06-11 08:08:55 +02:00
Anup Kalburgi
3d5bd2e9c1
Visual graph (#1575)
Connected graph. with a modified function from dotgen
2019-06-10 17:30:44 -04:00
Fran
ab61b76a76 Add documentation to DA.NonEmpty and DA.Validation (#1571)
* Add documentation to DA.NonEmpty.

* Add docs for DA.Validation

* Update daml-foundations/daml-ghc/daml-stdlib-src/DA/NonEmpty.daml

Co-Authored-By: Neil Mitchell <35463327+neil-da@users.noreply.github.com>

* Update daml-foundations/daml-ghc/daml-stdlib-src/DA/NonEmpty.daml
2019-06-10 13:43:19 -04:00
Neil Mitchell
5eaaca7f59
WebIDE: How to get to the analytics (#1574) 2019-06-10 13:21:50 -04:00
nickchapman-da
19449affb5
Ledger App Demos (#1572)
* chat ledger-app, first cut

* pre-demo improvements to nim-console

* Valuable instance for Text

* nim-console/demo.md
2019-06-10 15:08:57 +01:00
Anup Kalburgi
2c7b325fc3
visual representation of models from dar (#1552)
the first version of the visualization
2019-06-10 09:54:43 -04:00
Fran
9842570618 Tweak the "outdated DAML SDK in project" warning. (#1573) 2019-06-10 09:43:35 -04:00
Bolek@DigitalAsset
1a62841616 infra: add docker daemon to ci agent (#1566)
* installs docker and adds vsts user to docker group
2019-06-08 22:31:55 +00:00
Moritz Kiefer
d3b33d7c11
Port the remaining tests from language-server-tests to lsp-tests (#1563) 2019-06-08 08:36:27 +02:00
Martin Huschenbett
aa3df10d0f Move TextMap to DA.Internal.LF (#1550)
Almost all other data types built into DAML-LF live in this module already.
2019-06-07 22:06:14 +00:00
Brian Healey
45c1dda78f
correct broken ledger-api-introduction links (#1565)
* correct broken ledger-api-introduction links

* remove extra line break

* add required signatory to bindings-java code snippet
2019-06-07 15:18:21 -04:00
Stephen Compall
290d2f3924 extractor: reduce large dar test to fail on 5MB, succeed on 10MB (#1567)
- VeryLargeArchive.dar generates/builds in 17s
2019-06-07 19:06:33 +00:00
Beth Aitman
596bea8e76 add examples repo (#1561) 2019-06-07 16:19:19 +00:00
Stephen Compall
e5fb5e0025
extractor: >50MiB module loading test (#1551)
Test that a 51MiB DAML module crashes the extractor when set to 50MiB
max, then that it succeeds at 60MiB. The module's source code is
generated in bazel shelling out.

This costs about a minute of build time to generate (20s) and compile
(40s) the module alone; it will be reduced by lowering the bracket in a
later PR. See #1551 for more.

* generate "code" for VeryLargeArchive and compile to dar

* test cases for failing and succeeding based on inbound size threshold

* proper assertions in the failure case

* separate PG instance for each VeryLargeArchiveSpec test

* comment on the size choices
2019-06-07 11:49:30 -04:00
Michał Majcherski
9b5f152f18
windows: better language-support build / test coverage (#1548) 2019-06-07 17:29:07 +02:00
Brian Healey
a3faea1c9d upgrade versions for yarn audit (#1560) 2019-06-07 14:53:26 +00:00
Gabor Aranyossy
002266caab
introducing the Indexer (#1559) 2019-06-07 16:09:57 +02:00
Moritz Kiefer
1f8c273263
Move diagnostic tests from language-server-tests to new lsp-tests (#1554) 2019-06-07 15:34:42 +02:00
Gabor Aranyossy
e80e2f55c4 removed dependency on SandboxConfig from ApiServices (#1555)
* removed dependency on SandboxConfig from ApiServices

* using v2 state API applying some backporting where necessary

* cleanup
2019-06-07 12:06:40 +00:00
Gerolf Seitz
8a08b752a9
Use Ledger API Test Tool for sandbox (#1545)
Extra command line arguments to the client_server_test target are passed
to the ledger-api-test-tool instead of the arguments defined in the
bazel target.

For example:
`bazel run //ledger/sandbox:conformance-test-static-time --list` will
pass the --list parameter to the ledger-api-test-tool (to print all
available tests), instead of actually running the tests in static-time mode.


The Ledger API Test Tool takes the flag --all-tests to run all defaul
 and optional tests

The tool also allows multiple occurrences of the --include and --exclude
flags.

Also removes StandaloneSemanticTestRunner.

Fixes #1371
2019-06-07 12:04:31 +02:00
mziolekda
4389cbc83e Provide initial implementation of package management in the KVUtils (#1498)
* Provide initial implementation of package management in the KVUtils

* rename updateArchives to updatePublicPackages and add them to the abstract interface

* remove participant-state:reference app from published artifacts

* adopt the changes to the recent version split
2019-06-07 07:03:02 +00:00
mziolekda
7efceffb60 introduce participant-state interface v2 (#1541)
* introduce participant-state interface v2 to allow spliting daml-on-x workstream from sandbox

* correct code comments documenting the v2 participant-state package
2019-06-06 20:43:12 +00:00
Remy
c76274585a navigator: add enum types (#1529)
* navigator: add enum types

* Address Stephen's comments

* do not serialize enum types

* add comment dropped in previous commit
2019-06-06 16:24:42 +00:00
Martin Huschenbett
504337b5b2
Expose conversion between text and code points in daml-stdlib (#1536)
* Expose conversion between text and code points in daml-stdlib

* Fix tests

* Fix feature dependency

* Fix test imports
2019-06-06 11:33:07 -04:00
Gabor Aranyossy
eb922743d1 Ledger abstraction moves behind IndexAndWriteService (#1544)
* Sandbox ContractStore has been internalized

* Ledger got moved behind WriteAndIndexService

* cleanup

* fixed wrong SqlStartMode usage
2019-06-06 14:41:46 +00:00
Michał Majcherski
90c854f3bf
windows: language-support java codegen tests (#1542) 2019-06-06 16:19:39 +02:00
dependabot[bot]
fb60f4d204 Bump clean-css from 4.1.8 to 4.1.11 in /navigator/frontend (#1537)
Bumps [clean-css](https://github.com/jakubpawlowicz/clean-css) from 4.1.8 to 4.1.11.
- [Release notes](https://github.com/jakubpawlowicz/clean-css/releases)
- [Changelog](https://github.com/jakubpawlowicz/clean-css/blob/master/History.md)
- [Commits](https://github.com/jakubpawlowicz/clean-css/compare/v4.1.8...v4.1.11)

Signed-off-by: dependabot[bot] <support@github.com>
2019-06-06 09:53:53 -04:00
Moritz Kiefer
1fcf2e4442 Release 0.12.24 (#1547) 2019-06-06 13:35:28 +00:00
Moritz Kiefer
1f76f23022 Run daml-ghc tests with full validation in the scenario service (#1546)
* Run daml-ghc tests with full validation in the scenario service

Fixes #128

* Swap default of optScenarioValidation
2019-06-06 13:14:11 +00:00