JSMonk / hegel

An advanced static type checker
https://hegel.js.org
MIT License
2.1k stars 59 forks source link

Can't install VSCode extenstion #228

Closed snatvb closed 4 years ago

snatvb commented 4 years ago

Hello. On your site, link must lead to marketplace but it is not. Link is leading to home page of the site.

Ok, I tried install manually, but I can't. Command npm run compile does not exist in package.json of hegel/packages/language-server, because I can't compile extention and install in my IDE.

I want to try your solution.

JSMonk commented 4 years ago

I've just changed info about running the extension. Currently, vsce tool, which is needed to package the extension, have a problem with different npm version. Issue 246 So, it will be a lot of problem with local building the extension. Please, try to run it by VS Code debugger by the Instruction Thank you for your interest. And thank you a lot for the issue ^_^.

snatvb commented 4 years ago

image In debug I got this error and after nothing working

Kapelianovych commented 4 years ago

@snatvb did you make npm install or yarn(from yesterday we moved to yarn)?

thecotne commented 4 years ago

apparently i broke it in #252

now i am trying to fix it and i got it in a state where it does not report any errors but still does not work : /

Kapelianovych commented 4 years ago

@thecotne no. It is not your fault. There is problem to package extension with npm. We need yarn. You did great work)

thecotne commented 4 years ago

it was failing to start for me because of change in file structure of @hegel/core

this is my fix but it still does not exactly work https://github.com/JSMonk/hegel/pull/260/files#diff-d73f388b124308df3ed9c8993f08f40bL1-R3

Kapelianovych commented 4 years ago

@thecotne yeah. It will not work until new change will be in npm registry. language-server use @hegel/core and @hegel/cli from npm, not local ones. :(

thecotne commented 4 years ago

@YevhenKap no after yarn it uses local packages (except @hegel/typings as it's broken)

well it should use local packages if it's configured correctly

snatvb commented 4 years ago

@YevhenKap oh, probably you are right, i will look at that soon

snatvb commented 4 years ago

Yes, it's work! Thanks all! But has some problems image

thecotne commented 4 years ago

@snatvb syntax highlighting is not provided by extension ...

is this vscode with javascript syntax? maybe you have some other extension messing with js syntax?

snatvb commented 4 years ago

@thecotne maybe problem in theme, i think this problem with and second by the way, why hegel does not suppord number[] syntax?