Great video - thanks, Chris! I was just exploring PkgTemplates.jl/package development the other day but I never spent the time to figure it out and now I feel like I did after watching this : )
This is great! Could you do a vid on using github-pages and Documenter.jl to deploy docs (either travis or github actions)? A video guide I think would be more useful than the text guide.
I believe you need to activate the developer environment for the current project/repo/package you're working on. In the folder for the package, execute: ]activate MyExample Then you'll be able to `using MyExample` anywhere in the source code.
It is showing error when i used generate() ERROR: path C:\Users\Rahul\.julia\dev\test for package test no longer exists. Remove the package or `develop` it at a new path
Is it necessary to publish the package to a remote repository? I chose to ignore that for now, but run into "ERROR: ArgumentError: Package MyExample not found in current path:".
When I executed "using MyExample" in runtests.jl (at 9:45), Julia threw this error: ArgumentError: Package MyExample not found in current path: - Run import Pkg; Pkg.add("MyExample") to install the MyExample package. (I am on MacOS Big Sur with Julia 1.5.1.) Here is the solution which solved this problem for me: activate ~/.julia/dev/MyExample See this post: discourse.julialang.org/t/creating-package-with-pkgtemplate-stuck-following-video-tutorial/41572
So I had a lot of trouble getting this to work. It kept saying UndefVarError when trying to run the tests. I was able to get it to work by going into the pkg manager and typing activate ~/.julia/dev/MyExample. I hope this helps if others run into the same problem.
I did not get something, you are making a folder MyExample, then after compiling the package, continue the development in ~/home/user/.julia/dev/MyExample, and forget about the first folder right? But is .julia/dev/Myexample directory stable? what if you update julia and it may remove the encitre directory in .julia/?
If anyone is coming here in 2022, Juno is no longer receiving updates so get started by using Julia with vscode or jupyter notebooks instead. To launch notebooks from Julia REPL run: using Pkg Pkg.add("IJulia") using IJulia notebook()
ERROR: IOError: open("DrReaderCompiled2\\share\\julia\\artifacts\\f42f9d226c70f0bc88e5f897d914d9de1ac2ce03\\share\\wayland-protocols\\unstable\\linux-explicit-synchronization\\linux-explicit-synchronization-unstable-v1.xml", 769, 33206): no such file or directory (ENOENT)
Anyone else getting stuck with not being able to `export`? When I do MyExample.my_f() it works just fine, but exporting my_f and then running a fresh REPL in the runtests.jl file, it doesn't recognize there being a function with that name...
To be a bit clearer, everything up until 11:41 works perfect. Then the second I add `export my_fxn` in the Module file, then restart the REPL and run `my_fxn(1,2)`, it says that there is no `my_fxn` defined
The Julia community is lucky to have Chris. Legendary contributor and, apparently, a great teacher as well.
0:00 - intro, discourse, slack
2:30 - creating new package + repo
5:00 - PkgTemplates
8:50 - writing code
9:30 - writing tests
14:00 - testsets
16:45 - CI
22:30 - branches and PRs
27:15 - code review
29:00 - external dependencies in a package
34:30 - resolving in Pkg
40:45 - codecov
43:00 - registering packages
45:00 - versioning
47:30 - developing/patching other packages
50:30 - write access and forks
51:45 - submitting PRs
54:00 - open source communities
Thank you.
You are awesome. You just gave a lot more than Julia and developing a package in Julia. This really helped a lot. Thank You.
Awesome step-by-step tutorial!
Great video - thanks, Chris! I was just exploring PkgTemplates.jl/package development the other day but I never spent the time to figure it out and now I feel like I did after watching this : )
Awesome tutorial covering so many details. Now that vscode is getting traction, it would be great to show how some of these things change in vscode.
Thanks a lot! Awesome tutorial and very nice explanation
Glad it was helpful!
Thank you for start!
Great tutorial for the Julia tools, thanks ! (may be use a bigger font for viewing Juno on small(er) screens ?)
High quality video, thanks!
Thanks a lot , I have been waiting since your last video on this topic stopped working,with an update in jullia
This is great! Could you do a vid on using github-pages and Documenter.jl to deploy docs (either travis or github actions)? A video guide I think would be more useful than the text guide.
I only understood 2% of it, but the first step has been taken. I will sleep on it and continue
Thank you !!!
Chris - around 9:32 I wonder why you didn't need to write 'using .MyExample'. I need the '.' otherwise I get a path error
i had the same problem. thanks for the solution!
I believe you need to activate the developer environment for the current project/repo/package you're working on.
In the folder for the package, execute:
]activate MyExample
Then you'll be able to `using MyExample` anywhere in the source code.
Christoper Moen you are the man, thank you so much.
It is showing error when i used generate()
ERROR: path C:\Users\Rahul\.julia\dev\test for package test no longer exists. Remove the package or `develop` it at a new path
Do you have a folder there?
@@chrisrackauckasofficial No there is not any folder named 'dev' , i have created one and followed instructions.
@@yuvrajiro Interesting. Is it made the first time you make a package? Maybe try deving another existing package first?
Is it necessary to publish the package to a remote repository? I chose to ignore that for now, but run into "ERROR: ArgumentError: Package MyExample not found in current path:".
When I executed "using MyExample" in runtests.jl (at 9:45), Julia threw this error:
ArgumentError: Package MyExample not found in current path: - Run import Pkg; Pkg.add("MyExample") to install the MyExample package.
(I am on MacOS Big Sur with Julia 1.5.1.)
Here is the solution which solved this problem for me: activate ~/.julia/dev/MyExample
See this post: discourse.julialang.org/t/creating-package-with-pkgtemplate-stuck-following-video-tutorial/41572
You are a savior.
New link for the Slack Invite: julialang.org/slack/
This video assumes an enormous amount of basic knowledge and is therefore unsuitable for beginners
How to edit someone else's package 47:25
2:19 "and git.. a new one running" kek
shit I can barely see the gray of letters
So I had a lot of trouble getting this to work. It kept saying UndefVarError when trying to run the tests. I was able to get it to work by going into the pkg manager and typing activate ~/.julia/dev/MyExample. I hope this helps if others run into the same problem.
You're a hero, thank you
I think it's very close...
MY NAME IS JULIA
I did not get something, you are making a folder MyExample, then after compiling the package, continue the development in ~/home/user/.julia/dev/MyExample, and forget about the first folder right? But is .julia/dev/Myexample directory stable? what if you update julia and it may remove the encitre directory in .julia/?
If anyone is coming here in 2022, Juno is no longer receiving updates so get started by using Julia with vscode or jupyter notebooks instead. To launch notebooks from Julia REPL run:
using Pkg
Pkg.add("IJulia")
using IJulia
notebook()
ERROR: IOError: open("DrReaderCompiled2\\share\\julia\\artifacts\\f42f9d226c70f0bc88e5f897d914d9de1ac2ce03\\share\\wayland-protocols\\unstable\\linux-explicit-synchronization\\linux-explicit-synchronization-unstable-v1.xml", 769, 33206): no such file or directory (ENOENT)
Anyone else getting stuck with not being able to `export`? When I do MyExample.my_f() it works just fine, but exporting my_f and then running a fresh REPL in the runtests.jl file, it doesn't recognize there being a function with that name...
To be a bit clearer, everything up until 11:41 works perfect. Then the second I add `export my_fxn` in the Module file, then restart the REPL and run `my_fxn(1,2)`, it says that there is no `my_fxn` defined