Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

[bug] "include" can be included in a block object #91

Closed
danielsan80 opened this issue Jan 2, 2022 · 1 comment
Closed

[bug] "include" can be included in a block object #91

danielsan80 opened this issue Jan 2, 2022 · 1 comment

Comments

@danielsan80
Copy link

Hi,
first of all thanks for your work.

The plugin show me an error when I try to include the "include" keyword in a block object.

Example:

module vase1() {
    include <modules/vase.scad>
    vase_h = 20;
    vase_h = 15;

    vase();
}

module vase2() {
    include <modules/vase.scad>
    vase_h = 10;
    vase_h = 15;

    translate([30,0,0])
    vase();
}

vase1();
vase2();

I'm not sure this is a good practice but OpenSCAD allow you to do that and I think it is a good way to make private a global scope without editing the included file.

@danielsan80 danielsan80 changed the title "include" can be included in a block object [bug] "include" can be included in a block object Jan 2, 2022
@ldenisey
Copy link
Collaborator

Fixed, will be released in version 2.2.0 coming soon.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants