Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions ls/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"context"
"fmt"
"io"
"log"
"strings"
"sync"
"time"
Expand Down Expand Up @@ -186,6 +187,12 @@ func (ls *INOLanguageServer) generateBuildEnvironment(ctx context.Context, fullB
ls.readLock(logger, false)
sketchRoot := ls.sketchRoot
config := ls.config

// Validate FQBN before attempting compilation
if config.Fqbn == "" {
ls.readUnlock(logger)
log.Fatal("FQBN (Fully Qualified Board Name) is required but not specified. Please restart the language server with the -fqbn flag or set default_fqbn in sketch.yaml")
}
type overridesFile struct {
Overrides map[string]string `json:"overrides"`
}
Expand Down
Loading