Troubleshooting
Troubleshooting common BoxLang extension issues — LSP problems, Java errors, version download failures, formatting issues, and how to get help.
Solutions for common issues with the BoxLang VS Code extension.
Diagnostic Commands
Before troubleshooting, gather diagnostic information with these commands:
BoxLang: Output Version Info
Shows extension version, Java version, component versions, and configuration. Include this in bug reports.
BoxLang: Restart Language Server
Restart the LSP if features stop working.
BoxLang: Hard Reset Workspace Home
Reset the workspace BoxLang Home to its initial state.
Check Logs
The extension writes logs to the BoxLang output channel:
Open the Output panel (
Ctrl+Shift+U/Cmd+Shift+U).Select BoxLang from the dropdown.
Review the log for errors.
Enable verbose LSP logging for more detail:
{
"boxlang.lsp.logLevel": "DEBUG"
}Common Issues
LSP Won't Start or Keeps Crashing
Symptoms:
No diagnostics, completions, or hover information
"Starting BoxLang Language Server..." hangs
LSP process exits immediately
Solutions:
Check Java 21 is installed:
Must show
21or higher. If not, run BoxLang: Download Java 21.Verify Java path:
Check LSP version: Run BoxLang: Select LSP Version and pick the latest.
Increase heap size:
Check for conflicting Java installations:
Java 21 Not Found
Symptoms:
Error: "Java 21 or higher is required"
Extension features don't work
Solutions:
Run BoxLang: Download Java 21 to auto-install a compatible JRE.
Or install manually:
Set the path:
Version Download Failures
Symptoms:
"Failed to download BoxLang version"
Version selection list is empty
Solutions:
Check internet connection: Versions are downloaded from AWS S3.
Check firewall/proxy: Ensure outbound HTTPS connections are allowed.
Run Check for Updates: BoxLang: Check for Updates refreshes the available versions list.
Try a different version: Some versions may be unavailable. Try an older or newer version.
Formatting Not Working
Symptoms:
Format on save doesn't format BoxLang files
Format Document has no effect
Solutions:
Verify all four beta requirements (see Formatting):
.bxlint.jsonhasformatting.experimental.enabled: trueFormat-on-save is enabled in settings
Latest BoxLang version is selected
Latest LSP version is selected
Check BoxLang version:
Formatting requires BoxLang 1.13.0+ and bx-lsp 1.10.0+.
Verify settings:
Diagnostics Not Appearing
Symptoms:
No lint warnings or errors in BoxLang/CFML files
Expected diagnostics are missing
Solutions:
Check that linting is enabled:
.bxlint.jsonexists at workspace root.Check file filters:
includeandexcludepatterns may exclude your files.Check rule settings: Specific rules may be disabled:
Enable experimental diagnostics:
Restart the LSP: BoxLang: Restart Language Server.
Completions Not Working
Symptoms:
No suggestions appear when typing
Only basic word completions, no BoxLang-specific suggestions
Solutions:
Check LSP is running: Run BoxLang: Output Version Info and look for LSP status.
Enable completions in settings:
Check file type: Ensure the file uses a recognized extension (
.bx,.bxs,.bxm,.cfc,.cfm,.cfml,.cfs).Restart the LSP: Sometimes required after settings changes.
Debugger Won't Attach
Symptoms:
Debug session starts but breakpoints are grayed out
"Failed to attach debugger" error
Solutions:
Check debugger mode:
Verify the program path in
launch.json:For MiniServer debugging: Start the server first, then click the Debug button.
Check port conflicts: Ensure no other process is using the debugger port.
Extension Won't Activate
Symptoms:
BoxLang sidebar doesn't appear
Commands show "command not found"
Solutions:
Check workspace contains BoxLang files: The extension activates when
.bx,.bxm,.bxs,.cfm,.cfml, or.cfcfiles are present.Reload the window:
Ctrl+Shift+P→ Developer: Reload Window.Reinstall the extension: Uninstall and reinstall from the Marketplace.
Check VS Code version: Requires VS Code 1.100.0+.
Getting Help
If the solutions above don't resolve your issue:
Run BoxLang: Output Version Info and copy the output.
Check the BoxLang output channel for error messages.
Report the issue:
BoxLang IDE Jira — Extension issues
BoxLang Jira — Language/runtime issues
Community resources:
Related Pages
Settings ReferenceCommands ReferenceDebuggingFormattingLintingLast updated
Was this helpful?