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

Syntax highlighting does not work immediately #8

Open
LennDG opened this issue Aug 17, 2023 · 8 comments
Open

Syntax highlighting does not work immediately #8

LennDG opened this issue Aug 17, 2023 · 8 comments

Comments

@LennDG
Copy link

LennDG commented Aug 17, 2023

After installing the Hurl extension in vscode 1.81 there is no syntax highlighting for .hurl files.
When trying another extension (hurl-syntax-highlightning) it immediately provides highlighting.

Example file that has no highlighting:

GET http://www.sample.net

HTTP 200

Is there an additional setting that needs to be set to provide highlighting?

@pfeiferj
Copy link
Owner

Is there an additional setting that needs to be set to provide highlighting?

There shouldn't be anything required. I just tried it out in v1.81.1 and it seems to be working. What os and architecture are you on? In theory the extension should be universal but there might be something I've missed depending on the environment

@LennDG
Copy link
Author

LennDG commented Aug 24, 2023

This is on Ubuntu 22.04. I will check it on my Windows PC tomorrow. As far as I can tell it should for sure be working out of the box, so I will keep digging a bit.

@Esequiel378
Copy link

Hello there! I've just tested it in Windows 11 with Hurl installed, and it does not have syntax highlighting.

The file name is organizations.hurl

organizations.hurl

@elliotlarson
Copy link

Yeah, I'm experiencing the same thing on Mac OS Ventura. I'm not getting any syntax highlighting.

@williamd1k0
Copy link

I don't know exactly why, but for me it works fine on VSCode (Flatpak), but not on VSCodium (AUR). I'm using Manjaro Linux.

@jupegarnica
Copy link

Same here, not syntax highlighting, nor in windows 11 nor in ubuntu 22.04

code --version
1.86.1
31c37ee8f63491495ac49e43b8544550fbae4533
x64

vscode hurl
v1.3.0

@j127
Copy link

j127 commented Aug 18, 2024

Syntax highlighting isn't working here either.

  • M1 Mac, Sonoma 14.5
  • hurl 4.3.0 (/opt/homebrew/bin/hurl)

VS Code data:

Version: 1.92.1 (Universal)
Commit: eaa41d57266683296de7d118f574d0c2652e1fc4
Date: 2024-08-07T20:16:39.455Z
Electron: 30.1.2
ElectronBuildId: 9870757
Chromium: 124.0.6367.243
Node.js: 20.14.0
V8: 12.4.254.20-electron.0
OS: Darwin arm64 23.5.0

@pfeiferj
Copy link
Owner

best guess is that it's something weird going on with your file associations. Ensure on the bottom right where it says what language the file is that it says hurl. If not you might need to click that and setup the language association. The plugin adds the hurl language type with an association to .hurl files but if it's been overridden manually or by another plugin it may not autodetect correctly

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

7 participants