• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. How to escape unmatched parenthesis or something else in...

Stats

  • Locked Locked
  • Replies 7
  • Subscribers 143
  • Views 14720
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to escape unmatched parenthesis or something else in CIW?

greatqs
greatqs over 8 years ago

I'm doing CIW interactive scripting and somehow the CIW get stuck: It's not responding to my command after hit "enter" (if I hit "1+2"  then "enter", it respond nothing than "3" as nominal expected.

It behaves like some parenthesis get unmatched but I'm not sure. I tried "]" as found on below link and it doesn't work.  

Is there anyone know how to get out of this without restart the whole icfb session? Thanks!

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 8 years ago

    I'm assuming you must be using an old version because recent IC61 versions have highlighting in the CIW which makes this pretty clear.

    Assuming it's (say) IC5141, try entering "]

    (Double quote followed by close square bracket).

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • greatqs
    greatqs over 8 years ago

    Andrew,

    Thank you for your feedback. I'm using recent IC617 and CIW has syntax highlighting. I'm copying and paste code segment from my script file for experiments and somehow it get messed up.

    The problem is if somehow it get stucked by unmatched parenthesis (or something) else how can I escape (in IC61) and I tried "]" it doesn't work.Is there any other tricks?

    Thanks.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 8 years ago

    I can get it messed up if on Options->User Preferences I have "Enter Key Executes Command" unchecked. If it's checked, then ctrl-C gets you out of trouble. I did manage (by unchecking the option) to find that no matter what I entered - either quote marks, or ] or both that I couldn't get out - and ctrl-C didn't help.

    When I got stuck in this mode though, I then brought up the User Preferences, checked the "Enter Key Executes Command" and then ctrl-C in the CIW. However, now I seem to be stuck again.

    I've not had this issue however when I keep "Enter Key Executes Command" checked (which is the default) - what is your setting for this?

    I'd like to know so that I can report this to R&D.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • greatqs
    greatqs over 8 years ago

    Andrew,

    Thanks for checking this. My environment has "Options->User Preferences -> Enter Key Executes Command" unchecked by default. I tried check this when I'm stuck and can not get out like you. I will then modify my environment setting to bring this checked by default.

    BTW, could you please let me know what's the .cdsinit and .cdsenv command to modify/override the default setting?

    Thanks

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 8 years ago
    I filed CCR 1792966 to get this fixed.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • greatqs
    greatqs over 8 years ago
    Andrew,

    Could you please let me know what's the .cdsinit and .cdsenv command to modify/override the default setting?

    Thanks
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 8 years ago

    I also just realised that you have to use shift-Enter to enter commands when you're in the mode with Execute on Enter turned off. It breaks when you do a control-C in this mode, but it does seem to fix when I toggle the mode off and on again. Sometimes I need to hit shift-enter and other times I don't . Not quite sure of the logic...

    Anyway, the .cdsinit entry is:

    envSetVal("ui" "ciwCmdExecuteOnEnter" 'boolean t)

    and the .cdsenv entry is:

    ui ciwCmdExecuteOnEnter boolean t

    Note that t is actually the default, so you must have it turned off somewhere in your environment.

    Regards

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information