-
-
Notifications
You must be signed in to change notification settings - Fork 18
"Unexpected end of JSON input" -Win10 VS Code 1.54.1 #50
Comments
I tested this on a separate VS Code install that never had Vale or the extension installed and can confirm similar results. StylesPath = styles Vocab = Blog[*] |
I think this might be the same issue as #49. |
Can you confirm if this is now fixed after upgrading to Vale 2.10.2 @emdashdrupal ? |
Unfortunately, no, it still persists. |
@emdashdrupal I tested Vale 2.10.2 on a vanilla Windows installation, with the ini file from above (minus the style path) and it worked as expected. My only other thought is that you maybe have some styles in the style path that are malformed? |
Hi, I'm experiencing this issue as well. I'm using Windows 10, Vale 2.10.2, VS Code 1.55.2. I was initially trying this with my own project where I had no styles added and all I had in my .vale.ini was |
Could you try running |
Hi, this is what I see:
|
This means that Vale can't find your |
Yup, I do! There is one personal project where I've added |
I fixed this by copying the folder structure of the example repo.
That's what vale is expecting. The error could be better, but I don't think this is a bug. |
I am having the same problem on Mac using Vale v2.20.1 and plugin version v0.15.2 Running vale ls-config returns |
Using GitHub Codespaces, Vale 2.20.2, Vale-VSCode 0.15.2. Vale works fine by itself from the command line with a variety of ways of calling it. The only message I get from the UI is "SyntaxError: Unexpected end of JSON input", not even a stack trace. I would really love to have this integration! Some type of way to turn up the logging to know what it is trying to do might help. |
In case someone else finds this useful, my problem was that it does not accept the '~' character in the path to vale in the plug-in settings (in case Vale is not installed to your path). Using the full path works. This is a classic case of not reporting proper errors to the user. If the vale log window had said |
In case it helps someone : I installed Vale following the official tutorial and ran into the same "Unexpected end of JSON input" error. After a lot of searching, I realised that the tutorial makes you install an older version of Vale(2.15.4)...getting the newest version from here solved the issue ! (Version 2.21.2) Updating the vale.sh tutorial might be a good idea to prevent other people from falling in the same trap 😄 |
I had Vale working within VS Code and then it suddenly stopped. I'm not sure what/if anything changed.
The only error I see is "Unexpected end of JSON input"
Windows 10
vale version 2.9.1 (directly downloaded)
VS Code 1.54.1
.vale.ini
StylesPath = "h:/vale/styles"
[*.md]
BasedOnStyles = Vale, (still doesn't work only with Vale selected)
The text was updated successfully, but these errors were encountered: