arthwang / vsc-prolog

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

Wrong syntax error with illegal characters #36

Open filipetoyoshima opened 5 years ago

filipetoyoshima commented 5 years ago

Bug details

When using the add-on with .pl files which contain special characters, vscode acuse some errors. But when executing the file with swipl, that's ok, special characters are acceptable. The image contains both the error and the test which loads and consult the .pl file.

image

The example shows an accused line: temId(paraíba, 25). If I call on swipl, after loading the knowledge base, ?- temId(X, 25). I got X = paraíba. normally.

System

VSCode

code --version

1.33.1 51b0b28134d51361cf996d2f0a1c698247aeabd8 x64

OS

lsb_release -a

No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.6 LTS Release: 16.04 Codename: xenial

Prolog Interpreter

swipl --version

SWI-Prolog version 8.0.2 for x86_64-linux