Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading tk.jl #1549

Closed
SeanWhipple opened this issue Nov 14, 2012 · 5 comments
Closed

Loading tk.jl #1549

SeanWhipple opened this issue Nov 14, 2012 · 5 comments

Comments

@SeanWhipple
Copy link

I'm not sure if this is a loading issue or if I'm simply not understanding something in Julia. I'm trying to use Window from tk.jl for example

First I use:

load("tk.jl")

At this point Window is still not defined. Then I do:

import Tk.*

Now Window is defined (why is this part necessary, why doesn't the load() do it? ) but it also says that there is a line missing in basic.jl

As a side note, also when I go to load "tk.jl" I occasionally get seg faults and the core is dumped

@JeffBezanson
Copy link
Sponsor Member

What is basic.jl?

@SeanWhipple
Copy link
Author

Great question, I can't re-create anymore because now when I do try to load it I get a seg fault and the core is dumped

@SeanWhipple
Copy link
Author

Sorry there was a typo that I didn't realize, it's base.jl. I figured out my issue here but I still don't understand why a load and import are both necessary. And why tk.jl produces segfaults on occasion when loading

@pao
Copy link
Member

pao commented Nov 14, 2012

A partial answer to your first question is that loading code from an external file via load() predates modules, and indeed, the contents of the file don't need to be a module at all. The rest of that answer is hopefully answered in the commit message for 8d7f53c.

@JeffBezanson
Copy link
Sponsor Member

Ah, I've found that connecting to the machine with ssh -Y fixes the segfault. It's probably related to not being able to access X resources without that.

fredrikekre pushed a commit that referenced this issue Dec 23, 2019
…34186)

$ git log --oneline 8e236a7f993f1e732ffd0ab5c15736b2594e4109^..6c29d6c5421b4e3d872ccf42bd775b627b300069
6c29d6c provide a fallback when sandboxing projects with no project file (#1549)
b9bcd6a Do not ever attempt to set owner when extracting (#1557)
50581b2 Add try/catch around call to realpath in safe_realpath (#1547)
fb248f4 Remove Test which was added as a dependency by accident (#1553)
180d51e Disable needless specialization in Artifacts code (#1543)
7e42dfa telemetry: remove commit header (#1551)
a9d85e7 Adjust GC delay and add `--all` flag to circumvent delay (#1540)
8e236a7 Merge pull request #1544 from JuliaLang/sk/telemetry
90b8482 telemetry: factor out telemetry file loading
228fb97 CI telemetry: send indicators for common CI env vars
246dbd0 Pkg protocol: basic anonymous opt-out telemetry
KristofferC pushed a commit that referenced this issue Apr 11, 2020
…34186)

$ git log --oneline 8e236a7f993f1e732ffd0ab5c15736b2594e4109^..6c29d6c5421b4e3d872ccf42bd775b627b300069
6c29d6c provide a fallback when sandboxing projects with no project file (#1549)
b9bcd6a Do not ever attempt to set owner when extracting (#1557)
50581b2 Add try/catch around call to realpath in safe_realpath (#1547)
fb248f4 Remove Test which was added as a dependency by accident (#1553)
180d51e Disable needless specialization in Artifacts code (#1543)
7e42dfa telemetry: remove commit header (#1551)
a9d85e7 Adjust GC delay and add `--all` flag to circumvent delay (#1540)
8e236a7 Merge pull request #1544 from JuliaLang/sk/telemetry
90b8482 telemetry: factor out telemetry file loading
228fb97 CI telemetry: send indicators for common CI env vars
246dbd0 Pkg protocol: basic anonymous opt-out telemetry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants