Skip to content

Fix import path for AiScriptErrorChecker on Linux#20

Open
darkeclipz wants to merge 1 commit into
Jvinniec:masterfrom
darkeclipz:master
Open

Fix import path for AiScriptErrorChecker on Linux#20
darkeclipz wants to merge 1 commit into
Jvinniec:masterfrom
darkeclipz:master

Conversation

@darkeclipz
Copy link
Copy Markdown

Hello,

I am using this extension on Linux and it doesn't load properly because a file is imported with the wrong casing for the name. It is using require("./AiScriptErrorChecker"), but the file is aiScriptErrorChecker.js. Files are case sensitive on Linux, so it breaks.

The fix is simple though, we require("./aiScriptErrorChecker"), which is what this PR does.

I hope you can merge this into the code and make a release because I really like the plug-in for support in VSCode.

Cheers!

Fixed the import of `aiScriptErrorChecker` on case-sensitive file systems (Linux).
@darkeclipz
Copy link
Copy Markdown
Author

In case this doesn't get updated, here is how you can fix it locally:

  1. Edit the file /home/XXX/.vscode/extensions/jvinniec.aoe2-aiscript-0.1.7/languageExtension/out/aiScriptParser.js.
  2. Change line 4 to const AiScriptErrorChecker_1 = require("./aiScriptErrorChecker");.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant