When opening an inlined model that uses a larger library like BOSL2, OpenSCAD produces an error:
ERROR: Recursion detected calling function 'is_num' in file inline-hex-grid-test.scad, line 40782
TRACE: called by 'is_finite' in file inline-hex-grid-test.scad, line 23609
TRACE: called by 'is_vector' in file inline-hex-grid-test.scad, line 8223
TRACE: called by 'attachable' in file inline-hex-grid-test.scad, line 9789
TRACE: called by 'cube' in file inline-hex-grid-test.scad, line 6036
TRACE: called by '_cube' in file inline-hex-grid-test.scad, line 9790
TRACE: called by 'children' in file inline-hex-grid-test.scad, line 8250
TRACE: called by 'children' in file inline-hex-grid-test.scad, line 6034
TRACE: called by 'if' in file inline-hex-grid-test.scad, line 6034
TRACE: called by '_color' in file inline-hex-grid-test.scad, line 8250
TRACE: called by 'if' in file inline-hex-grid-test.scad, line 8249
TRACE: called by 'multmatrix' in file inline-hex-grid-test.scad, line 8242
TRACE: called by 'attachable' in file inline-hex-grid-test.scad, line 9789
Geometries in cache: 1
Geometry cache size in bytes: 0
CGAL Polyhedrons in cache: 0
CGAL cache size in bytes: 0
Total rendering time: 0:00:00.000
OpenSCAD should export an STL without errors.