arthwang / vsc-prolog

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

eclipseclp executable path #30

Open arthwang opened 5 years ago

arthwang commented 5 years ago

What I tried: File -> Preferences -> Settings

  "prolog.dialect": "ecl",
  "prolog.executablePath": "C:\\Program Files\\ECLiPSe 7.0\\lib\\x86_64_nt\\eclipse.exe"

and

  "prolog.dialect": "ecl",
  "prolog.executablePath": "C:\\\"Program Files\"\\\"ECLiPSe 7.0\"\\lib\\x86_64_nt\\eclipse.exe"

The occuring error is a popup in the lower right corner of the editor window which says: "command 'prolog.load.document' not found"

I'm using Windows 10 x64.

Thanks!

Originally posted by @butcher211 in https://github.com/arthwang/vsc-prolog/issues/1#issuecomment-441014918

arthwang commented 5 years ago

Sorry. There are some bugs in VSC-Prolog regarding to windows path access in ecl. Why error occurs in use_module('c:\path\to\module') or use_module("c:\path\to\module") now in ecl 7?

arthwang commented 5 years ago

Found a workaround: cd("c:\go\to\dir"),use_module(the_module). Update to test if it works for you.

arthwang commented 5 years ago

Another important point: run vscode in administrator role in Windows when you first switch prolog dialects (e.g. switch from swi to ecl ). No administrator role needed after first switch. That is because VSC-Prolog needs to change syntax and snippet file linkages.

butcher211 commented 5 years ago

Hello,

I was testing the updated version on thursday and it worked. There was another issue where I would like to open a new issue coming thursday. This issue can be closed now.

Thanks!

billsioros commented 4 years ago

Sorry. There are some bugs in VSC-Prolog regarding to windows path access in ecl. Why error occurs in use_module('c:\path\to\module') or use_module("c:\path\to\module") now in ecl 7?

Are there any news on this matter ? As I m facing a quite similar issue. When loading a document the path is wrong.