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

Undefine paramCount & paramStr in nimscript.nim for *.nims #12860

Merged
merged 4 commits into from Apr 27, 2020
Merged

Undefine paramCount & paramStr in nimscript.nim for *.nims #12860

merged 4 commits into from Apr 27, 2020

Conversation

nc-x
Copy link
Contributor

@nc-x nc-x commented Dec 9, 2019

(and fix error message on js target)
Closes #12835

@Araq
Copy link
Member

Araq commented Dec 9, 2019

It's better to remove them from nimscript.nim IMO.

@nc-x nc-x changed the title Undefine paramCount & paramStr in os.nim for *.nims Undefine paramCount & paramStr in nimscript.nim for *.nims Dec 9, 2019
@Araq
Copy link
Member

Araq commented Dec 9, 2019

Excellent work, now the only missing part is a changelog entry and backwards compat.

@nc-x
Copy link
Contributor Author

nc-x commented Apr 27, 2020

This is now blocked on nim-lang/nimble#797
After that PR is merged, need to update

Nim/koch.nim

Line 13 in 664cb2c

NimbleStableCommit = "4007b2a778429a978e12307bf13a038029b4c4d9" # master

and this PR should (hopefully) be green.

@nc-x
Copy link
Contributor Author

nc-x commented Apr 27, 2020

Ready to be merged.

@genotrance
Copy link
Contributor

Isn't this a breaking change?

@Yardanico
Copy link
Collaborator

Yeah, it is, I noticed when installing golden - https://github.com/xmonader/nim-terminaltables/blob/master/terminaltables.nimble uses paramCount and it doesn't work after this PR

@nc-x
Copy link
Contributor Author

nc-x commented Apr 29, 2020

@Yardanico
Terminaltables was not in the tested packages list so it went unnoticed.
It would require a patch similar to https://github.com/Araq/ormin/pull/49/files to make it work with Nim version pre-1.3 as well as 1.3 and beyond.

Araq added a commit that referenced this pull request Apr 30, 2020
EchoPouet pushed a commit to EchoPouet/Nim that referenced this pull request Jun 13, 2020
…ang#12860)

* Remove `paramStr` and `paramCount` from implicitly imported nimscript.nim
* Update changelog.md
* Update stable nimble commit hash

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
EchoPouet pushed a commit to EchoPouet/Nim that referenced this pull request Jun 13, 2020
timotheecour added a commit to timotheecour/Nim that referenced this pull request Jun 14, 2020
timotheecour added a commit to timotheecour/Nim that referenced this pull request Jun 14, 2020
timotheecour added a commit to timotheecour/Nim that referenced this pull request Jun 15, 2020
timotheecour added a commit to timotheecour/Nim that referenced this pull request Jun 15, 2020
Araq pushed a commit that referenced this pull request Jun 16, 2020
* fix #14142: no more clash with: import os + use of existsDir/dirExists/existsFile/fileExists/findExe in config.nims

* remove a comment

* Revert "fixes the regression #12860 caused; hotfix"

This reverts commit 3d2459b.

* Revert "Undefine `paramCount` & `paramStr` in nimscript.nim for *.nims (#12860)"

This reverts commit d38853c.

* noNimScript => noWeirdTarget + noNimJs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

import os + use of paramCount and paramStr in config.nims causes "ambiguous call' error
5 participants