Skip to content

IDL Problem Code 77 with alias unknown-structure

Want to disable me? Check out the configuration guide to learn more.

Execution Error

This is a fatal error that prevents IDL from compiling or running code

However, the extension only picks up structure definitions within *__define procedures which follows the IDL pattern.

This problem detects when a named structure is being created, but IDL for VSCode is not aware of it.

Here's an example:

idl
struct = {MyUnknownStructure}
;         ^^^^^^^^^^^^^^^^^^ unknown structure

To fix you either need to correct the name of the structure, or put your structure definition in a "__define" method.

idl
struct = {!map}
;         ^^^^ OK!
idl
;+
; Save file as "myknownstructure__define" and save to current VSCode workspace
;-
pro MyKnownStructure__define
  compile_opt idl2, hidden

  ; define structure
  void = {MyKnownStructure, prop1: '', prop2: 42}
  ;       ^^^^^^^^^^^^^^^^ IDL finds this definition automatically
end

; main level program
compile_opt idl2

struct = {MyKnownStructure}
;         ^^^^^^^^^^^^^^^^ OK!
end

Licensed under MIT.