Skip to content

Fix Windows and Mac crash on multiline HOC statements input from terminal.#2258

Merged
nrnhines merged 8 commits into
masterfrom
hines/readline-bug
Mar 10, 2023
Merged

Fix Windows and Mac crash on multiline HOC statements input from terminal.#2258
nrnhines merged 8 commits into
masterfrom
hines/readline-bug

Conversation

@nrnhines

@nrnhines nrnhines commented Mar 8, 2023

Copy link
Copy Markdown
Member

Closes #2257

Windows and Mac now act like linux for multiline HOC statements

$ nrniv
NEURON -- VERSION 9.0.dev-1312-g53ce9c5e2 hines/readline-bug (53ce9c5e2) 2023-03-08
Duke, Yale, and the BlueBrain Project -- Copyright 1984-2022
See http://neuron.yale.edu/neuron/credits

oc>proc foo() {
>	oc>print 5
>	oc>}
oc>foo()
5 
oc>

Note that on linux, the GUI is locked out during multiline statement input. On the mac an error is generated

    hoc_run1: caught exception: hoc_execerror: Cannot reenter parser. Maybe
    you were in the middle of a direct command.

nrnhines added 5 commits March 8, 2023 13:56
Note: if, in a multline statement, the gui tries to execute a statement,
an error is generated:
hoc_run1: caught exception: hoc_execerror: Cannot reenter parser. Maybe
you were in the middle of a direct command.
@codecov

codecov Bot commented Mar 8, 2023

Copy link
Copy Markdown

Codecov Report

Merging #2258 (f3b2f7f) into master (0f2ece5) will increase coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #2258      +/-   ##
==========================================
+ Coverage   56.87%   56.89%   +0.02%     
==========================================
  Files         620      620              
  Lines      121562   121562              
==========================================
+ Hits        69140    69165      +25     
+ Misses      52422    52397      -25     
Impacted Files Coverage Δ
src/oc/hoc.cpp 76.43% <ø> (+2.60%) ⬆️
src/nrnoc/init.cpp 89.94% <0.00%> (+0.17%) ⬆️
src/ivoc/xmenu.cpp 59.46% <0.00%> (+0.20%) ⬆️
src/ivoc/ivocmain.cpp 87.36% <0.00%> (+0.52%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@azure-pipelines

Copy link
Copy Markdown

✔️ 53ce9c5 -> Azure artifacts URL

@alexsavulescu alexsavulescu added the nrn-modeldb-ci-nightly Launch external ModelDB CI label Mar 8, 2023
@github-actions github-actions Bot removed the nrn-modeldb-ci-nightly Launch external ModelDB CI label Mar 8, 2023
@github-actions

github-actions Bot commented Mar 8, 2023

Copy link
Copy Markdown
Contributor

NEURON ModelDB CI: launching for 53ce9c5 via its drop url

@github-actions

github-actions Bot commented Mar 9, 2023

Copy link
Copy Markdown
Contributor

NEURON ModelDB CI: 53ce9c5 -> download reports from here

@azure-pipelines

Copy link
Copy Markdown

✔️ 00f097a -> Azure artifacts URL

@azure-pipelines

Copy link
Copy Markdown

✔️ f3b2f7f -> Azure artifacts URL

@nrnhines nrnhines merged commit 4eaf27f into master Mar 10, 2023
@nrnhines nrnhines deleted the hines/readline-bug branch March 10, 2023 11:51
nrnhines added a commit that referenced this pull request Sep 2, 2023
…inal. (#2258)

* MINGW: if in yyparse, rl_getc_function should = rl_getc

* Mac: rl_getc_function is always getc_hook. Allow multiline statements.
Note: if, in a multline statement, the gui tries to execute a statement,
an error is generated:
hoc_run1: caught exception: hoc_execerror: Cannot reenter parser. Maybe
you were in the middle of a direct command.

* test using nrniv -isatty    Mac and Windows have trouble with the test.
nrnhines added a commit that referenced this pull request Sep 6, 2023
…inal. (#2258)

* MINGW: if in yyparse, rl_getc_function should = rl_getc

* Mac: rl_getc_function is always getc_hook. Allow multiline statements.
Note: if, in a multline statement, the gui tries to execute a statement,
an error is generated:
hoc_run1: caught exception: hoc_execerror: Cannot reenter parser. Maybe
you were in the middle of a direct command.

* test using nrniv -isatty    Mac and Windows have trouble with the test.
nrnhines added a commit that referenced this pull request Sep 13, 2023
* Fix MacOS linux wheel backspace by upgrading ncurses-6.2 to 6.4 (#2484)

* Fix Windows and Mac crash on multiline HOC statements input from terminal. (#2258)

* Windows 11 fix for hoc icon. (#2279)

* test using nrniv -isatty    Mac and Windows have trouble with the test.

* Update the documentation for better clarity

* Pin cython to < 3. Workaround for #2430 (#2433)
Cherry picked from 116a541.
Eliminate non cython<3 changes from cherrypick

* Bump VERSION to 8.2.3 in CMakeLists.txt

* deal with .inputrc if missing on windows

* Backport changes from github docs workflow

* Disable shallow clone with the  option

* use  docs/domains/hocdomain.py from master for latest sphinx compatibility

* downgrade black version (30 python files have trivial format differences)

* Picked the "final:" fragment out of the master version.
Fixes "Final CI Expected ---  Waiting for status to be reported"

---------

Co-authored-by: Pramod S Kumbhar <pramod.s.kumbhar@gmail.com>
Co-authored-by: Alexandru Săvulescu <alexandru.savulescu@epfl.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot wrap after pressing Enter

3 participants