# Startup.jl errors in 1.11.0

**URL:** <https://discourse.julialang.org/t/startup-jl-errors-in-1-11-0/121193>\
**Category:** General Usage\
**Created:** [October 11, 2024, 12:37pm UTC](https://discourse.julialang.org/t/startup-jl-errors-in-1-11-0/121193 "2024-10-11T12:37:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jake](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jake/32/46007_2.png) [@Jake](https://discourse.julialang.org/u/Jake)\
**Post date:** [October 11, 2024, 12:37pm UTC](https://discourse.julialang.org/t/startup-jl-errors-in-1-11-0/121193/1 "2024-10-11T12:37:16Z")

</div>

My `startup.jl` file errors in Julia 1.11.0 and not in 1.10.

```julia
atreplinit() do repl
	@eval begin
		using Revise
		using OhMyREPL
		using BenchmarkTools
		using Infiltrator
	end
end

```

with the message

```julia
jakez@raspberrypi:~/data $ julia
               _
   _ _ _(_)_ | Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 1.11.0 (2024-10-07)
 _/ |\ __'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |

InitError: UndefRefError: access to undefined reference
during initialization of module REPLExt
julia> 

```

And the output of status is non-existent as shown

```julia
(@v1.11) pkg> st

(@v1.11) pkg> 

julia> 

```

When I rename startup.jl so it is not seen status and start Julia `status` does display the files in `/home/jakez/.julia/environments/v1.12/Project.toml`.

Any clues?

---

<div class="post-metadata">

**Author:** ![carstenbauer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/carstenbauer/32/4981_2.png) [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Post date:** [October 11, 2024, 12:43pm UTC](https://discourse.julialang.org/t/startup-jl-errors-in-1-11-0/121193/2 "2024-10-11T12:43:13Z")

</div>

As a workaround, put

```julia
using Pkg: Pkg

```

before the `atreplinit` and things should work. See ["UndefRefError: access to undefined reference" in 1.11 beta · Issue #345 · KristofferC/OhMyREPL.jl · GitHub](https://github.com/KristofferC/OhMyREPL.jl/issues/345).
