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

Causes JSON schema error for settings file #15

Open
asifm opened this issue Feb 18, 2018 · 3 comments
Open

Causes JSON schema error for settings file #15

asifm opened this issue Feb 18, 2018 · 3 comments

Comments

@asifm
Copy link

asifm commented Feb 18, 2018

Rainglow version 1.5.2.
No idea why this happens or what's the connection. My user settings JSON file shows this error when the rainglow extension is enabled. There's a squiggly underline in the opening curly brace of my settings file with the message:

Unable to load schema from 'vscode://schemas/settings/user': Request 
vscode/content failed with message: Cannot read property 'getText' of undefined"
  • The user settings are working fine and the changes are picked up.
  • It doesn't happen with any other JSON file.
  • It doesn't happen if I load the settings contents in a new JSON file.

It happens irrespective what theme — any rainglow or non-rainglow or the default — I choose.

The full output from JSON Language Server:

Trace - 7:12:43 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
    "uri": "file:///c%3A/Users/mehedia/AppData/Roaming/Code/User/settings.json",
    "diagnostics": [
        {
            "severity": 2,
            "range": {
                "start": {
                    "line": 0,
                    "character": 0
                },
                "end": {
                    "line": 0,
                    "character": 1
                }
            },
            "message": "Unable to load schema from 'vscode://schemas/settings/user': Request vscode/content failed with message: Cannot read property 'getText' of undefined"
        }
    ]
}

Versions:
Version 1.20.1
Commit f88bbf9137d24d36d968ea6b2911786bfe103002
Date 2018-02-13T15:34:36.336Z
Shell 1.7.9
Renderer 58.0.3029.110
Node 7.9.0
Architecture x64


Hi there!

Thanks for contributing to Rainglow.

Please try to provide as much of the following information as possible.

  • [] Which editor/software are you using?
  • [] Which theme are you using?
  • [] Have you tested the issue with other themes?
  • [] Which version of Rainglow do you have installed?
  • [] Can you provide screenshots to highlight the issue?

If the above requirements don't make sense, just let me know how I can help. :)

Thanks!
Dayle.

@boneskull
Copy link

I'm seeing this too, except it's complaining:

file: 'file:///Users/boneskull/Library/Application%20Support/Code/User/settings.json'
severity: 'Warning'
message: 'Unable to load schema from 'vscode://schemas/settings/user': Request vscode/content failed with message: cannot open vscode://schemas/settings/user. Detail: Files above 50MB cannot be synchronized with extensions.'
at: '1,1'
source: ''
code: 'undefined'

I've confirmed Rainglow is the culprit, and if I had to guess, it's something to do with all of the images in README.md.

@daylerees
Copy link
Contributor

Hmm, odd, the images aren't part of the repo so you wouldn't think they'd create a size issue. Linked externally. I'll take a look, though. Thanks for reporting.

@bhagatparwinder
Copy link

Same issue here as mentioned by @boneskull

Unable to load schema from 'vscode://schemas/settings/user': Request vscode/content failed with message: cannot open vscode://schemas/settings/user. Detail: Files above 50MB cannot be synchronized with extensions.

Removed Rainglow and it is working now.

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

4 participants