We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcd3e76 commit 04b96b2Copy full SHA for 04b96b2
src/Types.jl
@@ -217,6 +217,12 @@ function find_project_file(env::Union{Nothing,String}=nothing)
217
abspath(env, Base.project_names[end])
218
end
219
220
+ if isfile(project_file) && !contains(basename(project_file), "Project")
221
+ pkgerror("""
222
+ The active project has been set to a file that isn't a Project file: $project_file
223
+ The project path must be to a Project file or directory.
224
+ """)
225
+ end
226
@assert project_file isa String &&
227
(isfile(project_file) || !ispath(project_file) ||
228
isdir(project_file) && isempty(readdir(project_file)))
0 commit comments