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

[json] JSON file can't format #6758

Closed
502647092 opened this issue Dec 17, 2019 · 1 comment
Closed

[json] JSON file can't format #6758

502647092 opened this issue Dec 17, 2019 · 1 comment
Labels
bug bugs found in the application help wanted issues meant to be picked up, require help json issues related to the json language

Comments

@502647092
Copy link
Contributor

502647092 commented Dec 17, 2019

Description

build package.json file

{
  "private": true,
  "dependencies": {
    "typescript": "latest",
    "@theia/typescript": "next",
    "@theia/debug-nodejs": "next",
    "@theia/plugin-dev": "next",
    "@theia/preview": "next",
    "@theia/editor-preview": "next",
    "@theia/plugin-ext-vscode": "next",
    "@theia/textmate-grammars": "next",
    "@theia/git": "next",
    "@theia/json": "next"
  },
  "devDependencies": {
    "@theia/cli": "next",
    "@theia/debug": "next"
  },
  "scripts": {
    "postinstall": "download-debug-adapters"
  },
  "adapterDir": "plugins",
  "adapters": {
    "humao.rest-client": "https://ms-vscode.gallery.vsassets.io/_apis/public/gallery/publisher/humao/extension/rest-client/0.22.2/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage",
    "EditorConfig.EditorConfig": "https://ms-vscode.gallery.vsassets.io/_apis/public/gallery/publisher/EditorConfig/extension/EditorConfig/0.14.2/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage",
    "redhat.vscode-yaml": "https://ms-vscode.gallery.vsassets.io/_apis/public/gallery/publisher/redhat/extension/vscode-yaml/0.5.3/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage",
    "ms-vscode.vscode-typescript-next": "https://ms-vscode.gallery.vsassets.io/_apis/public/gallery/publisher/ms-vscode/extension/vscode-typescript-next/3.8.20191105/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage",
    "ms-vscode.vscode-typescript-tslint-plugin": "https://ms-vscode.gallery.vsassets.io/_apis/public/gallery/publisher/ms-vscode/extension/vscode-typescript-tslint-plugin/1.2.2/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage"
  }
}

Reproduction Steps

  • create package.json
  • run command
    yarn --pure-lockfile && \
    NODE_OPTIONS="--max_old_space_size=4096" yarn theia build && \
    yarn --production && \
    yarn autoclean --init && \
    echo *.ts >> .yarnclean && \
    echo *.ts.map >> .yarnclean && \
    echo *.spec.* >> .yarnclean && \
    yarn autoclean --force && \
    yarn cache clean
  • run theia
node src-gen/backend/main.js /home/project
  • create json file
  • input something and format

if test at gitpod. need create file at /workspace/test dir

OS and Theia version:
Diagnostics:

@akosyakov akosyakov added bug bugs found in the application help wanted issues meant to be picked up, require help json issues related to the json language labels Dec 17, 2019
@502647092
Copy link
Contributor Author

add resolutions at package.json can fix this problem

    "resolutions": {
        "vscode-languageserver-protocol": "3.15.0-next.9",
        "vscode-languageserver-types": "3.15.0-next.5",
        "**/vscode-json-languageserver/**/vscode-languageserver": "6.0.0-next.1"
    },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application help wanted issues meant to be picked up, require help json issues related to the json language
Projects
None yet
Development

No branches or pull requests

2 participants