Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emit warnings on controller can syntax #11317

Closed
cocreature opened this issue Oct 20, 2021 · 0 comments · Fixed by #11363
Closed

Emit warnings on controller can syntax #11317

cocreature opened this issue Oct 20, 2021 · 0 comments · Fixed by #11363
Assignees
Labels
language Language team work SDK 2.0

Comments

@cocreature
Copy link
Contributor

cocreature commented Oct 20, 2021

We want to deprecate the controller … can syntax in favor of the choice X controller … syntax. To do that we need to catch this in our GHC parser https://github.com/digital-asset/ghc/blob/9fcd347e46790d0d054c347de7d36303426ee173/compiler/parser/Parser.y#L1241 and emit a warning.

This also means we have to update our docs to no longer use that.

@cocreature cocreature added language Language team work SDK 2.0 labels Oct 20, 2021
@akrmn akrmn self-assigned this Oct 21, 2021
moisesackerman-da pushed a commit that referenced this issue Oct 25, 2021
part of #11317

changelog_begin
changelog_end
moisesackerman-da pushed a commit that referenced this issue Oct 25, 2021
moisesackerman-da pushed a commit that referenced this issue Oct 25, 2021
Also fixed some literalinclude snippets to use blocks instead of line numbers

part of #11317
moisesackerman-da pushed a commit that referenced this issue Oct 26, 2021
part of #11317

changelog_begin
* Deprecate 'controller ... can' syntax.
  * It will be removed in a future version of Daml.
  * Instead, use 'choice ... with ... controller' syntax. Note that this does not implictly add the controller as an observer, so it must be added explictly as one (or as a signatory).
changelog_end
moisesackerman-da pushed a commit that referenced this issue Oct 26, 2021
moisesackerman-da pushed a commit that referenced this issue Oct 26, 2021
Also fixed some literalinclude snippets to use blocks instead of line numbers

part of #11317
moisesackerman-da pushed a commit that referenced this issue Oct 26, 2021
part of #11317

changelog_begin
* Deprecate 'controller ... can' syntax.
  * It will be removed in a future version of Daml.
  * Instead, use 'choice ... with ... controller' syntax. Note that this does not implictly add the controller as an observer, so it must be added explictly as one (or as a signatory).
changelog_end
moisesackerman-da pushed a commit that referenced this issue Oct 26, 2021
moisesackerman-da pushed a commit that referenced this issue Oct 26, 2021
Also fixed some literalinclude snippets to use blocks instead of line numbers

part of #11317
moisesackerman-da pushed a commit that referenced this issue Oct 26, 2021
part of #11317

changelog_begin
* Deprecate 'controller ... can' syntax.
  * It will be removed in a future version of Daml.
  * Instead, use 'choice ... with ... controller' syntax. Note that this does not implictly add the controller as an observer, so it must be added explictly as one (or as a signatory).
changelog_end
moisesackerman-da pushed a commit that referenced this issue Oct 26, 2021
moisesackerman-da pushed a commit that referenced this issue Oct 26, 2021
Also fixed some literalinclude snippets to use blocks instead of line numbers

part of #11317
moisesackerman-da pushed a commit that referenced this issue Oct 26, 2021
part of #11317

changelog_begin
* Deprecate 'controller ... can' syntax.
  * It will be removed in a future version of Daml.
  * Instead, use 'choice ... with ... controller' syntax. Note that this does not implictly add the controller as an observer, so it must be added explictly as one (or as a signatory).
changelog_end
moisesackerman-da pushed a commit that referenced this issue Oct 26, 2021
moisesackerman-da pushed a commit that referenced this issue Oct 26, 2021
Also fixed some literalinclude snippets to use blocks instead of line numbers

part of #11317
moisesackerman-da pushed a commit that referenced this issue Oct 28, 2021
part of #11317

changelog_begin
* Deprecate 'controller ... can' syntax.
  * It will be removed in a future version of Daml.
  * Instead, use 'choice ... with ... controller' syntax. Note that this does not implictly add the controller as an observer, so it must be added explictly as one (or as a signatory).
changelog_end
moisesackerman-da pushed a commit that referenced this issue Oct 28, 2021
moisesackerman-da pushed a commit that referenced this issue Oct 28, 2021
Also fixed some literalinclude snippets to use blocks instead of line numbers

part of #11317
akrmn added a commit that referenced this issue Nov 19, 2021
part of #11317

changelog_begin
* Deprecate 'controller ... can' syntax.
  * It will be removed in a future version of Daml.
  * Instead, use 'choice ... with ... controller' syntax. Note that this does not implictly add the controller as an observer, so it must be added explictly as one (or as a signatory).
changelog_end
akrmn added a commit that referenced this issue Nov 19, 2021
akrmn added a commit that referenced this issue Nov 19, 2021
Also fixed some literalinclude snippets to use blocks instead of line numbers

part of #11317
akrmn added a commit that referenced this issue Nov 19, 2021
part of #11317

changelog_begin
* Deprecate 'controller ... can' syntax.
  * It will be removed in a future version of Daml.
  * Instead, use 'choice ... with ... controller' syntax. Note that this does not implictly add the controller as an observer, so it must be added explictly as one (or as a signatory).
changelog_end
akrmn added a commit that referenced this issue Nov 19, 2021
akrmn added a commit that referenced this issue Nov 19, 2021
Also fixed some literalinclude snippets to use blocks instead of line numbers

part of #11317
akrmn added a commit that referenced this issue Nov 19, 2021
part of #11317

changelog_begin
* Deprecate 'controller ... can' syntax.
  * It will be removed in a future version of Daml.
  * Instead, use 'choice ... with ... controller' syntax. Note that this does not implictly add the controller as an observer, so it must be added explictly as one (or as a signatory).
changelog_end
akrmn added a commit that referenced this issue Nov 19, 2021
akrmn added a commit that referenced this issue Nov 19, 2021
Also fixed some literalinclude snippets to use blocks instead of line numbers

part of #11317
akrmn added a commit that referenced this issue Nov 29, 2021
part of #11317

changelog_begin
* Deprecate 'controller ... can' syntax.
  * It will be removed in a future version of Daml.
  * Instead, use 'choice ... with ... controller' syntax. Note that this does not implictly add the controller as an observer, so it must be added explictly as one (or as a signatory).
changelog_end
akrmn added a commit that referenced this issue Nov 29, 2021
akrmn added a commit that referenced this issue Nov 29, 2021
Also fixed some literalinclude snippets to use blocks instead of line numbers

part of #11317
akrmn added a commit that referenced this issue Nov 29, 2021
part of #11317

changelog_begin
* Deprecate 'controller ... can' syntax.
  * It will be removed in a future version of Daml.
  * Instead, use 'choice ... with ... controller' syntax. Note that this does not implictly add the controller as an observer, so it must be added explictly as one (or as a signatory).
changelog_end
akrmn added a commit that referenced this issue Nov 29, 2021
akrmn added a commit that referenced this issue Nov 29, 2021
Also fixed some literalinclude snippets to use blocks instead of line numbers

part of #11317
akrmn added a commit that referenced this issue Nov 30, 2021
part of #11317

changelog_begin
* Deprecate 'controller ... can' syntax.
  * It will be removed in a future version of Daml.
  * Instead, use 'choice ... with ... controller' syntax. Note that this does not implictly add the controller as an observer, so it must be added explictly as one (or as a signatory).
changelog_end
akrmn added a commit that referenced this issue Nov 30, 2021
akrmn added a commit that referenced this issue Nov 30, 2021
Also fixed some literalinclude snippets to use blocks instead of line numbers

part of #11317
akrmn added a commit that referenced this issue Nov 30, 2021
part of #11317

changelog_begin
* Deprecate 'controller ... can' syntax.
  * It will be removed in a future version of Daml.
  * Instead, use 'choice ... with ... controller' syntax. Note that this does not implictly add the controller as an observer, so it must be added explictly as one (or as a signatory).
changelog_end
akrmn added a commit that referenced this issue Nov 30, 2021
akrmn added a commit that referenced this issue Nov 30, 2021
Also fixed some literalinclude snippets to use blocks instead of line numbers

part of #11317
akrmn added a commit that referenced this issue Dec 1, 2021
part of #11317

changelog_begin
* Deprecate 'controller ... can' syntax.
  * It will be removed in a future version of Daml.
  * Instead, use 'choice ... with ... controller' syntax. Note that this does not implictly add the controller as an observer, so it must be added explictly as one (or as a signatory).
changelog_end
akrmn added a commit that referenced this issue Dec 1, 2021
akrmn added a commit that referenced this issue Dec 1, 2021
Also fixed some literalinclude snippets to use blocks instead of line numbers

part of #11317
akrmn added a commit that referenced this issue Dec 1, 2021
part of #11317

changelog_begin
* Deprecate 'controller ... can' syntax.
  * It will be removed in a future version of Daml.
  * Instead, use 'choice ... with ... controller' syntax. Note that this does not implictly add the controller as an observer, so it must be added explictly as one (or as a signatory).
changelog_end
akrmn added a commit that referenced this issue Dec 1, 2021
akrmn added a commit that referenced this issue Dec 1, 2021
Also fixed some literalinclude snippets to use blocks instead of line numbers

part of #11317
akrmn added a commit that referenced this issue Dec 1, 2021
part of #11317

changelog_begin
* Deprecate 'controller ... can' syntax.
  * It will be removed in a future version of Daml.
  * Instead, use 'choice ... with ... controller' syntax. Note that this does not implictly add the controller as an observer, so it must be added explictly as one (or as a signatory).
changelog_end
akrmn added a commit that referenced this issue Dec 1, 2021
akrmn added a commit that referenced this issue Dec 1, 2021
Also fixed some literalinclude snippets to use blocks instead of line numbers

part of #11317
akrmn added a commit that referenced this issue Dec 1, 2021
part of #11317

changelog_begin
* Deprecate 'controller ... can' syntax.
  * It will be removed in a future version of Daml.
  * Instead, use 'choice ... with ... controller' syntax. Note that this does not implictly add the controller as an observer, so it must be added explictly as one (or as a signatory).
changelog_end
akrmn added a commit that referenced this issue Dec 1, 2021
akrmn added a commit that referenced this issue Dec 1, 2021
Also fixed some literalinclude snippets to use blocks instead of line numbers

part of #11317
akrmn added a commit that referenced this issue Dec 1, 2021
Closes #11317

* Add warning for uses of 'controller ... can' syntax

* Remove uses of 'controller ... can' syntax

* Add test cases for -W{,no-}controller-can

* Update docs to reflect 'controller ... can' syntax deprecation

changelog_begin
* Deprecate 'controller ... can' syntax.
  * It will be removed in a future version of Daml.
  * Instead, use 'choice ... with ... controller' syntax. Note that this does not implictly add the controller as an observer, so it must be added explictly as one (or as a signatory).
changelog_end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
language Language team work SDK 2.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants