Skip to content

Conversation

metagn
Copy link
Collaborator

@metagn metagn commented Aug 11, 2022

closes #4651, closes #16653 with a cheap fix for now due to how early tfFinal is set

Removes type Foo = object {.final.}/type Foo {.final.} [T] = object syntax, remove uses of the syntax in this repo.

Packages which still use this syntax:

Note: Also tested removing bind expression syntax deprecated since 0.8.14 and no code was affected. Searching for nnkBind on github also gives zero user code results, so macros don't use this syntax either.

@metagn metagn changed the title remove deprecated pragma syntax from 0.20.0 remove deprecated type pragma syntax from 0.20.0 Aug 11, 2022
flyx pushed a commit to flyx/NimYAML that referenced this pull request Aug 11, 2022
Sorry that this messes with the style here, but it would be nice to have this syntax removed given how long it's been deprecated (nim-lang/Nim#20199).
@metagn metagn force-pushed the remove-bad-type-pragma-syntax branch from 3044a92 to 5a85d6b Compare August 12, 2022 05:48
@metagn metagn changed the title remove deprecated type pragma syntax from 0.20.0 remove uses of deprecated type pragma syntax from 0.20.0 Aug 12, 2022
@metagn metagn changed the title remove uses of deprecated type pragma syntax from 0.20.0 remove uses of deprecated type pragma syntax Aug 12, 2022
@metagn metagn changed the title remove uses of deprecated type pragma syntax remove uses of deprecated type pragma syntax, fix bugs that required it Aug 12, 2022
@metagn metagn changed the title remove uses of deprecated type pragma syntax, fix bugs that required it clean up deprecated type pragma syntax, fix bugs that required it Aug 12, 2022
@metagn
Copy link
Collaborator Author

metagn commented Aug 12, 2022

PR changed to keep the syntax but remove it across the repo and change warning to say "legacy syntax" instead of deprecated.

@Araq
Copy link
Member

Araq commented Aug 24, 2022

Please rebase.

@metagn metagn force-pushed the remove-bad-type-pragma-syntax branch from db19bdd to bb85c25 Compare August 25, 2022 05:32
@metagn
Copy link
Collaborator Author

metagn commented Aug 25, 2022

Done

@Varriount Varriount requested a review from Araq August 25, 2022 07:18
@Varriount Varriount added the Requires Araq To Merge PR should only be merged by Araq label Aug 25, 2022
@metagn
Copy link
Collaborator Author

metagn commented Aug 30, 2022

Will change later to remove the syntax and make nimlsp an allowed failure again (undoing 3cd94e8). Until then marking as draft.

@metagn metagn marked this pull request as draft August 30, 2022 15:39
@metagn metagn force-pushed the remove-bad-type-pragma-syntax branch from fbb9a08 to 5416917 Compare September 3, 2022 01:06
metagn and others added 3 commits September 3, 2022 04:07
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
@metagn metagn marked this pull request as ready for review September 3, 2022 04:04
@metagn metagn changed the title clean up deprecated type pragma syntax, fix bugs that required it remove deprecated type pragma syntax, fix bugs that required it Sep 3, 2022
@metagn
Copy link
Collaborator Author

metagn commented Sep 3, 2022

The syntax is now removed with CI hacks to make certain packages work. (working around mratsim/weave#182 for weave, and fixes in sdl2 and variant not being in tagged versions)

@Araq Araq merged commit 86f7f4f into nim-lang:devel Sep 3, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Sep 3, 2022

Thanks for your hard work on this PR!
The lines below are statistics of the Nim compiler built from 86f7f4f

Hint: mm: orc; threads: on; opt: speed; options: -d:release
163959 lines; 14.786s; 842.191MiB peakmem

ringabout added a commit that referenced this pull request Oct 4, 2022
Araq pushed a commit that referenced this pull request Oct 6, 2022
* correct grammar; ref #20199

* add check for keeping grammar.txt up-to-date

* add nimTestGrammar
capocasa pushed a commit to capocasa/Nim that referenced this pull request Mar 31, 2023
…lang#20199)

* remove deprecated pragma syntax from 0.20.0

closes nim-lang#4651, closes nim-lang#16653 with a cheap fix for now due to
how early `tfFinal` is set

* remove type pragma between name and generics

* undo removal, try removing bind expression (0.8.14)

* fix test, unremove bind expr

* remove again

* Update changelog.md

Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>

* dependencies @ HEAD & weave test dependencies

* try fix package ci

Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
capocasa pushed a commit to capocasa/Nim that referenced this pull request Mar 31, 2023
…im-lang#20494)

* correct grammar; ref nim-lang#20199

* add check for keeping grammar.txt up-to-date

* add nimTestGrammar
@metagn metagn mentioned this pull request May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Requires Araq To Merge PR should only be merged by Araq
Projects
None yet
Development

Successfully merging this pull request may close these issues.

{.inheritable.} not working for generic types Cannot inherit from generic .importcpp type
4 participants