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

[Lang] [refactor] shows an error if not called from correct Taichi/Python-scope #1121

Merged
merged 9 commits into from
Jun 4, 2020

Conversation

archibate
Copy link
Collaborator

@archibate archibate commented Jun 3, 2020

Related issue = close #1130

[Click here for the format server]

More to be added? Where to be added? @yuanming-hu

@archibate archibate requested review from yuanming-hu, k-ye and KLozes June 3, 2020 09:02
python/taichi/lang/util.py Show resolved Hide resolved
@archibate archibate added error-message GAMES201 GAMES 201 students' wishlist labels Jun 3, 2020
@@ -170,10 +170,35 @@ def decorator(foo):
def wrapped(*args, **kwargs):
import warnings
msg = f'{old} is deprecated, please use {new} instead'
#warnings.warn(msg, DeprecationWarning)
raise DeprecationWarning(msg)
warnings.warn(msg, DeprecationWarning)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix #1130.

@archibate archibate added this to the v0.6.8 milestone Jun 4, 2020
@archibate archibate requested a review from taichi-gardener June 4, 2020 00:52
@archibate archibate requested a review from k-ye June 4, 2020 07:52
Copy link
Member

@yuanming-hu yuanming-hu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! This is very helpful. Everything LGTM here. Btw, I find that the CLI test fails, can we fix that before merging?

@rexwangcc
Copy link
Collaborator

rexwangcc commented Jun 4, 2020

Thank you! This is very helpful. Everything LGTM here. Btw, I find that the CLI test fails, can we fix that before merging?

FYI, the CLI test is being fixed in #1133 #1120

@archibate archibate merged commit 7536eba into taichi-dev:master Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GAMES201 GAMES 201 students' wishlist
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug] DeprecationWarning's crash Taichi
5 participants