Skip to content

[EDU-9241] Fix Go SDK and Browse Courses class loading on 2026.3 and 2027.1 - #78

Open
Tsyklop wants to merge 2 commits into
mainfrom
bug/EDU-9241-go-impl-module
Open

Tsyklop wants to merge 2 commits into
mainfrom
bug/EDU-9241-go-impl-module

Conversation

@Tsyklop

@Tsyklop Tsyklop commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

EDU-9241. On GoLand 2027.1 EAP, Go SDK discovery failed with NoClassDefFoundError: com/goide/sdk/combobox/GoSdkList, and Browse Courses failed with ClassNotFoundException for the platform's CourseInfo. EDU-9152 is the first problem on 2026.3.

Go impl module

Since Go plugin 263, almost every Go class hs-Go uses (GoSdk, GoSdkList, GoSdkService, GoTestRunConfiguration, VgoProjectSettings, ...) lives in the intellij.go.impl content module, which now has its own classloader. hs-Go only depended on the Go plugin, so on 2026.3 these classes don't load, and every Go course is broken, not only SDK search.

Go plugin intellij.go.impl
252 doesn't exist: declaring it would stop hs-Go from loading
253–262 embedded, the plugin dependency is enough
263+ own classloader, must be declared

hs-Go/build.gradle.kts adds <module name="intellij.go.impl"/> to hs-Go.xml on 263+, the same way ai-debugger-jvm declares the Java debugger module.

GoSdkLoadService's progress title now has its own EduGoBundle key: the GoBundle key it used was removed in 2027.1 (GO-11779).

Courses storage

In 2027.1 the welcome screen Learn tab, including CourseInfo and CourseDataStorage, moved to the intellij.platform.ide.learnIde content module (intellij-community 90f542dced). JBACourseFromStorage extended CourseInfo and CoursesStorage implemented CourseDataStorage, though the plugin never registers a coursesStorageProvider, so neither was used for anything.

Rather than declaring a module that doesn't exist before 271, the storage no longer uses them. JBACourseFromStorage declares the six fields it inherited with the same names and defaults, so hsCoursesStorage.xml reads back the same. CoursesStorage.getAllCourses() now returns List<JBACourseFromStorage> (used by hs-Rust).

Testing

  • Headless IU 2026.3 (263.7307.200), with a startup script that loads the Go classes through hs-Go's own classloader and calls GoSdkLoadService.reloadSdk:
    • without the fix, every class except GoBundle failed with ClassNotFoundException, and reloadSdk failed;
    • with the fix, all of them loaded from intellij.go.impl, the new title resolved, and reloadSdk returned its result.
  • The built hs-Go.xml has the module line for 263 and not for 262 or 252.
  • hs-core and hs-Rust compile on 252 and 263. On 263, CoursesInfosStorageTestBase (13 tests, including reading old storage XML) and HyperskillPlatformProviderTest (2) pass.
  • No compiled class in hs-core or hs-Rust references welcomeScreen/learnIde any more.
  • Not tested in GoLand or in a 2027.1 IDE: the repo has no 271 target yet.

Building against 263 locally also needs the hs-core module declarations from #77; they aren't included here.

Since Go plugin 263 almost every Go class hs-Go uses (GoSdk, GoSdkList,
GoSdkService, GoTestRunConfiguration, VgoProjectSettings, ...) lives in
the content module intellij.go.impl, which is no longer embedded and has
its own classloader. hs-Go only depended on the Go plugin, so these
classes failed with NoClassDefFoundError: Go SDK discovery broke, and so
did every Go course.

hs-Go.xml now gets <module name="intellij.go.impl"/> when building for
263+. The module is embedded in 253-262, where the plugin dependency is
enough, and doesn't exist in 252, where declaring it would stop hs-Go
from loading.

GoSdkLoadService's progress title now has its own EduGoBundle key: the
GoBundle key it used was removed in 2027.1 (GO-11779).
In 2027.1 the welcome screen Learn tab, including CourseInfo and
CourseDataStorage, moved to the content module
intellij.platform.ide.learnIde, which has its own classloader.
JBACourseFromStorage extended CourseInfo and CoursesStorage implemented
CourseDataStorage, so Browse Courses failed with ClassNotFoundException
for CourseInfo.

The plugin never registers a coursesStorageProvider, so neither type was
used for anything. JBACourseFromStorage now declares the fields it
inherited, with the same names and defaults, so hsCoursesStorage.xml
reads back the same. The unused icon override and the duplicate
getCoursePath overloads are gone.
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

Successfully merging this pull request may close these issues.

1 participant