Missing Braces Syntax Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about missing right curly or square bracket perl Stack Overflow the company Business Learn more about hiring developers or posting ads
Perl Find Missing Curly Bracket
with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow
Notepad++ Find Missing Bracket
is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Find missing braces in large PHP file? up vote 6 down vote favorite
Unmatched Right Curly Bracket At Perl
I'm debugging a client's 3500-line PHP file. Including this file causes a PHP Parse error: syntax error, unexpected $end in ... error, so I'm assuming there's a missing brace somewhere. Is there a simple tool or method for missing brace discovery, either online or in the Komodo IDE I'm using? php debugging ide syntax-error share|improve this question edited Feb 13 '12 at 19:21 asked Feb 13 '12 at 18:40 Yarin download perltidy 47k89269381 3 3000-line file? Yuk. stackoverflow.com/questions/378959/… –Frankie Feb 13 '12 at 18:43 In most IDEs, you can find the missing braces by looking for the place where every single line becomes an error. –Ryan P Feb 13 '12 at 18:44 NetBeans :) thats what i have in mind. . . –tomexsans Feb 13 '12 at 18:45 Using vi you could simply use % to bounce on brackets and see where things don't line up anymore. –Marc B Feb 13 '12 at 18:51 Make a copy of the file and comment out / remove parts of the code until you don't get any complaints. This makes it easier to debug Just make sure that if you actually do something (like modifying a database/file) you remove that code as well so you don't mess anything out. –Optimist Feb 13 '12 at 18:58 | show 1 more comment 7 Answers 7 active oldest votes up vote 2 down vote Use consistent and clean tabbing. I've found that makes it very hard to miss a closing brace. Other than that, you've kinda dug your own grave here. What are you coding that results in a 3500-line PHP file? EDIT: Try dumping you
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more perl syntax error near about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Eclipse Java: Eclipse complains of missing curly brace in class up vote 0 down vote favorite the following code in eclipse gives a "}" missing in classbody http://stackoverflow.com/questions/9265999/find-missing-braces-in-large-php-file when in eclipse, but compiles perfectly well from the terminal. Any clues? package quiz; public class Session { static int currentQuestion = 0; private Sentence[] sentences; // for building questions private Question[] questions; public void generateReport(Session publishSession) { } public int getRightQuestionCount() { } public int getWrongQuestionCount() { } public int calculatePercent() { } public Question getQuestionAtIdx(int index) { return questions[index]; } public Question getPreviousQuestion() { return getQuestionAtIdx(--currentQuestion); } public Question getNextQuestion() { return getQuestionAtIdx(--currentQuestion); } public http://stackoverflow.com/questions/7319237/eclipse-java-eclipse-complains-of-missing-curly-brace-in-class void setQuestionAtIdx(int index, Question) { } } java eclipse syntax-error share|improve this question asked Sep 6 '11 at 11:35 Asaf 8917 1 Try to cut and paste the code or clean the project. In many cases Eclipse then recognizes the non-error. :) –Thomas Sep 6 '11 at 11:38 Also, the getPreviouseQuestion() method paints "--currentQuestion" blue, but the method after it, getNextQuestion, doesn't. The last } has an error on it saying I should delete this token –Asaf Sep 6 '11 at 11:39 @Asaf.. look at the updated answer.. –ngesh Sep 6 '11 at 11:42 1 ... but compiles perfectly well from the terminal - all the errors the others pointed out should not allow you to do that, are you sure the code you posted is the same that you compile? –Thomas Sep 6 '11 at 11:44 add a comment| 4 Answers 4 active oldest votes up vote 4 down vote accepted Toward the end, you're declaring a function with two parameters; for the second parameter you specified the type, but no name. Maybe that's it. public void setQuestionAtIdx(int index, Question <
ElementsAdobe Dreamweaver Adobe MuseAdobe Animate CCAdobe Premiere ProAdobe After EffectsAdobe IllustratorAdobe InDesignView all communitiesExplore Menu beginsMeet the expertsLearn our productsConnect with your peersError: You don't have https://forums.adobe.com/thread/1101370 JavaScript enabled. This tool uses JavaScript and much of it will not work correctly without it enabled. Please turn JavaScript back on and reload this page. Please enter a title. You can not post a blank message. Please type your message and try again. More discussions in ActionScript syntax error 3 All CommunitiesAdobe Animate CC - HomeActionScript 3 1 Reply Latest reply on Nov 19, 2012 4:11 AM by Ned Murphy syntax error 1158: missing left brace({) before the function body as3 lyrlyr Nov 19, 2012 2:08 AM hey guys PLEASE help ME i have looked everywhere missing braces syntax and can't find a thing on how to fix it stop();btnHelp.addEventListener(MouseEvent.CLICK, GoToScene2);btnMap.addEventListener(MouseEvent.CLICK, GoToScene3a);function GoToScene2(event)GoToScene3a(event){gotoAndPlay("meow")}{gotoAndPlay(1,"Scene 3a")} I have the same question Show 0 Likes(0) 679Views Tags: none (add) This content has been marked as final. Show 1 reply 1. Re: syntax error 1158: missing left brace({) before the function body as3 Ned Murphy Nov 19, 2012 4:11 AM (in response to lyrlyr) You have two functions mashed together... function GoToScene2(event)GoToScene3a(event){ gotoAndPlay("meow") } { gotoAndPlay(1,"Scene 3a") }should be.... function GoToScene2(event:MouseEvent):void {
gotoAndPlay("meow") } function GoToScene3a(event:MouseEvent):void { gotoAndPlay(1,"Scene 3a") } Like Show 0 Likes(0) Actions Actions More Like This Retrieving data ... Legend Correct Answers - 10 points © 2016 Adobe Systems Incorporated. All Rights Reserved. | Powered by Help | Terms of Use | Privacy Policy and Cookies (UPDATED) | Forum Help | Tips for AskingJive Software Version: 8.0.3.0 , revision: 20160218075410.6eafe9c.release_8.0.3.x