arthwang / vsc-prolog

A VS Code extension that provides language support for prolog
MIT License
97 stars 22 forks source link

Extension doesn't work cross-platform due to requiring an explicit path #58

Closed bmitc closed 1 year ago

bmitc commented 2 years ago

I am getting the error:

Cannot lint the prolog file. The Prolog executable was not found.
Use the 'prolog.executablePath' setting to configure

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 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.

bmitc commented 1 year ago

This repository is not active. Closing this to clear out my open issues.