Skip to content

"The Comment Couldn't Be Fetched" Error #3

@calebcsimmons

Description

@calebcsimmons

Every time I attempt to use the auto comment, I get an error code on the bottom left "The comment couldn't be fetched".

I am using Python 3.9.4 and VScode 1.79.

For additional information, the following snippet is what I am attempting to auto comment:

class ExerciseSession():
def init(self, exercise_name, intensity, exercise_time) -> None:
self.name = exercise_name
self.intensity = intensity
self.time = exercise_time

def get_exercise(self):
  return self.name 

def get_intensity(self):
    return self.intensity

def get_duration(self):
    return self.time

def set_exercise(self, set_name):
    self.name = set_name
    
def set_intensity(self, intensity):
    self.intensity = intensity
    
def set_duration(self, duration):
    self.time = duration
    
def calories_burned(self):
    self.calories = 0
    if self.intensity == "Low":
        self.calories = 4
    if self.intensity == "Medium":
        self.calories = 8
    if self.intensity == "High":
        self.calories = 12
    return self.calories * self.time

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions