TypeFox / monaco-languageclient

Repo hosts npm packages for monaco-languageclient, vscode-ws-jsonrpc, monaco-editor-wrapper, @typefox/monaco-editor-react and monaco-languageclient-examples
https://www.npmjs.com/package/monaco-languageclient
MIT License
1.05k stars 177 forks source link

Have two workspaces at the same time #206

Closed chengtie closed 4 years ago

chengtie commented 4 years ago

I created a repository https://github.com/chengtie/monaco-languageclient/tree/a0abcc87f5506862d88d82b2e73af7c55a22aef0 by the following steps:

  1. forked from TypeFox/monaco-languageclient
  2. copied folder example to exampleTie
  3. in exampleTie/package.json, changed to "name": "node-exampleTie",
  4. added "exampleTie" to workspaces in package.json:

However, yarn in the whole folder returned the follows:

$ yarn
yarn install v1.21.1
[1/4] 🔍  Resolving packages...
success Already up-to-date.
$ lerna run prepare
lerna notice cli v3.16.4
lerna info Executing command in 4 packages: "yarn run prepare"
monaco-languageclient: yarn run v1.21.1
monaco-languageclient: warning monaco-languageclient@0.12.0: The engine "vscode" appears to be invalid.
monaco-languageclient: $ yarn run clean && yarn run compile
monaco-languageclient: warning monaco-languageclient@0.12.0: The engine "vscode" appears to be invalid.
monaco-languageclient: $ rimraf lib
monaco-languageclient: warning monaco-languageclient@0.12.0: The engine "vscode" appears to be invalid.
monaco-languageclient: $ tsc
monaco-languageclient: Done in 3.99s.
node-example: yarn run v1.21.1
node-exampleTie: yarn run v1.21.1
browser-example: yarn run v1.21.1
node-example: $ yarn run clean && yarn run build
node-exampleTie: $ yarn run clean && yarn run build
browser-example: $ yarn run clean && yarn run build
node-example: $ rimraf lib
node-exampleTie: $ rimraf lib
browser-example: $ rimraf lib
browser-example: $ yarn run compile && webpack && yarn run copy
node-example: $ yarn run compile && webpack && yarn run copy
node-exampleTie: $ yarn run compile && webpack && yarn run copy
browser-example: $ tsc
node-example: $ tsc
node-exampleTie: $ tsc
node-example: src/json-server.ts(251,44): error TS2345: Argument of type 'import("/Users/chengtie/Startup/ReactProjects/ocaml-lsp-monaco/monaco-languageclient/node_modules/vscode-json-languageservice/node_modules/vscode-languageserver-types/lib/umd/main").Diagnostic[]' is not assignable to parameter of type 'import("/Users/chengtie/Startup/ReactProjects/ocaml-lsp-monaco/monaco-languageclient/node_modules/vscode-languageserver-types/lib/umd/main").Diagnostic[]'.
node-example:   Type 'import("/Users/chengtie/Startup/ReactProjects/ocaml-lsp-monaco/monaco-languageclient/node_modules/vscode-json-languageservice/node_modules/vscode-languageserver-types/lib/umd/main").Diagnostic' is not assignable to type 'import("/Users/chengtie/Startup/ReactProjects/ocaml-lsp-monaco/monaco-languageclient/node_modules/vscode-languageserver-types/lib/umd/main").Diagnostic'.
node-example: Types of property 'tags' are incompatible.
node-example:   Type 'InsertTextFormat[] | undefined' is not assignable to type '1[] | undefined'.
node-example: Type 'InsertTextFormat[]' is not assignable to type '1[]'.
node-example:   Type 'InsertTextFormat' is not assignable to type '1'.
node-example: Type '2' is not assignable to type '1'.
node-example: error Command failed with exit code 2.
node-example: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
node-example: error Command failed with exit code 2.
node-example: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
node-example: error Command failed with exit code 2.
node-example: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
lerna ERR! yarn run prepare exited 2 in 'node-example'
lerna WARN complete Waiting for 2 child processes to exit. CTRL-C to exit immediately.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Does anyone know what's the problem?

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.