Tasks.json not working on Windows

Issue #97 on hold
Former user created an issue

When OmniPascal is enabled, it doesn't allow to edit tasks.json file and keep using unix directory separator "/" instead of windows backslashes "\", consequently trying to build will fail since it will consider .vscode as a command and not recognized as directory for the bat file.

As of now, disabling OmniPascal and replacing / with \ will make it work, sadly OmniPascal won't be present anymore.

Comments (3)

  1. Christopher Wosinski repo owner

    It works fine on all my Windows 10 machines even with "/" instead of "\". Are you running VSCode Insiders?

    In case the generated tasks.json doesn't fit your needs (which is common in complex projects) you can just turn off auto generation of tasks.json so that you can still use OmniPascal. Just go to settings and set "omnipascal.createBuildScripts"=false

  2. Rael Bauer

    Hello,

    I have the same issue on Window 7 x64:

    I get this error when running Tasks: Run test task

    > Executing task: .vscode/CompileOmniPascalServerProject.bat test <
    
    '.vscode' is not recognized as an internal or external command,
    operable program or batch file.
    The terminal process terminated with exit code: 1
    
    Terminal will be reused by tasks, press any key to close it.
    

    I followed your suggestion to disable createBuildScripts and also change the path from / to \\, then it works ok.

    VSC 1.29.1

  3. Log in to comment