Unfortunately, setting the executable path setting prolog.executablePath to an OS and machine specific path doesn't work cross-platform. I use VSCode across different OSs and machines, and I don't want to have a specific path in my settings, since my settings are automatically synced in VSCode. Extensions should not require OS and machine specific settings since these are common and expected VSCode use cases.
swipl is in my path, but by default, the extension generates the error
Cannot lint the prolog file. The Prolog executable was not found.
Use the 'prolog.executablePath' setting to configure
If I use the setting "prolog.executablePath": "swipl", that doesn't work. It isn't clear why that doesn't work but explicitly using /Applications/SWI-Prolog.app/Contents/MacOS/swipl does work. Although again, using an OS specific and explicit path doesn't work cross-platform.
I am getting the error:
I have seen and read https://github.com/arthwang/vsc-prolog/issues/4, https://github.com/arthwang/vsc-prolog/issues/13, https://github.com/arthwang/vsc-prolog/issues/46, and https://github.com/arthwang/vsc-prolog/issues/50.
Unfortunately, setting the executable path setting
prolog.executablePath
to an OS and machine specific path doesn't work cross-platform. I use VSCode across different OSs and machines, and I don't want to have a specific path in my settings, since my settings are automatically synced in VSCode. Extensions should not require OS and machine specific settings since these are common and expected VSCode use cases.swipl
is in my path, but by default, the extension generates the errorIf I use the setting
"prolog.executablePath": "swipl"
, that doesn't work. It isn't clear why that doesn't work but explicitly using/Applications/SWI-Prolog.app/Contents/MacOS/swipl
does work. Although again, using an OS specific and explicit path doesn't work cross-platform.