openmultiplayer / vscode-pawn

VS-Code extension for pawn language
https://open.mp
MIT License
16 stars 6 forks source link

Plugin incompatibility (vscode-auto-rename-tag) #4

Open mysy00 opened 1 year ago

mysy00 commented 1 year ago

As discussed on Discord and mentioned here: https://github.com/formulahendry/vscode-auto-rename-tag/issues/319

That plugin causes incompatibilities with some formatters, including this one (the plugin crashes when we format the code and undo it by ctrl+z). It's quite popular (11,925,585 installs as of now), so maybe it would be good to add information about it to the readme file and they don't blame this extension.

VSCode has a built-in tag linker but it lacks in functionalities, so people often look for other solutions and find the mentioned plugin.

Crash Log:

/home/mysy/.vscode/extensions/openmp.pawn-development-1.1.3/node_modules/astyle/dist/libastyle.js:123      throw ex;      ^RuntimeError: abort(Error: Illegal value for `line`) at Error:     at jsStackTrace (/home/mysy/.vscode/extensions/openmp.pawn-development-1.1.3/node_modules/astyle/dist/libastyle.js:1796:17)    at stackTrace (/home/mysy/.vscode/extensions/openmp.pawn-development-1.1.3/node_modules/astyle/dist/libastyle.js:1813:16)    at process.abort (/home/mysy/.vscode/extensions/openmp.pawn-development-1.1.3/node_modules/astyle/dist/libastyle.js:1596:44)    at process.emit (node:events:538:35)    at process.length (/home/mysy/.vscode/extensions/ms-vsliveshare.vsliveshare-1.0.5803/extension.js:394:51519)    at process.on.process.emit (/home/mysy/.vscode/extensions/formulahendry.auto-rename-tag-0.1.10/packages/extension/dist/webpack:/auto-rename-tag/node_modules/source-map-support/source-map-support.js:617:24)    at processEmit (/home/mysy/.vscode/extensions/ms-vsliveshare.vsliveshare-audio-0.1.91/node_modules/signal-exit/index.js:155:32)    at process.on.process.emit (/home/mysy/.vscode/extensions/github.copilot-1.67.7944/dist/extension.js:8:879917)    at emit (node:internal/process/promises:140:20)    at processPromiseRejections (node:internal/process/promises:274:27)    at processTicksAndRejections (node:internal/process/task_queues:97:32)    at process.abort (/home/mysy/.vscode/extensions/openmp.pawn-development-1.1.3/node_modules/astyle/dist/libastyle.js:1602:9)    at process.emit (node:events:538:35)    at process.length (/home/mysy/.vscode/extensions/ms-vsliveshare.vsliveshare-1.0.5803/extension.js:394:51519)    at process.on.process.emit (/home/mysy/.vscode/extensions/formulahendry.auto-rename-tag-0.1.10/packages/extension/dist/webpack:/auto-rename-tag/node_modules/source-map-support/source-map-support.js:617:24)    at processEmit (/home/mysy/.vscode/extensions/ms-vsliveshare.vsliveshare-audio-0.1.91/node_modules/signal-exit/index.js:155:32)    at process.on.process.emit (/home/mysy/.vscode/extensions/github.copilot-1.67.7944/dist/extension.js:8:879917)    at emit (node:internal/process/promises:140:20)    at processPromiseRejections (node:internal/process/promises:274:27)    at processTicksAndRejections (node:internal/process/task_queues:97:32)