Sublime Forum

Build system file_regex - file name is lowercased

#1

Hi,

when I compile using this build system:

"build_systems":
[
    {
        "name": "build",
        "windows":
        {
            "cmd": "build-windows.bat",
            "file_regex": "^([_:A-Za-z0-9./\\\\-]+\\.[cph]+)\\(([0-9]+)\\) : ()([a-zA-Z<>_:';{}?0-9.\\-+/()\\s=*,]+)"
        }
    }
]

I get an error like this one, but with the file path being printed out in lower case.

c:\users\vjekoslav\projects\project_name\source\opengl.cpp(63) : error C2059: syntax error : 'constant'

It should be

C:\Users\Vjekoslav\Projects\project_name\source\opengl.cpp(63) : error C2059: syntax error : 'constant'

If I have that file already opened, and press F4, sublime opens the same file in a new tab, because it thinks it’s a different file. It’s really annoying.

Did anyone experience similar issue?

0 Likes

#2

Is it a Microsoft compiler called inside that .bat file that is outputting the sloppy paths? Can’t it be made to behave before seeking to solve this from the Sublime side?

0 Likes

#3

its a regression in ST that paths have become case sensitive on Windows, hopefully it will be fixed in the next build and you won’t need to change your compiler output

0 Likes