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

CodeLens enabled for Turtle activities in 5.5 #348

Open
celinelatulipe opened this issue Mar 7, 2022 · 1 comment
Open

CodeLens enabled for Turtle activities in 5.5 #348

celinelatulipe opened this issue Mar 7, 2022 · 1 comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@celinelatulipe
Copy link

Describe the bug
In Section 5.5, there are two activities that use the Turtle module. Since CodeLens/PythonTutor doesn't support it, the CodeLens button shouldn't be enabled/visible.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Section 5.5
  2. Scroll down to activity 5.5.2 and 5.5.3
  3. Click on the Show CodeLens
  4. Click on the 'Next' button in CodeLens
  5. CodeLens shows: ImportError: turtle not found or not supported
    Only these modules can be imported:
    future, abc, array, bisect, calendar, cmath,
    collections, copy, datetime, decimal, doctest, fractions,
    functools, hashlib, heapq, io, itertools, json,
    locale, math, operator, pickle, pprint, random,
    re, string, types, typing, unittest

Expected behavior
A clear and concise description of what you expected to happen. The CodeLens button shouldn't be shown since it doesn't support the Turtle module

@bnmnetp
Copy link
Member

bnmnetp commented Mar 7, 2022

This is easy to fix by just adding a :nocodelens: parameter to the activecode directive.

@bnmnetp bnmnetp added good first issue Good for newcomers help wanted Extra attention is needed labels Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants