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

VScode ols server crashing when import is missing final quote #13

Closed
WalterPlinge opened this issue Jan 20, 2021 · 1 comment
Closed
Assignees

Comments

@WalterPlinge
Copy link

Code snippet

Missing the " after the : in an import statement, though only when there is text between the first " and :

package main
import "core:

ols.json:

{
    "collections": [
	{ "name": "core", "path": "C:/Odin/Odin/core/" },
        { "name": "shared", "path": "C:/Odin/Odin/shared/" }
    ],
    "thread_pool_count": 4,
    "enable_document_symbols": true,
    "enable_semantic_tokens": true,
    "enable_hover": true
}

Error

Output window:
C:/Odin/Tools/ols/src/server/documents.odin(415:30) Invalid slice indices: 6:5:6

VSCode info:

Version: 1.53.0-insider (system setup)
Commit: 32b28f6f8f9dfe36efad102cc460e14a84ba756a
Date: 2021-01-19T06:09:44.762Z
Electron: 11.2.0
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Windows_NT x64 10.0.19041

@DanielGavin DanielGavin self-assigned this Jan 20, 2021
@DanielGavin
Copy link
Owner

This should now be fixed.

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

2 participants