Sarrus1 / sourcepawn-studio

VSCode extension for SourcePawn scripting
https://sarrus1.github.io/sourcepawn-studio/
MIT License
140 stars 22 forks source link

WSL: Include are not detected #352

Open Rushaway opened 9 months ago

Rushaway commented 9 months ago

Basic informations

Further Information

The extension can't find the location of the include running inside a WSL environnement. A solution can be a settings to add a settings for let user indicate the include path.

To Reproduce

You can install WSL with ubuntu 20.04 and follow this as exemple.

Code to reproduce the behaviour

Happen on every plugins, here is just an exemple

Expected behaviour

Find and apply the include path.

Error messages

$onExtensionRuntimeError(extensionId: ExtensionIdentifier, data: SerializedError): void {
        const error = new Error();
        error.name = data.name;
        error.message = data.message;
        error.stack = data.stack;
        this._internalExtensionService._onExtensionRuntimeError(extensionId, error);
        console.error(`[${extensionId.value}]${error.message}`);
        console.error(error.stack);
    }

https://pastebin.com/rrAApEPr image image

Sarrus1 commented 8 months ago

Thanks for reporting this, I haven't tested the extension on wsl much I am actively developing this branch, which hopefully will fix the issue: https://github.com/Sarrus1/sourcepawn-vscode/tree/feat/salsa