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

The theia sample of hello world plugin build failed on Windows #14145

Closed
1 task done
tom-shan opened this issue Aug 7, 2019 · 3 comments · Fixed by eclipse-che/che-theia#598
Closed
1 task done

The theia sample of hello world plugin build failed on Windows #14145

tom-shan opened this issue Aug 7, 2019 · 3 comments · Fixed by eclipse-che/che-theia#598
Labels
area/editor/theia Issues related to the che-theia IDE of Che kind/bug Outline of a bug - must adhere to the bug report template.

Comments

@tom-shan
Copy link

tom-shan commented Aug 7, 2019

Describe the bug

comes from another issue eclipse-theia/theia#5849 (comment)

eclipse/che-theia-samples version

  • latest

Steps to reproduce

1 git clone https://github.com/eclipse/che-theia-samples
2 cd che-theia-samples/samples/hello-world-backend-plugin
3 yarn

Expected behavior

build successfully

Screenshots

yarn install v1.16.0
[1/5] Validating package.json...
warning @eclipse-che/hello-world-backend-plugin@0.0.1: The engine "theiaPlugin" appears to be invalid.
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
warning "@theia/plugin-packager > glob-promise@3.4.0" has unmet peer dependency "glob@*".
[5/5] Building fresh packages...

$ yarn run clean && yarn run build
yarn run v1.16.0
warning @eclipse-che/hello-world-backend-plugin@0.0.1: The engine "theiaPlugin" appears to be invalid.
$ rimraf lib
Done in 0.27s.
yarn run v1.16.0
warning @eclipse-che/hello-world-backend-plugin@0.0.1: The engine "theiaPlugin" appears to be invalid.
$ yarn run format-code && yarn run compile && theia:plugin pack
warning @eclipse-che/hello-world-backend-plugin@0.0.1: The engine "theiaPlugin" appears to be invalid.
$ tsfmt -r
replaced C:/che-theia-samples/samples/hello-world-backend-plugin/src/hello-world-backend-plugin.ts
warning @eclipse-che/hello-world-backend-plugin@0.0.1: The engine "theiaPlugin" appears to be invalid.
$ tsc
The filename, directory name, or volume label syntax is incorrect.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Environment

Windows

@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Aug 7, 2019
@ibuziuk ibuziuk added kind/bug Outline of a bug - must adhere to the bug report template. area/editor/theia Issues related to the che-theia IDE of Che team/ide2 and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Aug 8, 2019
@ibuziuk ibuziuk added this to the 7.x milestone Aug 8, 2019
@ibuziuk
Copy link
Member

ibuziuk commented Aug 8, 2019

@evidolob if it is windows specific only, I suppose we can move it to 7.x (up to the team to decide in which milestone this issue could be tackled). We could also put open-for-dev label

@SimonJohnCastle
Copy link

Just want to add I have the same or similar problem on gitpod, trying to get familiar in theia-ide/theia

@SimonJohnCastle
Copy link

SimonJohnCastle commented Oct 30, 2019

It looks like this can be fixed by changing "theia:plugin pack" to "theia-plugin pack" in the package.json build script. the "-" version appears to run on both Windows and Linux

In the yarn.lock the @theia/plugin-packager is set at 0.0.1-1539891078, this needs upgrading to "@theia/plugin-packager": "0.0.1-1551941037"

issue yarn upgrade to fix this
Then the build works correctly under Windows and Linux

monaka added a commit to PizzaFactory/che-theia that referenced this issue Jan 11, 2020
fixes eclipse-che/che#14145 eclipse-che/che#15552.

Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
benoitf pushed a commit to eclipse-che/che-theia that referenced this issue Jan 13, 2020
fixes eclipse-che/che#14145 eclipse-che/che#15552.

Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
monaka added a commit to opentestmodeling/che-theia that referenced this issue Jan 12, 2021
fixes eclipse-che/che#14145 eclipse-che/che#15552 .

Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/editor/theia Issues related to the che-theia IDE of Che kind/bug Outline of a bug - must adhere to the bug report template.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants