Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMarco Salsiccia
Courses Plus Student 1,591 PointsVague instructions preventing me from completing this task.
This code challenge only vaguely asks to create three arbitrary stored properties in a new struct, but keeps giving an error when checking the work that I need to create the exact properties specified in the challenge directions. None have been provided, I've completed the task requested, and I have no idea what is going wrong here. Am I missing something or is this question just way too vague to complete the task? Is this a challenge bug?
I've thrown everything at this, such as using the Tag type provided creating actual stored properties with assignment operators in the Post struct itself then calling it appropriately for the firstPost constant, trying an init method, nothing here is passing the challenge. This current variant of my answer satisfies all the requirements of the initial task, so this is getting really frustrating.
struct Tag {
let name: String
}
struct Post {
var number: Int
var position: String
var team: String
}
let firstPost = Post(number: 19, position: "LW", team: "San Jose Sharks")
1 Answer
Jason Anders
Treehouse Moderator 145,860 PointsHi Marco,
The instructions seem pretty clear. You just don't seem to be following them exactly as they are specified. The instructions call for three specific variables of specific types.
title of type String
author of type String
tag of type Tag
but you have none of those?.
Instructions are always very specific and need to be followed exactly, otherwise the code checker cannot verify your answer and you will receive the Bummer!
Reset the challenge and make sure you are naming and typing the variables exactly as the challenge's instructions state.
Keep Coding! :)
Marco Salsiccia
Courses Plus Student 1,591 PointsMarco Salsiccia
Courses Plus Student 1,591 PointsWhere are you reading those specific property types? All the question says for me is that a Tag struct has been provided, then to create a Post struct with three stored properties. The types and names of the specific properties are not shown in the instructions.
Marco Salsiccia
Courses Plus Student 1,591 PointsMarco Salsiccia
Courses Plus Student 1,591 PointsSo, added difficulty here is that I am blind and am using a screen reader to complete these challenges. If a website isn't coded appropriately, my screen reader will miss text on the screen, and it sounds like you are seeing some instructions that I do not have access to. This is the exact text I hear when voiceOver reads the challenge text to me:
heading level 1 8 items In the editor you've been provided with a Tag type. Create a struct named Post with three stored properties: Create an instance of Post and assign it to a constant named firstPost .
That is the exact phrase being fed to my screen reader. Nothing there mentions the exact properties and types needed to complete the task. Definitely a bug.
Jason Anders
Treehouse Moderator 145,860 PointsJason Anders
Treehouse Moderator 145,860 PointsThis is what I see when I click the VIew Challenge Link from your Original Post (top right corner).
If you are not seeing this, you may need to refresh your browser window, or log out and back in. If still an issue, you will need to contact the Support Team
Hope you get this figured out.
Jason Anders
Treehouse Moderator 145,860 PointsJason Anders
Treehouse Moderator 145,860 PointsYes. If that is what your Screen Reader is producing, then there is definitely a problem with the challenge. You will need to contact the support team and let them know. I placed the complete instructions in my previous comment, but inside a code block. Let me know if your screen reader accesses that okay.
Jason
Marco Salsiccia
Courses Plus Student 1,591 PointsMarco Salsiccia
Courses Plus Student 1,591 PointsThanks for your help Jason. This is definitely a bug, and your code block works perfectly with my screen reader. I've let the support team know, and I really hope more of this doesn't happen in other areas of the site as I move forward with learning here..