

#Wedge2 error jgrasp c code
You can control the code that's above your code in the stack trace but the stuff that's below your code is probably working OK. Once you get down into other peoples code, you may need to stop and try another strategy. You might start seeing Rails errors or Java errors. But once I get further down into web-host.js. Those libraries (ExpressionTree and javascriptToEzjs) are things my code (demo.js) is using, so those are things I want to understand. If not, what's happening in javascriptToEzjs? Thats in js-to-ezjs.js on line 372. What's happening at ExpressionTree.root? We know it's in an-expression.js on line 450. Here's how the above stack trace looks in my brain:įrom there, you want to start at the top and work your way down. The functions you are in (on the left) and the files those functions live in (on the right). When you look at the stack, you mostly only care about two things. The "stack" is just a list of all of the different pieces of code you are in, kind of like Russian nesting dolls: The first thing you want to do is orient yourself. ids: Īt ExpressionTree.root (/Users/erik/projects/editable-software/render-expression/node_modules/an-expression/an-expression.js:450:15)Īt javascriptToEzjs (/Users/erik/projects/editable-software/render-expression/node_modules/javascript-to-ezjs/js-to-ezjs.js:372:58)Īt /Users/erik/projects/editable-software/render-expression/demo.js:44:18Īt /Users/erik/projects/editable-software/render-expression/node_modules/web-host/web-host.js:71:15Īt /Users/erik/projects/editable-software/render-expression/node_modules/web-host/web-host.js:68:26Īt wrap (/Users/erik/projects/editable-software/render-expression/node_modules/web-host/node_modules/web-site/web-site.js:185:9)Īt Layer.handle (/Users/erik/projects/editable-software/render-expression/node_modules/web-host/node_modules/web-site/node_modules/express/lib/router/layer.js:95:5)Īt next (/Users/erik/projects/editable-software/render-expression/node_modules/web-host/node_modules/web-site/node_modules/express/lib/router/route.js:137:13)Īt Route.dispatch (/Users/erik/projects/editable-software/render-expression/node_modules/web-host/node_modules/web-site/node_modules/express/lib/router/route.js:112:3) These can be overwhelming, and if you paste the whole thing into Google you're liable to get nothing: Error: tree8d has no root expression.

Often your program will spit out a big messy thing called a stack trace.
#Wedge2 error jgrasp c series
You're not looking for an immediate solution, you're looking for tidbits of information that will lead you through a series of searches to your answer. You can add those words to your query, or find something entirely new to search for. The most important thing those posts can do is teach you new words to describe your problem. Once you've found some people online with a similar problem to you, that doesn't necessarily mean they'll have an answer! But those posts are still incredibly valuable. Try putting those in quotes on Google and you get a bunch of hits. The phrases that jump out to me are "error: incompatible types" and "required: int found: int". Someone else might be having the same problem as you, but maybe on a different line in a file with a different name, so let's leave that out. that :26 means "line 26 in the file Program3.java".

In the error above, you seee the words "Program3.java:26". Things like paths to specific files are usually too specific to be helpful. Also that "-jGRASP" you see over and over on every line is probably not giving you information, since it's on every line! You'll learn over time what these common phrases are, but they're too vague to help narrow your search. Phrases like "operation complete" are very common. Super generic words that the computer spits out all the time The key words that describe the generic situation you are in Super specific stuff that applies only to you. What we want to do is divide this message into three parts: jGRASP wedge2: exit code for process is 1. Program3.java:26: error: incompatible types Here's an example: -jGRASP exec: javac -g Program3.java If you can't copy and paste the whole thing, you want to try searching for a smaller piece of your error message. It depends how much gobbledygook is in there.

Sometimes that works, but sometimes it doesn't. If it's short enough, you can cut and paste the whole thing. One of the best ways to deal with an error message is to search for it on Google. Let's look at a few error messages and break them down. When you're a beginner, you are literally reading a language you've never seen before.īut there are a few general strategies that can keep you moving. But an experienced programmer can read them like tea leaves. When you're just starting out, error messages looks like gibberish.
#Wedge2 error jgrasp c how to
One of the dark arts of programming is learning how to decipher the mysterious messages the computer spits out at you.
