shigma / vscode-wl

Wolfram Language support for Visual Studio Code.
MIT License
49 stars 4 forks source link

add support to mma12, 13 && update deps #20

Closed asukaminato0721 closed 1 year ago

asukaminato0721 commented 2 years ago

I'm currently working on this. But meet some problems.

  1. there are so many dependencies changes... I spent some time updating it...
    1. for example the postinstall in package.json was useless now. https://code.visualstudio.com/updates/v1_36#_splitting-vscode-package-into-typesvscode-and-vscodetest
  2. I was developing it on codespace, (So no mma), So is it possible to build it without mma?

currently npm run compile works well. Though there are two //@ts-ignore I can't handle yet.

but when I run npm run build, it says that

> vscode-wl@1.7.3 build
> node build/syntax

node:internal/modules/cjs/loader:936
  throw err;
  ^

Error: Cannot find module '../out/utilities/syntax'
Require stack:
- /workspaces/vscode-wl/build/syntax.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/workspaces/vscode-wl/build/syntax.js:5:5)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/workspaces/vscode-wl/build/syntax.js' ]
}

so I guess some files are missing during building.

I try to add the |-> in it. But I don't know whether it works.

https://github.com/shigma/vscode-wl/issues/10 this issue could rename 12 -> 13 :)