Thanks, you nailed the problem. It is a one line fix to solve the issue. Guansong
1 diff -r 17e9c2874a58 src/eval.c 2 --- a/src/eval.c Wed Jul 09 20:51:08 2014 +0200 3 +++ b/src/eval.c Wed Jul 09 15:50:05 2014 -0400 4 @@ -225,7 +225,7 @@ 5 #define FUNCARG(fp, j) ((char_u **)(fp->uf_args.ga_data))[j] 6 #define FUNCLINE(fp, j) ((char_u **)(fp->uf_lines.ga_data))[j] 7 8 -#define MAX_FUNC_ARGS 20 /* maximum number of function arguments */ 9 +#define MAX_FUNC_ARGS 80 /* maximum number of function arguments */ 10 #define VAR_SHORT_LEN 20 /* short variable name length */ 11 #define FIXVAR_CNT 12 /* number of fixed variables */ 12 > -----Original Message----- > From: Xavier de Gaye [mailto:[email protected]] > Sent: Wednesday, July 09, 2014 10:43 AM > To: Zhang, Guansong; [email protected] > Subject: Re: [pyclewn] nb_command limit > > On 07/08/2014 07:25 AM, Zhang, Guansong wrote: > > Hi > > > > I got > > > > E740: Too many arguments for function <SNR>34_nbcommand > > when I > Crun > > :Crun -cc1 -fopenmp -omptargets=r600-unknown-unkown -omp- > target-mode -omp-module-id=19c0c37_811 -triple r600-unknown-unkown -S > -disable-free -main-file-name a1.c -mrelocation-model static > -mdisable-fp- > elim -fmath-errno -mconstructor-aliases -target-linker-version 2.24 -v - > coverage-file /home/guansong/Projects/working/target/a1-tgt-r600- > unknown-unkown.s -resource-dir > /data/guansong/Projects/clang- > omp.latest/build/Debug+Asserts/bin/../lib/clang/3.4 -fno-dwarf-directory- > asm -fdebug-compilation-dir /home/guansong/Projects/working/target - > ferror-limit 19 > -fmessage-length 0 -mstackrealign -fobjc-runtime=gcc - > fdiagnostics-show-option -vectorize-slp -o a1-tgt-r600-unknown-unkown.s -x > cpp-output a1-tgt-r600-unknown-unkown.i > > this is a clang command line > arg. > > > > So not sure where is this limit? In pyclewn or vim? How to increase it? If > I > remove some of them, clang can run inside pyclewn as expected ... > > > This is a Vim error message. Type ":help E740" to read its description (a vim > function is limited to 20 arguments). > > To overcome this limitation, try passing the arguments to the gdb command > line by setting the "pyclewn_args" vim global variable *before* running the > ":Pyclewn" command. > > For example (note that the 'clang' executable to debug is the first item of > the > list): > > :let pyclewn_args="--args=\"--args clang arg1 arg2 arg3 ... arg21 arg22\"" > > The first '--args' is the pyclewn command line option. > The second '--args' is the gdb command line option. > > Changes to "pyclewn_args" are ignored after the plugin has been loaded, so > it is necessary to start a new instance of Vim if you need to start clang with > different options, > > Xavier ------------------------------------------------------------------------------ Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft _______________________________________________ Pyclewn-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyclewn-general
