rolandostar / tabletopsimulator-lua-vscode

Extension for VSCode to make writing Lua scripts for Tabletop Simulator easier.
Other
87 stars 16 forks source link

Not working for VS Code 1.94 #48

Open crohde7707 opened 2 weeks ago

crohde7707 commented 2 weeks ago

Looks like when my VS code updated to 1.94, the scripts for the extension stopped working, giving this image

chrislavoy commented 1 week ago

I get this error from Extension Host when trying to run Get Lua Scripts.

2024-10-10 08:57:38.583 [info] ExtensionService#_doActivateExtension rolandostar.tabletopsimulator-lua, startup: false, activationEvent: 'onCommand:ttslua.getScripts'
2024-10-10 08:57:38.605 [error] Activating extension rolandostar.tabletopsimulator-lua failed due to an error:
2024-10-10 08:57:38.605 [error] Error: ENOENT, vscode-oniguruma\release\onig.wasm not found in c:\Users\chris\AppData\Local\Programs\Microsoft VS Code\resources\app\node_modules.asar
    at createError (node:electron/js2c/node_init:2:1657)
    at t.readFileSync (node:electron/js2c/node_init:2:10070)
    at 829 (c:\Users\chris\.vscode\extensions\rolandostar.tabletopsimulator-lua-1.1.3\dist\extension.js:9406:20)
    at __webpack_require__ (c:\Users\chris\.vscode\extensions\rolandostar.tabletopsimulator-lua-1.1.3\dist\extension.js:9517:42)
    at 603 (c:\Users\chris\.vscode\extensions\rolandostar.tabletopsimulator-lua-1.1.3\dist\extension.js:4191:20)
    at __webpack_require__ (c:\Users\chris\.vscode\extensions\rolandostar.tabletopsimulator-lua-1.1.3\dist\extension.js:9517:42)
    at 112 (c:\Users\chris\.vscode\extensions\rolandostar.tabletopsimulator-lua-1.1.3\dist\extension.js:4027:22)
    at __webpack_require__ (c:\Users\chris\.vscode\extensions\rolandostar.tabletopsimulator-lua-1.1.3\dist\extension.js:9517:42)
    at c:\Users\chris\.vscode\extensions\rolandostar.tabletopsimulator-lua-1.1.3\dist\extension.js:9540:18
    at Object.<anonymous> (c:\Users\chris\.vscode\extensions\rolandostar.tabletopsimulator-lua-1.1.3\dist\extension.js:9541:12)
    at Module._compile (node:internal/modules/cjs/loader:1373:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1432:10)
    at Module.load (node:internal/modules/cjs/loader:1215:32)
    at Module._load (node:internal/modules/cjs/loader:1031:12)
    at c._load (node:electron/js2c/node_init:2:13801)
    at e._load (file:///c:/Users/chris/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:174:10870)
    at t._load (file:///c:/Users/chris/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:166:22422)
    at i._load (file:///c:/Users/chris/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:158:4651)
    at Module.require (node:internal/modules/cjs/loader:1240:19)
    at require (node:internal/modules/helpers:179:18)
    at hB.xb (file:///c:/Users/chris/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:166:23767)
    at async Promise.all (index 0)
androvisuals commented 1 week ago

Same here

cmaggard commented 1 week ago

To get unblocked, edit %HOME%\.vscode\extensions\rolandostar.tabletopsimulator-lua-1.1.3\dist\extension.js and on line 9406, change node_modules.asar to node_modules.

Zwrap commented 1 week ago

To get unblocked, edit %HOME%\.vscode\extensions\rolandostar.tabletopsimulator-lua-1.1.3\dist\extension.js and on line 9406, change node_modules.asar to node_modules.

that work. do you know why?

androvisuals commented 1 week ago

@cmaggard Thanks a million for this fix. Really appreciate it!