Julia-vscode: Failure to access variables exported from user defined module

Created on 15 Nov 2018  路  5Comments  路  Source: julia-vscode/julia-vscode

The hover help works fine for library functions, but it gives me nothing for my own functions (even though I am using the module where they are defined).
image

This obtains with Julia VS Code Extension, v0.11.0-beta.1

area-ls-linter bug

All 5 comments

From the screenshot this looks like MeshExportModule (where I'm assuming Linearspace is defined) is not having it's exports handled properly. I assume this is off the master branch of FinEtools? I'll have a look

It doesn't work with any function defined in any of the modules of FinEtools. But at this point the hover help does not appear for any function at all. Peek definition does not work either.

Hi I've looked into this a bit more: it's the slightly odd syntax (from my perspective) of importing using the absolute name of the parent modules (rather than using ..) in AlgoDeforLinearModule.jl that's not being handled correctly. I've got a fix in mind

Moving this to 11.1 as non-blocking

As far as I can tell the problems here are due to using the following syntax where you import ModuleA explicitly from within ModuleA.

module ModuleA
module ModuleB
x = 1
end
using ModuleA.ModuleB: x
end

This seems to work when used as a package but not from the REPL (where it tries to load ModuleA from a package. I'm not quite sure what the solution is here other than to use the more common syntax using .ModuleB: x so I'm going to close this for now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

barche picture barche  路  38Comments

chrisbrahms picture chrisbrahms  路  26Comments

ssfrr picture ssfrr  路  52Comments

jlperla picture jlperla  路  25Comments

schlichtanders picture schlichtanders  路  22Comments