Bug: syntax error in code editor breaks layout and redrawing windows incorrect

I'm working with "SQL Developer" version:
Oracle IDE    4.0.0.13.80
Plataforma Java(TM)    1.7.0_45
installed on windows 7  64 bits.
when I execute some ddl command in the code editor with syntax error, all layout windows are incorrectly drawn, and I have to close "SQL Developer" application to go on.
Example:
   COMMENT ON COLUMN "TABLE"."COLUMN1" IS 'comments on column 1';
   COMMENT ON COLUMN "TABLE"."COLUMN2" AS 'comments on column 2';
First comment is correctly aplied but second comment has a syntax error (AS is wrong) but you no receive error output, layout it hangs.
I tested with thick/OCI and using jdbc, and I always go to the same problem.

Good Morning
Did you ever get this working without restoring ?
Kind Regards
Marius

Similar Messages

  • BUG: EA 2.1 code editor: completion insight doesn't work in opened files

    I just migrated from SQLDEV 1.5.5 to EA 2.1. It's nice that I colud find so many of my suggestions implemented in this new version. THANKX :-)
    code editor:
    When I'm working in SQL Worksheet the "completion insight" feature is working well, but when I try to use it in an opened file, it doesn't work.
    Is there a special preference to turn on for use with files?
    Edited by: @chris on 12.11.2009 10:57

    Correct it did work in 1.5. on .sql files, when connected, so I have updated the ER to bug. We also need to expand this to support PL/SQL files.
    Sue

  • Syntax error in code

    Hi everyone,
    Can anyone please tell me what is the syntax error in the following code when run in 11g.
    FUNCTION plch_func (check_in IN BOOLEAN)
    RETURN VARCHAR2
    AS
    BEGIN
    RETURN CASE
    WHEN check_in THEN '123'
    WHEN TRUE THEN '456'
    --WHEN SYSDATE < plch_now () THEN '789'
    END ;
    END plch_func;
    Thanks.

    Hi,
    Are you getting any errors, cannot see anything wrong (syntactically).
    SQL> CREATE OR REPLACE FUNCTION plch_func (check_in IN BOOLEAN)
      2    RETURN VARCHAR2 AS
      3  BEGIN
      4    RETURN CASE
      5             WHEN check_in THEN '123'
      6             WHEN TRUE THEN '456'
      7           --WHEN SYSDATE < plch_now () THEN '789'
      8           END;
      9  END plch_func;
    10  /
    Function created.
    SQL>Regards
    Peter

  • Getting Syntax Error in Script Editor

    I am a fairly new Mac user and also fresh to programming. I am trying run a piece of code that I copied directly from a guide but seems to be giving me a syntax error: "Expected 'into', variable name, other parameter name or property but found end of line."
    Here is the code that I am working with:
    on gestaltVersioninfo(gestaltcode, string_length)
    try
    tell application "Finder" to ¬
    copy my NumToHex((system attribute gestalt_code), ¬
    string_length) to {a, b, c, d}
    set the numeric_version to {a, b, c, d} as string
    if a is "0" then set a to ""
    set the version_string to (a & b & "." & c & "." & d) as string
    return {numeric_version, version_string}
    on error
    return {"", "unknown"}
    end try
    end gestaltVersion_info
    on NumToHex(hexData, stringLength)
    set hexString to {}
    repeat with i from stringLength to 1 by -1
    set hexString to ((hexData mod 16) as string) & hexString
    set hexData to hexData div 16
    end repeat
    return (hexString as string)
    end NumToHex
    copy my gestaltVersion_info("sysv", 4) to {system_version, system_string}
    if the system_version is less than "1050" then
    do shell script "/usr/bin/printf \"\\n# Block Adobe
    Activation\\n127.0.0.1\\tactivate.adobe.com\\n127.0.0.1\\tpractivate.adobe.com\
    \n127.0.0.1\\tereg.adobe.com\\n127.0.0.1\\tactivate.wip3.adobe.com\\n127.0.0.1\
    \tactivate.wip4.adobe.com\\n127.0.0.1\\twip3.adobe.com\\n127.0.0.1\\twip4.adobe
    .com\\n127.0.0.1\\t3dns-3.adobe.com\\n127.0.0.1\\t3dns-
    4.adobe.com\\n127.0.0.1\\t3dns-2.adobe.com\\n127.0.0.1\\tadobedns.
    adobe.com\\n127.0.0.1\\tadobe-dns-2.adobe.com\\n127.0.0.1\\tadobe-dns-
    3.adobe.com\\n127.0.0.1\\tereg.wip3.adobe.com\\n127.0.0.1\\tactivatesea.
    adobe.com\\n127.0.0.1\\twwis-dubc1-vip60.adobe.com\\n127.0.0.1\\tactivatesjc0.
    adobe.com\\n127.0.0.1\\thl2rcv.adobe.com\\n\" >> /etc/hosts" with
    administrator privileges
    else if the system_version is greater than "1050" then
    do shell script "/usr/bin/printf \"\\n# Block Adobe
    Activation\\n127.0.0.1\\tactivate.adobe.com\\n127.0.0.1\\tpractivate.adobe.com\
    \n127.0.0.1\\tereg.adobe.com\\n127.0.0.1\\tactivate.wip3.adobe.com\\n127.0.0.1\
    \tactivate.wip4.adobe.com\\n127.0.0.1\\twip3.adobe.com\\n127.0.0.1\\twip4.adobe
    .com\\n127.0.0.1\\t3dns-3.adobe.com\\n127.0.0.1\\t3dns-
    4.adobe.com\\n127.0.0.1\\t3dns-2.adobe.com\\n127.0.0.1\\tadobedns.
    adobe.com\\n127.0.0.1\\tadobe-dns-2.adobe.com\\n127.0.0.1\\tadobe-dns-
    3.adobe.com\\n127.0.0.1\\tereg.wip3.adobe.com\\n127.0.0.1\\tactivatesea.
    adobe.com\\n127.0.0.1\\twwis-dubc1-vip60.adobe.com\\n127.0.0.1\\tactivatesjc0.
    adobe.com\\n127.0.0.1\\thl2rcv.adobe.com\\n\" >> /etc/hosts;
    /usr/bin/dscacheutil -flushcache" with administrator privileges
    end if

    In your first *do shell script* statement, the *with administrator privileges* parameter is split across two lines. You just need to either put it on a single line or use option-return to continue a statement on the next line (not sure if the last *do shell script* has the same issue).
    Note that there is an AppleScript forum where these kinds of questions will be seen by a more targeted audience.

  • Syntax Error in Script Editor

    Hey everybody. I'm brand new to Mac's (and programming for that matter). I've been trying to do some basic programming with AppleScript based on guides I found online. After making sure I copied the guide's code EXACTLY, I still get a Syntax error, which reads "expected "," or "}" but found property. The word "AppleScript" is highlighted in this instance. Strangely enough, no other instances of "AppleScript" are targeted with this error message. Like I said before, I've made sure to carefully copy everything from the guide I read and have done it multiple times, but still get this error message. Any help would be greatly appreciated!!

    Having another small problem. Two problems to be exact. Here is the code I have so far.
    set answer to the button returned of (display dialog ¬
    ¬
    "Welcome to the haunted house. Enter at your own risk. You have two options: Choose to Continue, or Run away." buttons {"Continue", "Run Away"} ¬
    with title "AppleScript Confusion" with icon note)
    if answer = "Continue" then
    display dialog ¬
    "You step into the foyer of the house and see two hallways on either side of you. Go left, or go right?" buttons {"Left", "Right"} ¬
    with title "AppleScript Confusion" with icon note
    if answer = "Right" then
    display dialog ¬
    "You step on a trap door and fall into a pit. You lose the game." buttons {"Exit"} ¬
    with title "AppleScript Confusion" with icon note
    else
    display dialog ¬
    "You walk down the hallway cautiously until you encounter a door." buttons {"Open Door"}
    with title "AppleScript Confusion" with icon note
    end if
    else
    display dialog ¬
    "You run out of the haunted house, starting your car and driving away." buttons {"Exit"} ¬
    with title "AppleScript confusion" with icon note
    First problem: the response doesn't seem to be working at all. I've clicked both buttons but only get the response under
    else
    I can't seem to get the response that's under
    if answer = "Right" then
    even if I am clicking the button that says "Right"
    Second problem:
    "with title "AppleScript Confusion" with icon note" in the paragraph under "else." Whenever I try to compile, the word "title" is highlighted and I get the error message "expected "timeout" or "transaction" but found identifier."
    An answer to one or both questions would be greatly appreciated!!

  • View Layouts and Unavailable Windows

    I work in a college and have several users using the same Final Cut workstations. I came in this morning to find out the timeline, canvas and other windows will not open. I went to the menu bar and noticed both of those windows are shaded gray like they are unavailable. Any idea how to make them re-appear? Please and thanks
    appreciated
    Mike

    I tried pressing control U, but it just put the Viewer slug and the Browser next to each other in the top left of one of my monitors. If I go to the window menu, the timeline and Canvas are still unavailable.
    What do I search in the help menu, If you don't mind me asking. It might have been a good idea to save a default layout for my own good.
    thanks

  • I keep getting an error 05 code on my t31 and turning the camera off and back on does not work.

    I keep getting an error code 05 when I try to use certain modes on my Rebel T3i.  It seems as though my auto flash is stuck.  Is this a common complaint....and if so.....what is the answer to deal with this issue.  I have followed the instructions of turning the camera off and back on....to no avail.  HELP!!

    Hi Hydra171,
    The Error 5 error code indicates a malfunction in the popup flash mechanism.
    If this is not cleared by turning the camera off, then on, your camera will require service to correct this issue.
    You may set up the repair for your camera here.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • Cabextract throws checksum error when extracting jre/jdk 8u5 and 8u11 windows executables

    When using cabextract to extract JDK and JRE 8u5 or 8u11 .exe files checksum errors occur in certain cab files.
    Here's what happens:
    Extracting cabinet: jdk-8u11-windows-i586.exe
      extracting jre.msi
      extracting jre1041.MST
      extracting jre2052.MST
      extracting src.zip
      extracting tools.zip
      extracting COPYRIGHT
      extracting jaureg
    jaureg: checksum error
      extracting jucheck
    jucheck: checksum error
      extracting jusched
    jusched: checksum error
      extracting task.xml
    task.xml: checksum error
      extracting task64.xml
    task64.xml: checksum error
    All done, errors in processing 5 file(s)
    Do we have a problem here? Does anyone know why the binaries are failing when decompression?
    I've double verified the md5sums of the java binaries.
    -Mad.

    When using cabextract to extract JDK and JRE 8u5 or 8u11 .exe files checksum errors occur in certain cab files.
    Here's what happens:
    Extracting cabinet: jdk-8u11-windows-i586.exe
      extracting jre.msi
      extracting jre1041.MST
      extracting jre2052.MST
      extracting src.zip
      extracting tools.zip
      extracting COPYRIGHT
      extracting jaureg
    jaureg: checksum error
      extracting jucheck
    jucheck: checksum error
      extracting jusched
    jusched: checksum error
      extracting task.xml
    task.xml: checksum error
      extracting task64.xml
    task64.xml: checksum error
    All done, errors in processing 5 file(s)
    Do we have a problem here? Does anyone know why the binaries are failing when decompression?
    I've double verified the md5sums of the java binaries.
    -Mad.

  • Move code between MathScript Node and MathScript Window

    It seems like there should be some way to easily move between the MathScript Node, block diagram view and the MathScript Window.
    All I can find is saving to a script and reloading in the other view.
    Am I missing something?

    Hi wildcatherder,
    That seems to be the only way that I've been able to see to interface the MathScript Node and the MathScript Window.
    Is there a particular reason you're switching back and forth between the two?
    Regards,
    Joel I.
    Applications Engineer
    National Instruments

  • Source code has syntax error in SAP PI7.1 Mapping Test

    HI All,
    IN SAP P7.1  created simple two data types, message types and Message Mapping with only 2 fields. While testing the mapping in Message Mapping it is giving the error as
    Source text of object Message Mapping: MM_Source_to_Target | http://abc.com has syntax errors:
    Source code has syntax error:
    I am able to activate the Datatypes and Message Types but not able to activate the Messge mapping.
    Please if any body faced the same problem please give the solution.
    One more thing is I am able to test the Message Mapping available in BASIS 7.1 Software Component objects. It is executing successfully...
    but otherthan this SWC it not working success fully.....
    Regards
    Sridhar Goli

    Hi David,
    please check the default trace. It may contain the entry:
    Error in compiling : java.io.IOException: Not enough space
    If that's the case, maybe there's too little space for the swap file/device.
    You should ensure that at least 2X (preferably 3X) of Heap (-Xmx) is configured as real swap
    Hope that helps.
    Regards,
    Gábor Klauzer

  • Syntax error when running ActionFileToXML.jsx or trying to install xtools

    I have an action set (actually a few) that I would REALLY love to rename but the actions are calling "sub" actions within the action set which means that the action set name is hard-coded into the actions in many places.
    Originally, I tried to edit my actions with a hex editor to try and change the name and references but realised I was limited to renaming with the same number of characters unless I parsed the file first... so I gave up on that. Then I came across Xbytor's awesome ActionFileToXML script, but I get a syntax error when running both the To and From XML scripts at root.@date = Stdlib.toISODateString();
    I then figured I would go straight for the latest xtools instead but when running the install (in CS2) I get a rather long syntax error and so the install fails. The script mentioned that there is a log file that I should email to Xbytor, but I figured I would post here instead of bothering him directly so he has more of a choice about whether he wants to be bothered by me Or maybe someone else can answer if it is a stupid newbie problem.
    Thanks heaps!
    Gab
    ETA: I'm running CS2 on XP if that makes any difference. If so, I may be able to use a friend's Mac with CS3.

    Thanks for the quick (and very useful) response!
    I made the changes to the mentioned files and the scripts were able to
    progress further, but only until the next E4X syntax (node.@key=key;).
    Rather than continue to hack at your code, I figured I should downgrade to a
    previous version (as you also suggested).  I initially tried v1.5 and the
    ActionFileToXML worked perfectly but ActionFileFromXML failed with an
    illegal argument error.
    Before looking too deeply into the error, I figured I would try v1.6 and
    found that both the scripts were able to complete successfully. The
    resulting atn file has a couple of bugs in it (such as "Set current layer"
    having a knockout setting of  which causes the action to crash),
    but nothing that I can't just copy back from my original script.
    Thanks HEAPS for your assistance and for the awesome scripts in the first
    place! Extremely greatly appreciated!

  • Merged dimension gives #syntax error

    Hi everybody,
    i have a simple report that contains 2 query.
    i merged two dimensions and everything looks like fine.
    but when i just refresh the query it gives me syntax error;
    bo system : 4.1 sp3 and both of queries are bex queries.any suggestion please.

    Hi Veer,
    1) same behaviour with Applet as well as web mode
    2) No
    3) I created a webi report, added two bex queries, Country Code is the common dimension which I'm trying to merge. Once both BEx queries are freshed and the objects from both queries are available in in the report to choose from, I try to merge them Country Code, however the merge option isn't even available (i.e. it does not allow merging by selecting objects or choosing the merge from the menu). As a work around I pull the Country code in the report pane from each query as a seprarate objects, ( i notice Country code object from Query one has the values while the Country Code from the second query has the #TOREFRESH, although both query were refreshed at start).
    Since both Country Code objects are on the report cavas, I refresh both queries again. Now I see the values in both objects. Now if I select the Country code from the left hand panel it allows merging. After merging, I drag the new merage counry code on the report Cavas i see the combined values (so far so good). Next I refresh the report again and magically the merged objects is disappeared from the report canvas and the #SYNTAX erro is it remains there.
    As I said, I am using 4.1 with Sup Pak 3, build 1257.
    Any help would be appreciated.
    Regards
    WAK

  • F-22 & f-48 syntax error

    while posting of business transaction in f-22 & f-48  after g/l account number the system showing syntax error tax code is missing
    Runtime Errors         SYNTAX_ERROR
    Date and Time          06.05.2009 11:42:28
    Short text
         Syntax error in program "SAPLF042 ".
    What happened?
         Error in the ABAP Application Program
         The current ABAP program "SAPMF05A" had to be terminated because it has
         come across a statement that unfortunately cannot be executed.
         The following syntax error occurred in program "SAPLF042 " in include "LF042U
          " in
         line 39:
         "The data object "T_XVBSEG" does not have a component called "TAXCODE2""

    Hi
    Please ensure that you are assigned the tax codes in OBCL & please let me know you are geting these errors for only f-22 & f-48 only. 
    hope this will help you. 
    Regards
    Ram

  • Error C2059: syntax error: ' tag ::*'

      
    Hello,
    I'm trying to adapt some Microsoft code (member.cpp in Detours) for my case
    ( I just want to replace :
    void CMember::Target(void)
    by
    QString QString::fromAscii(const char *str, int size):
    MS Code :
    class CMember
    public:
    void Target(void);
    void CMember::Target(void)
    printf(" CMember::Target! (this:%p)\n", this);
    //////////////////////////////////////////////////////////////// Detour Class.
    class CDetour /* add ": public CMember" to enable access to member variables... */
    public:
    void Mine_Target(void);
    static void (CDetour::* Real_Target)(void);
    // Class shouldn't have any member variables or virtual functions.
    void CDetour::Mine_Target(void)
    printf(" CDetour::Mine_Target! (this:%p)\n", this);
    (this->*Real_Target)();
    void (CDetour::* CDetour::Real_Target)(void) = (void (CDetour::*)(void))&CMember::Target;
    My code :
    class CDetour /* add ": public CMember" to enable access to member variables... */
    public:
    QString Mine_Target(const char *str, int size);
    static QString (CDetour::* Real_Target)(const char *str, int size);
    // Class shouldn't have any member variables or virtual functions.
    QString CDetour::Mine_Target(const char *str, int size)
    printf(" CDetour::Mine_Target! (this:%p)\n", this);
    (this->*Real_Target)(str, size);
    QString (CDetour::* CDetour::Real_Target)(const char *str, int size) = (CDetour::*)(const char *str, int size)&QString::fromAscii;
     But I get :
    error C2059: syntax error: '< tag >::*'
    for the last line
    And If I write instead :
    QString (CDetour::* CDetour::Real_Target)(const char *str, int size) = (QString(CDetour::*)(const char *str, int size))&QString::fromAscii;
    I get :
    error C2440: 'type cast' : impossible to convert from 'QString (__cdecl *)(const char *,int)' into 'QString (__thiscall CDetour::* )(const char *,int)'
    Thanks.

    On 1/30/2015 11:26 AM, Jeff666 wrote:
    Thanks for your answer, but I get the same type cast error :
    error C2440: 'type cast ' : impossible to convert from 'QString (__cdecl *)(const char *,int)' into 'CDetour::TargetType'
    Ah. QString::fromAscii is a static member - basically, an ordinary function; it doesn't have a "this" pointer. Whereas the original sample you are working from deals with a non-static member function.
    I suppose you could so this (though I must admit I don't at all understand the point of the exercise):
    class CDetour {
    public:
    typedef QString (__cdecl *TargetType)(const char *str, int size);
    static TargetType Real_Target;
    static QString Mine_Target(const char *str, int size) {
    return Real_Target(str, size);
    CDetour::TargetType CDetour::Real_Target = &QString::fromAscii;
    Note that TargetType is no longer a pointer-to-member, but a regular function pointer.
    Igor Tandetnik

  • When trying to save a document , it says syntax error-what does that mean and how do I fix it?

    when trying to save a document that I typed, it says syntax error..what does that mean and how do I fix it so I can save my documents?

    Applescript is like HTML, Actionscript, or Javascript.
    SYNTAX is EVERYTHING.
    Unlike HTML, Dreamweaver will pop a syntax error when trying to save a javascript that is unworkable because of a Syntax Error. Flash will do the same with a bad Actionscript.
    AppleScript Editor is the same way as Dreamweaver or Flash.
    The reason is:
    Bad HTML - a browser simply won't load the page or it'll load it with missing or no content. Not all that bad.
    Bad Javascript - your browser can lock up and if the script is complex enough, it can lock up your entire system.
    Bad Actionscript - just like bad javascript, it can potentially lock your entire system.
    Bad Applescript - can lock up your entire system.
    With Windows, viruses are often improperly read as SYNTAX errors in Actionscript or Javascript. That's not a worry with an AppleScript, but the possibility of locking up your system is worth a warning.
    You need to double check your syntax to be sure you haven't got something missing or improperly written.

Maybe you are looking for

  • Report: Classification view of material master

    Hi, We have activated Batch management for materials. But for certain material codes, users have not maintained the Classification view. Is there any report by which we can knowu2019 whether classification view for the material have been maintained o

  • TV Show not showing on iPad

    Hi, I recently purchased a TV show on my Mac, opted not to download it due to size and kept it in iCloud to stream. It appears in the Videos app on my iPhone 5S but not on my iPad Air. It shows the first two seasons only on my iPad Air but the recent

  • Context Sensitive Help in Browser based AIR

    Hi, I have looked through all the posts here and it doesn't help. I am using RH8, fully updated. I am coming from a html web page, part of an AJAX applications output, and I need to get to the right page in AIR, which is the only Help I can find that

  • Can no longer play dvd's

    I used to be able to play dvd's on my laptop.  Now I get a Powerdvd screen telling me to upgrade for $60 to be able to play MPEG-2.  Every DVD I have tried has given me the same result.  Just looking for a solution without having to spend anymore $. 

  • In messages send button stopped working

    send button has stopped working