update for visual basic indent script

2024-05-20 Fir de Conversatie Michael Soyka
(addend As Integer) Static Integer accumulator accumulator = accumulator + addend TestFriend = accumulator End Function Sub TestTypeKeyword() Type EmployeeRecord ' Create user-defined type. ID As Integer ' Define elements of dat

Re: bwipeout "%" fails with E94 in vim9script

2024-05-13 Fir de Conversatie Michael Soyka
Chris, Thank you for the explanation but I don't think it explains everything.  See below. On 05/13/2024 4:15 PM, Christian Brabandt wrote: On Mo, 13 Mai 2024, Michael Soyka wrote: Yes, your are right- the bwipeout command succeeds without the double quotes in vim9script. Thanks fo

Re: bwipeout "%" fails with E94 in vim9script

2024-05-13 Fir de Conversatie Michael Soyka
ation! On 05/13/2024 4:15 PM, Christian Brabandt wrote: On Mo, 13 Mai 2024, Michael Soyka wrote: Yes, your are right- the bwipeout command succeeds without the double quotes in vim9script. Thanks for the solution! Given that, what feature of vim9script causes the error when double quotes ar

Re: bwipeout "%" fails with E94 in vim9script

2024-05-13 Fir de Conversatie Michael Soyka
this should be added to vim9-differences documentation. On Monday, May 13, 2024 at 1:16:25 PM UTC-4 Christian J. Robinson wrote: Try it without the quotes: bwipeout % On Mon, May 13, 2024 at 10:55 AM Michael Soyka wrote: In the process of converting a file from vimscript to vim9script, I

bwipeout "%" fails with E94 in vim9script

2024-05-13 Fir de Conversatie Michael Soyka
In the process of converting a file from vimscript to vim9script, I came across the following inconsistent behavior with the ex-command bwipeout "%". I'm running gvim 9.1.136 in Windows 10. The problem is demonstrated by the two scripts below. bwipeoutBug.vim: " Source this script, then e

Adding test target to Make_cyg_ming.mak

2020-09-22 Fir de Conversatie Michael Soyka
Vim developers, I am in the process of adding a "test" target to Make_cyg_ming.mak so that the test suite can be run from src. That makefile supports cygwin builds as well as mingw builds. My question is which makefile in testdir is used when testing the cygwin build? I looks like it would

Re: [vim/vim] Tinytests (#6993)

2020-09-22 Fir de Conversatie Michael Soyka
On 09/22/2020 4:34 AM, Bram Moolenaar wrote: Michael Soyka wrote: I do not see any reference to testdir/Make_ming.mak from any of the Makefiles in the src directory. The src/Make_cyg_ming.mak file does not even have a "test" target. Only src/Make_mvc.mak refers to testdir/Make_dos.

Re: tinytests can fail if .ok fileformat is wong (Make_ming.mak)

2020-09-19 Fir de Conversatie Michael Soyka
On Wednesday, September 16, 2020 at 9:42:14 AM UTC-4, Bram Moolenaar wrote: > > > Michael Soyka wrote: > > > Using Make_ming.mak, the "tinytests" collection of build tests will fail > if > > the associated .ok file has Windows line endings. This happens

tinytests can fail if .ok fileformat is wong (Make_ming.mak)

2020-09-15 Fir de Conversatie Michael Soyka
Vim developers, Using Make_ming.mak, the "tinytests" collection of build tests will fail if the associated .ok file has Windows line endings. This happens because the test.out file is explicitly set to have unix/linux line endings but the .ok file has not been converted and so "diff" concludes

Incorrect path separator used in testdir/Make_ming.mak

2020-09-13 Fir de Conversatie Michael Soyka
Vim developers, The following statement if not exist $@ $(DEL) $@ on line 98 in testdir/Make_ming.mak has two errors: 1. it attempts to delete a non-existing file and 2. the path that is substituted for $@ includes unix/linux path separators. The attached patch fixes both. Regards,

Re: Cannot build "small" gvim on Windows

2020-05-18 Fir de Conversatie Michael Soyka
On Sunday, May 17, 2020 at 11:15:56 PM UTC-4, Ken Takata wrote: > > Hi, > > 2020/5/18 Mon 9:37:10 UTC+9 Michael Soyka wrote: >> >> Vim developers, >> >> When I try to build gvim on Wiindows XP using mingw with FEATURES=SMALL, >> I get "windowsVer

Cannot build "small" gvim on Windows

2020-05-17 Fir de Conversatie Michael Soyka
Vim developers, When I try to build gvim on Wiindows XP using mingw with FEATURES=SMALL, I get "windowsVersion undeclared" on line 839 of file os_win32.c. This variable is instantiated in globals.h but only if FEAT_EVAL is defined and this happens only for NORMAL builds. The compilation err

Re: +autochdir is not listed in +feature-list topic

2020-03-19 Fir de Conversatie Michael Soyka
On Thursday, March 19, 2020 at 7:39:20 AM UTC-4, Bram Moolenaar wrote: > > > Michael Soyka wrote: > > > Feature +autochdir is not included in the +feature-list topic in > > runtime/doc/various.txt. The attached patch adds it. Feel free to > rewrite > >

+autochdir is not listed in +feature-list topic

2020-03-18 Fir de Conversatie Michael Soyka
Bram / Vim developers: Feature +autochdir is not included in the +feature-list topic in runtime/doc/various.txt. The attached patch adds it. Feel free to rewrite as necessary. -mike -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text

Re: vim.exe locks-up in Test_range()

2020-01-28 Fir de Conversatie Michael Soyka
On Tuesday, January 28, 2020 at 7:17:27 AM UTC-5, Ken Takata wrote: > > Hi, > > I also faced the same issue. > > 2020/1/28 Tue 19:18:26 UTC+9 Bram Moolenaar wrote: >> >> >> Michael Soyka wrote: >> >> > Builtin function feedinput is called i

vim.exe locks-up in Test_range()

2020-01-27 Fir de Conversatie Michael Soyka
Bram, et al, Builtin function feedinput is called in Test_range, file testdir/test_functions.vim. This function works only with +unix or GUI is running. Calling this function will cause vim.exe (without GUI) to lockup (Windows 10). I've not used "CheckUnix" and "CheckGui" in the attached p

Re: Test of "set renderoptions=type:directx" fails on Windows XP

2019-12-27 Fir de Conversatie Michael Soyka
On Friday, December 27, 2019 at 7:50:18 AM UTC-5, Bram Moolenaar wrote: > > > Michael Soyka wrote: > > > When the DIRECTX feature is enabled at compilation, the setting of > option > > 'renderoptions' to "type:directx" causes gvim to load &

Re: Test of "set renderoptions=type:directx" fails on Windows XP

2019-12-27 Fir de Conversatie Michael Soyka
On Friday, December 27, 2019 at 7:50:18 AM UTC-5, Bram Moolenaar wrote: > > > Michael Soyka wrote: > > > When the DIRECTX feature is enabled at compilation, the setting of > option > > 'renderoptions' to "type:directx" causes gvim to load &

Test of "set renderoptions=type:directx" fails on Windows XP

2019-12-26 Fir de Conversatie Michael Soyka
Vim developers, When the DIRECTX feature is enabled at compilation, the setting of option 'renderoptions' to "type:directx" causes gvim to load "dwrite.dll" which is not available from Microsoft for Windows XP systems. The load attempt generates error E474 which causes the test script "opt_tes

linker ma-files not deleted by clean

2019-12-09 Fir de Conversatie Michael Soyka
The clean target in the cygwin/ming makefile does not delete map files created by the linker. The attached patch is my proposed fix. -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit htt

Re: More prompt is displayed in test function

2019-11-08 Fir de Conversatie Michael Soyka
On 11/08/2019 5:00 PM, Bram Moolenaar wrote: Michael Soyka wrote: In function Test_script_local_func ,defined in test_vimscript.vim, the 'compatible' option is turned off. This has the side effect of turning the 'more' option on which can cause test execution to be halte

More prompt is displayed in test function

2019-11-08 Fir de Conversatie Michael Soyka
In function Test_script_local_func ,defined in test_vimscript.vim, the 'compatible' option is turned off. This has the side effect of turning the 'more' option on which can cause test execution to be halted by the more prompt. The attached patch prevents this by setting 'nomore' after 'nocp'.

Re: [vim/vim] :! {cmd} quoting issues on windows 10 when using bash as shell (#4950)

2019-09-17 Fir de Conversatie Michael Soyka
In my version of git-for-windows, bash defines that environment variable as ProgramW6432. On Tuesday, September 17, 2019 at 6:10:01 PM UTC-4, CrispyDrone wrote: > > *Describe the bug* > I've exhausted all options and followed the documentation but am unable to > get :! {cmd} to work with the f

Suggested follow-on to patches 474 and 478 (if_perl)

2018-10-15 Fir de Conversatie Michael Soyka
Since patch 474 places if_perl.c in "auto", the following patch is suggested.  I can't test the Visual C changes but it looks like it should work. diff --git a/src/Make_cyg_ming.mak b/src/Make_cyg_ming.mak index e213b803d..05725e988 100644 --- a/src/Make_cyg_ming.mak +++ b/src/Make_cyg_ming.ma

Re: [vim/vim] [MVC/MING] Exuberant ctags does not process if_perl.xs (#3526)

2018-10-10 Fir de Conversatie Michael Soyka
On 10/10/2018 4:54 AM, K.Takata (Vim Github Repository) wrote: Hm, isn't it the same for the |Makefile| for unix like systems? I can't respond to this.  There are several implementations of the ctags utility.  I don't know how one could programatically distinguish between them. P.S. It seem

Re: [vim/vim] [MVC/MING] Exuberant ctags does not process if_perl.xs (#3526)

2018-10-10 Fir de Conversatie Michael Soyka
On 10/10/2018 4:54 AM, K.Takata (Vim Github Repository) wrote: Hm, isn't it the same for the |Makefile| for unix like systems? P.S. It seems that you are not familiar with markdown. Use a pair of triple backquotes to surround your code. E.g. |```diff (Paste your diff code here) ```| |I agre

Unasked-for vertical split created in second tabbed window

2018-09-21 Fir de Conversatie Michael Soyka
Problem Statement.   Unasked-for vertical split created in second tabbed window Test Environment.   gVim, patch 413 (https://www.vim.org/download.php#pc)   Windows 10, 64-bit   Windows XP, 32-bit Problem Demonstration.   There are two requirements to demonstrate the problem:     1.  an autocmd

Re: If-tests in src/po/Make_ming.mak do not work as intended

2018-08-07 Fir de Conversatie Michael Soyka
On 8/7/2018 1:26 PM, Ken Takata wrote: Hi, 2018/8/8 Wed 1:46:02 UTC+9 Michael Soyka wrote: On 8/7/2018 11:46 AM, Ken Takata wrote: Hi, 2018/8/8 Wed 0:39:08 UTC+9 Bram Moolenaar wrote: Ken Takata wrote: 2018/8/7 Tue 10:48:19 UTC+9 Michael Soyka wrote: On 8/6/2018 8:45 PM, Ken Takata wrote

Re: If-tests in src/po/Make_ming.mak do not work as intended

2018-08-07 Fir de Conversatie Michael Soyka
On 8/7/2018 11:46 AM, Ken Takata wrote: Hi, 2018/8/8 Wed 0:39:08 UTC+9 Bram Moolenaar wrote: Ken Takata wrote: 2018/8/7 Tue 10:48:19 UTC+9 Michael Soyka wrote: On 8/6/2018 8:45 PM, Ken Takata wrote: [...] It appears src/Make_cyg_ming.mak also does this: ifneq (sh.exe, $(SHELL

Re: If-tests in src/po/Make_ming.mak do not work as intended

2018-08-06 Fir de Conversatie Michael Soyka
On 8/6/2018 8:45 PM, Ken Takata wrote: Hi, 2018/8/7 Tue 5:58:56 UTC+9 Bram Moolenaar wrote: Problem --- The if-tests in the makefile src/po/Make_ming.mak do not do what is intended. Furthermore, they do not allow for the possibility that the value of the make variable SHELL might include a

Re: If-tests in src/po/Make_ming.mak do not work as intended

2018-08-06 Fir de Conversatie Michael Soyka
On 8/6/2018 5:10 PM, Michael Soyka wrote: On 8/6/2018 4:58 PM, Bram Moolenaar wrote: Problem --- The if-tests in the makefile src/po/Make_ming.mak do not do what is intended.  Furthermore, they do not allow for the possibility that the value of the make variable SHELL might include a path

Re: If-tests in src/po/Make_ming.mak do not work as intended

2018-08-06 Fir de Conversatie Michael Soyka
On 8/6/2018 4:58 PM, Bram Moolenaar wrote: Problem --- The if-tests in the makefile src/po/Make_ming.mak do not do what is intended. Furthermore, they do not allow for the possibility that the value of the make variable SHELL might include a path specification. Issues -- 1. The if-tes

Re: Trying to build with MinGW

2018-05-21 Fir de Conversatie Michael Soyka
On 5/21/2018 4:50 PM, Bram Moolenaar wrote: Michael Soyka wrote: On 5/20/2018 12:30 PM, Bram Moolenaar wrote: I want to try debugging on MS-Windows with gdb. I normally build with MSVC, but I don't see a way to use that executable with gdb (perhaps it's possible with some com

Re: Trying to build with MinGW

2018-05-21 Fir de Conversatie Michael Soyka
On 5/20/2018 12:30 PM, Bram Moolenaar wrote: I want to try debugging on MS-Windows with gdb. I normally build with MSVC, but I don't see a way to use that executable with gdb (perhaps it's possible with some compiler flag?). So I'll use MinGW for compiling. MinGW provides gcc and make, so I exp

Re: Use of ICONV in src/Make_cyg_ming.mak is inconsistent with its value (tag v8.0.1184)

2017-10-09 Fir de Conversatie Michael Soyka
On 10/9/2017 4:46 PM, Bram Moolenaar wrote: Michael Soyka wrote: Vim Developers: In the file src/Make_cyg_ming.mak, the variable ICONV is given the value "yes" on line 51, suggesting it is intended to be boolean valued.  It is tested as a boolean on line 847 but is also used,

Use of ICONV in src/Make_cyg_ming.mak is inconsistent with its value (tag v8.0.1184)

2017-10-08 Fir de Conversatie Michael Soyka
Vim Developers: In the file src/Make_cyg_ming.mak, the variable ICONV is given the value "yes" on line 51, suggesting it is intended to be boolean valued.  It is tested as a boolean on line 847 but is also used, I believe incorrectly, on lines 848 and 849: 847 ifneq (yes, $(ICONV)) 848 LIB +

Remove references to obsolete tests in testdir/Make_ming.mak

2016-11-06 Fir de Conversatie Michael Soyka
Vim developers, Build test numbers 71 and 74 have been deleted from the git repository but are still referenced in the ming makefile. The following diff illustrates the proposed change: diff --git a/src/testdir/Make_ming.mak b/src/testdir/Make_ming.mak index 3330691..ab6a60b 100644 --- a/src

Re: Bug: make cannot run testdir/Make_ming.mak using a unix shell under Windows 10

2016-09-05 Fir de Conversatie Michael Soyka
Hi Ken, On 9/5/2016 12:26 AM, Ken Takata wrote: Hi mike, 2016/9/5 Mon 10:07:00 UTC+9 Michael Soyka wrote: The makefile testdir/Make_ming.mak contains statements of the form: if exist test.ok $(DEL) test.ok which can only be executed by one of the DOS/Windows command shells such as

Bug: make cannot run testdir/Make_ming.mak using a unix shell under Windows 10

2016-09-04 Fir de Conversatie Michael Soyka
The makefile testdir/Make_ming.mak contains statements of the form: if exist test.ok $(DEL) test.ok which can only be executed by one of the DOS/Windows command shells such as command.com or cmd.exe My version of make, gnu 3.82.90, sets the SHELL make variable to the value "C:/MinGW/msys/1

Test test_getcwd needs to have noswapfile option set

2016-09-04 Fir de Conversatie Michael Soyka
The Vim test "test_getcwd" creates a temporary directory "Xtopdir" that should be deleted at test conclusion but is not. This directory is not deleted because the test has created swap files that apparently are open when the test attempts to cleanup before terminating. Setting the noswapfile o

Re: problems with git and maintaining files

2016-08-19 Fir de Conversatie Michael Soyka
On 8/19/2016 4:05 PM, Charles E Campbell wrote: Hello: I'm having a problem with using git and making local changes to files I maintain. In particular: I make changes to syntax/sh.vim (locally), and then git fails: runtime/syntax/sh.vim: needs merge runtime/syntax/sh.vim: needs merge runtime/s

Re: Proposal: adding a "test" target to src/Make_cyg_ming.mak

2016-04-03 Fir de Conversatie Michael Soyka
On 4/3/2016 10:01 PM, Tony Mechelynck wrote: On Mon, Apr 4, 2016 at 1:10 AM, Michael Soyka wrote: Vim developers, Currently the Vim test scripts can only be run using the testdir/Make_ming.mak makefile. I propose adding a "test" target to src/Make_cyg_ming.mak to make it possi

Proposal: adding a "test" target to src/Make_cyg_ming.mak

2016-04-03 Fir de Conversatie Michael Soyka
Vim developers, Currently the Vim test scripts can only be run using the testdir/Make_ming.mak makefile. I propose adding a "test" target to src/Make_cyg_ming.mak to make it possible to run those tests from the "src" directory. If this is done, the instructions for running these test using

Re: Patch 7.4.982

2015-12-30 Fir de Conversatie Michael Soyka
Hi Ken, On 12/30/2015 12:35 PM, Ken Takata wrote: Hi Michael, 2015/12/31 Thu 2:10:14 UTC+9 Michael Soyka wrote: On 12/30/2015 11:40 AM, Bram Moolenaar wrote: Ken Takata wrote: 2015/12/30 Wed 22:46:09: UTC+9 Bram Moolenaar wrote: I wrote: Ken Takata wrote: 2015/12/29 Tue 21:59:54 UTC+9

Re: Patch 7.4.982

2015-12-30 Fir de Conversatie Michael Soyka
On 12/30/2015 11:40 AM, Bram Moolenaar wrote: Ken Takata wrote: 2015/12/30 Wed 22:46:09: UTC+9 Bram Moolenaar wrote: I wrote: Ken Takata wrote: 2015/12/29 Tue 21:59:54 UTC+9 Bram Moolenaar wrote: Ken Takata wrote: 2015/12/29 Tue 6:25:06 UTC+9 Bram Moolenaar wrote: Christian Brabandt wr

Re: Testing on non-Unix systems

2015-12-07 Fir de Conversatie Michael Soyka
On 12/7/2015 5:45 AM, Nikolay Aleksandrovich Pavlov wrote: 2015-12-07 1:35 GMT+03:00 Michael Soyka <mailto:mso...@cox.net>>: On 12/6/2015 4:41 PM, Bram Moolenaar wrote: Michael Soyka wrote: On 12/5/2015 1:47 PM, Bram Moolenaar wrote: Mich

Re: Testing on non-Unix systems

2015-12-06 Fir de Conversatie Michael Soyka
On 12/6/2015 4:41 PM, Bram Moolenaar wrote: Michael Soyka wrote: On 12/5/2015 1:47 PM, Bram Moolenaar wrote: Michael Soyka wrote: On 12/4/2015 5:27 PM, Bram Moolenaar wrote: Michael Soyka wrote: On 12/3/2015 4:13 PM, Bram Moolenaar wrote: I have added "new style" testing for

Re: Testing on non-Unix systems

2015-12-05 Fir de Conversatie Michael Soyka
On 12/5/2015 1:47 PM, Bram Moolenaar wrote: Michael Soyka wrote: On 12/4/2015 5:27 PM, Bram Moolenaar wrote: Michael Soyka wrote: On 12/3/2015 4:13 PM, Bram Moolenaar wrote: I have added "new style" testing for Unix. It appears to work well, so now we also need this for other

Re: Testing on non-Unix systems

2015-12-04 Fir de Conversatie Michael Soyka
On 12/4/2015 5:27 PM, Bram Moolenaar wrote: Michael Soyka wrote: On 12/3/2015 4:13 PM, Bram Moolenaar wrote: I have added "new style" testing for Unix. It appears to work well, so now we also need this for other platforms. The Unix Makefile only needed a few extra lines, hopefully

Re: Testing on non-Unix systems

2015-12-03 Fir de Conversatie Michael Soyka
On 12/3/2015 4:13 PM, Bram Moolenaar wrote: I have added "new style" testing for Unix. It appears to work well, so now we also need this for other platforms. The Unix Makefile only needed a few extra lines, hopefully it's also simple for others. I would prefer someone who knows the platform to

Cannot build 32-bit Vim using 64-bit capable mingw

2015-11-29 Fir de Conversatie Michael Soyka
Vim developers, I am trying to build 32-bit Vim using a mingw compiler that generates 64-bit output files by default. I specify ARCH=i686 on the make command line. Compilation fails with the first file because -m64 is the compiler default. This problem would not occur if the makefile src/M

Re: Build test "listchars" fails in Windows

2015-11-29 Fir de Conversatie Michael Soyka
On 11/29/2015 3:26 PM, Christian Brabandt wrote: On So, 29 Nov 2015, Bram Moolenaar wrote: Michael Soyka wrote: As of patch 942, the build-test "listchars" fails under Windows when using the mingw compiler. Specifically, the command "diff test.out test_listchars.ok" fa

ifnew statement in ming makefiles sometimes do not work as planned on a Windows platform

2015-11-28 Fir de Conversatie Michael Soyka
Vim developers, Many ming makefiles contain the following statement: ifneq (sh.exe,$(SHELL)) A review of each Makefile shows that the intention is that when the condition is true, the execution environment is unix-like and when false, it is dos-like. Let's assume we're using the mingw too

Build test 17 does not clean-up before it exits

2015-11-28 Fir de Conversatie Michael Soyka
Vim developers, Build test #17 creates a scratch subdirectory "Xdir1" which it does not delete at the end of the test script src/testdir/test17.in. I'm running these tests using the Make_ming.mak makefile. In that file, the command "-$(DEL) X*" is run after each test completes and it fails

Build test "listchars" fails in Windows

2015-11-28 Fir de Conversatie Michael Soyka
Vim developers, As of patch 942, the build-test "listchars" fails under Windows when using the mingw compiler. Specifically, the command "diff test.out test_listchars.ok" fails because test.out file is in unix format and test_listchars.ok" is in DOS format. As I see it, there are two ways t

Problem with Makefiles using mingw under Windows

2015-03-11 Fir de Conversatie Michael Soyka
Hello all. A while back, the mingw Makefile was split into two: Make_ming.mak and Make_cyg_ming.mak. The first of the two files has definitions for CFLAGS and WINRES_FLAGS; Make_cyg_ming.mak is then included and those two make variables are reinitialized (just below "end of choices"). In e

Problems building 32-bit vim using 64-bit mingw

2014-10-15 Fir de Conversatie Michael Soyka
While trying to build a 32-bit version of gvim using 64-bit mingw under 32-bit Windows XP, I've come across some problems with the Makefiles (Make_ming.mak) that prevent a successful build. These problems are due to my attempt to build a 32-bit app using a 64-bit capable compiler. In this envi