With -d php7 compiler completion can't see user defined php.* namespace #5921

Closed
szczepanpp opened this Issue Jan 4, 2017 · 5 comments

Projects

None yet

2 participants

@szczepanpp
szczepanpp commented Jan 4, 2017 edited

I've got custom "php.std" package under which I defined some PHP externs. When using new "-D php7" compiler flag '--display' completion can't see this namespace.

E.g. I've got 'php.std.core.StdClass' extern class and when invoking completion at 'php.std.core.|' I get compiler error 'No classes found in php.std.core'.

I'm using official 3.4.0-RC2 build.

@szczepanpp szczepanpp changed the title from -d php7 "shadows" user php.* namespace to With -d php7 compiler completion can't see user defined php.* namespace Jan 4, 2017
@RealyUniqueName
Member

As a temporary workaround you can rename your php directory to php7 without changing any content in your files.

@szczepanpp

Well, it's good enough for the time being. Thanks!

Btw. this reminded me of '--remap' compilation directive but it didn't work. ;)

@RealyUniqueName
Member

Btw, StdClass is included in php7 std lib, so you probably don't need custom extern for it.

@RealyUniqueName RealyUniqueName added a commit to RealyUniqueName/haxe that referenced this issue Jan 4, 2017
@RealyUniqueName RealyUniqueName If dir should be renamed via com.package_rules do not forget to look …
…for modules in original dir too (fixes #5921)
6f9b699
@szczepanpp

Yes, I know that - it's simply carried over from an existing source code and I'm planning on adding on to this namespace more externs not covered by Haxe's std. :)

@RealyUniqueName
Member

You can make pull requests with such externs ;)

@RealyUniqueName RealyUniqueName added a commit that closed this issue Jan 4, 2017
@RealyUniqueName RealyUniqueName If dir should be renamed via com.package_rules do not forget to look …
…for modules in original dir too (fixes #5921) (#5922)
10609a0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment