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 trial

C#

Benny Ogidan
Benny Ogidan
17,948 Points

Workspace Error, C#

error CS0584: Internal compiler error: Expression Mono.CSharp.ParameterReference did not set its type after Resolve
(1,10): error CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement

I keep trying to type in Workspace but it keeps going to the next line and executing my incomplete command when i have not pressed enter.

Steven Parker
Steven Parker
231,124 Points

Please make a snapshots of your workspace and share the link. Also, what command are you trying to enter, and what "partial command" is it that is executed?

4 Answers

Benny Ogidan
Benny Ogidan
17,948 Points

I am running from the console as the lesson requests. I am trying to type up some LINQ statements and the Console just cuts me off mid-way through typing and executes them.

I dunno how to Snapshot the Console, I took a snapshot but it only showed the files

Steven Parker
Steven Parker
231,124 Points

You make a "snapshot" with the :camera: button, and it makes a link you can share. Here's a video about workspace previews and snapshots.

The video is instructing you to put LINQ statements in the console? Please also provide a link to the course video.

Benny Ogidan
Benny Ogidan
17,948 Points

This is one i took before i still can't see the Console

https://w.trhou.se/qef804frwh

Steven Parker
Steven Parker
231,124 Points

I'm confused

Are you having trouble using the console, or you don't even see the console?

It is possible to close the console completely. To re-open it, go to the "view" tab and select "show console".

But I tried your workspace and was able to run the REPL, load the library, and list the birds.

Benny Ogidan
Benny Ogidan
17,948 Points

I think it is a bug, it just brings out the error message at random. I managed to type over it and execute the appropriate command. It is causes to much distraction i will take a screen shot of the problem.