Extension Details

- WebHare
- by WebHare bv
- 3 Recent Installs | 211 Total Installs
- An extension that provides syntaxes and language server integration for WebHare
- Repository
- Bug Reports
-
Read & Write Files
-
Launch Subprocesses
-
Read & Write Clipboard
-
This extension is allowed to:
Readme
WebHare extension for Nova
WebHare extension for Nova. This extension provides syntax definitions for HareScript and Witty files and a language client
which connects to a WebHare installation.
Features
This extension provides:
- Syntax highlighting for HareScript and Witty files
- File diagnostics for HareScript and Witty files and supported XML, YAML and JSON files
- Code actions to automatically add missing LOADLIBs and remove unused LOADLIBs
- Document formatter for supported XML files
- Documentation popups on hover
- Jump to definition, including resource references in YAML files
- A sidebar which can be used to retrieve stack traces
- A few clips for inserting common code fragments
Installation
The extension requires WebHare 5.9 or newer. Jump to definition for resource references in YAML files requires WebHare 6.1
or newer, and diagnostics for JSON files require WebHare 6.2.1 or newer. As the language server is part of WebHare, it's
recommended to use the extension with a WebHare checkout that includes the latest changes.
- Install
runkitby cloning the repository and following the README
instructions - Install the
WebHareextension in Nova through
the Extension Library (Cmd+Shift+2or Extensions > Extension Library…)
Configuration
The extension can be configured in the extension preferences.
Options
Show Stack Traces For Workspace Only
Check the checkbox to filter out retrieved stack traces that don't reference files within the current workspace. This setting
can be overridden in project-specific settings.
Format Document On Save
Check the checkbox to automatically format supported XML files when saving them. This setting can be overridden in
project-specific settings.
Language Server Settings
WebHare Runkit Path
The path of the runkit binary, defaults to ~/projects/webhare-runkit/bin/runkit.
Development
- Clone the
webhare-language-novarepository - Install the dependencies by running
npm installwithin the repository - Start a watch that automatically runs rollup to compile the TypeScript source by running
npm run watchwithin the
repository - Open the repository directory as a project in Nova
- Activate the project as an extension by choosing Extensions > Activate Project as Extension (if the WebHare extension
is already installed through the Extension Library, deactivate that extension first) - Making any changes to the source files will automatically reload the extension
Release Notes
0.6.2 - 2026-11-20
Improved
- Added diagnostics for JSON files: syntax errors, and validation against the JSON schema in their
$schemaproperty
0.6.1 - 2026-11-20
Improved
- When the language server keeps crashing, for example because WebHare isn't running, it's no longer stopped for good. It's
restarted with an increasing delay instead, so it recovers when WebHare is back, and a notification with a 'Restart Now'
button is shown
Fixed
- The language server now starts when re-activating the extension while the previous language server was still shutting down
- 'Format Document On Save' now saves the document unformatted if the language server can't format it
- The stack trace view and 'Copy Resource Path' now show an error message if the language server can't be reached
0.6.0 - 2026-11-18
Fixed
- 'Format Document On Save' now formats the document that is being saved, instead of the active document
Incompatibilities and deprecations
- The extension now requires Nova 11 or newer
- Removed the 'Format Document' command, use Nova's built-in 'Format Document' command (Editor > Format Document) instead
0.5.0 – 2026-11-18
Improved
- Added diagnostics and jump to definition for YAML files, such as
moduledefinition.ymland*.siteprl.yml - The 'Run Script' task now also runs TypeScript files
- Added clips for TypeScript, Witty, screens and siteprofile XML and HareScript widgets, and added triggers to all clips
- The 'Restart Server' command now only restarts the language server
Fixed
- Fixed the 'Run Script' task, which now uses
wh runthrough runkit - Fixed the language server sometimes not starting after the extension was reloaded
Incompatibilities and deprecations
- Removed the unused 'Show Documentation Issues' option
0.4.0 – 2026-11-17
Improved
- Improved syntax highlighting and by switching to Tree-sitter grammars
- Updated 'RunQuery' clip
0.3.4 – 2025-10-10
Fixed
- Fixed starting WebHare's builtin language server
0.3.3 – 2025-09-19
Improved
- Show the relative path of files within the workspace in the stack trace view
- Retrieving stack traces no longer requires a HareScript file to be the active document
Fixed
- Displaying stack traces in reverse chronological order is now fixed
0.3.2 – 2024-11-05
Improved
- Don't keep restarting on non-recoverable error
- Fix Witty syntax activation
- Only log to console in dev mode
0.3.1 – 2024-01-26
Improved
- Added 'Copy WebHare Resource Path' command
0.3.0 – 2024-01-25
Incompatibilities and deprecations
- Switched to the new language server built into the
devmodule
For this to work, thedevmodule should be up to date andrunkitshould be installed and working. Ifrunkitisn't
installed into~/projects/webhare-runkit, set the path to therunkitbinary in the extension's settings.
Improved
- Added 'Object comment' clip
Fixed
- Removed the
window/showDocumentworkaround, as Nova supports this natively now
0.2.0 - 2023-05-15
Improved
- Add an option to automatically format known XML files on saving
- Add a Run Task for HareScript files
Fixed
- Improved the detection of the relevant stack trace item, so newer file types (e.g. TypeScript) are recognized
0.1.8 - 2022-02-15
Improved
- Add support LSP 3.16's
window/showDocumentrequest, which is called by the dev module'sOpenRevealhook - Add a 'WebHare Preferences' command to open the WebHare extension preferences for the current workspace
0.1.7 - 2021-12-13
Improved
- Add 'Organize LOADLIBs' code action for HareScript files
- Add a 'Format Document' command for supported XML files
0.1.6 - 2021-05-31
Improved
- Make server debug loglevel configurable
- Switch to using
@webhare/language-server
0.1.5 - 2021-05-21
Improved
- Fix double clicking a stack trace error message
- Fix openFile and getParent implementation based on updated TypeScript types
0.1.4 - 2021-05-12
Improved
- Install
webhare-language-servermodule locally instead of relying on a globally availablewebhare-language-server - Add support for XML file diagnostics for supported files
- Syntax highlighting improvements
- Add option to enable/disabled documentation diagnostics
0.1.0 - 2021-04-22
Initial release
Improved
- HareScript and Witty syntax highlighting
- HareScript and Witty file diagnostics
- Show stack trace in sidebar
- Add some HareScript and XML code clips