-
Notifications
You must be signed in to change notification settings - Fork 8
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 syntax highlighting not working for my project #36
Comments
Hello, this is the best and only way for now, no need to apologise! :) Could you point me to your project (if it is an open-source) and I will try it on my end? From what I can see, it might be an issue with the file extension that you are using. I haven't tried multiple file extensions ( |
That would be super helpful. It's not open source, but I just invited you as a collaborator.
Good thought. Unfortunately, that didn't seem to fix the problem. Though it could be one of the problems! If possible, I'd like to keep the multiple file extension as the language I'm working on is an embedded comment language for Python (and potentially other languages). My hope was to leverage VSCode's grammar injection feature. |
Ping. |
TL;DR: Without NodeJS installed (in PATH), the language extension cannot get generated (and installed). The client creates a VSIX file and installs it:
In order to create the VSIX file - after some intermediate steps - vsce gets called, whichs needs the NodeJS runtime. However, it is not bundled with VS Code. @danixeee: Wouldn't it way easier to generate directly into |
@danixeee: Or a an (optional) vsix packager that can be used as a drop-in. |
The problem with On the other hand, I agree that it would be cleaner to have a vsce implementation in python, but I think that it should go to a separate repository. @ipa-mdl What are your thoughts? |
Yes, but it needs NodeJS installed to work. (at least on Windows) @IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\node_modules\vsce\out\vsce" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\node_modules\vsce\out\vsce" %*
) danixeee/textx-gen-vscode#7 is a pure python implementation, which generates the same VSIX content as vsce would (given the templated extension). I tested it together with #42 on Windows and Linux |
Yes
|
Ah, so indeed your problem is not related to NodeJs. @danixeee: We should move the discussion to danixeee/textx-gen-vscode#7 then.
Nevertheless, it should be tracked as an issue in https://github.com/danixeee/textx-gen-coloring |
My apologies for creating an issue. I'm not sure how best to reach out for support.
I can't seem to get syntax highlighting via the
textX
VSCode extension to work for my custom language. Here's a screenshot to show how far I've gotten.textX
extension from the marketplace. (latest published)textx-ls-core
package. (latest published)textx
command from the Terminal.setup.py
and.whl
styles.What am I missing?
The text was updated successfully, but these errors were encountered: