Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when compiling extension #147

Open
varkor opened this issue Feb 21, 2018 · 2 comments
Open

Error when compiling extension #147

varkor opened this issue Feb 21, 2018 · 2 comments

Comments

@varkor
Copy link

varkor commented Feb 21, 2018

I'd like to try to fix a couple of issues with this extension, but I'm having trouble compiling it.
When I run make vsix I get the following:

npm WARN coqlangserver@0.0.1 license should be a valid SPDX license expression

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! coqlangserver@0.0.1 compile: `installServerIntoExtension ../client ./package.json ./tsconfig.json && tsc -p ./`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the coqlangserver@0.0.1 compile script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     ~/.npm/_logs/2018-02-21T10_29_19_394Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! vscoq@0.2.7 compile-server: `cd ../server && npm run compile && cd ../client`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the vscoq@0.2.7 compile-server script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     ~/.npm/_logs/2018-02-21T10_29_19_418Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! vscoq@0.2.7 vscode:prepublish: `npm run cp-coqtopw && npm run compile-server && npm run compile-html-view && npm run compile`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the vscoq@0.2.7 vscode:prepublish script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!    ~/.npm/_logs/2018-02-21T10_29_19_442Z-debug.log

make: *** [vsix] Error 1

The build therefore fails.

Edit: I think it's because there are a lot of compile (type-checking) errors (which happens when I try manually running the server compile command). Maybe some dependencies have broken this? It might be useful to commit the package-lock.json file.

@varkor
Copy link
Author

varkor commented Feb 21, 2018

There seem to be two problems here. One is that there are a number of TypeScript errors. The second is that vsce has trouble accessing the file vscoq/client/.testUser/user/1.20.1-main.sock. I'm not really sure how to resolve this one — have you got any ideas @siegebell?

@Blaisorblade
Copy link

Maybe some dependencies have broken this? It might be useful to commit the package-lock.json file.

@varkor, thanks for all your patches. I'm trying to resurrect them, based @aqjune's "distribution" of your fixes. Alas, the code includes no "version lock" files, and my build does not show any proof goals at all (even if I exclude the patches acting on how proof goals are displayed).

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

No branches or pull requests

2 participants