Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit

Permalink
fixed logfile crash on very first install
Browse files Browse the repository at this point in the history
  • Loading branch information
takbal committed Mar 8, 2021
1 parent 95738c0 commit c55bc70
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
10 changes: 0 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,6 @@ defaults: &defaults
- run:
name: Julia version
command: julia --version
- run:
name: Install StaticLint.jl
# Note the "using Lint" is to pre-compile the cache
# Also, we are using the `master` branch directly since a working
# version isn't currently released.
command: |
julia -E 'using Pkg; Pkg.add(PackageSpec(url="https://github.com/julia-vscode/StaticLint.jl", rev="master")); using StaticLint;'
- run:
name: StaticLint.jl version
command: julia -E 'using Pkg; Pkg.status("StaticLint");'
- run:
name: Create VFB for Atom to run in
command: /usr/local/bin/xvfb_start
Expand Down
3 changes: 3 additions & 0 deletions lib/julia-server.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ if ispath(port)
exit()
end

# it is needed for the log file at the very first install
mkpath(store_location)

# remove previous logs
logs = readdir(store_location, join = true)
for f in logs
Expand Down
2 changes: 1 addition & 1 deletion spec/linter-julia-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const badFile = path.join(__dirname, 'fixtures', 'bad.jl');
const goodFile = path.join(__dirname, 'fixtures', 'good.jl');

// Julia is _slow_ to bring in StaticLint.jl, increase the timeout to 90 seconds
jasmine.getEnv().defaultTimeoutInterval = 90 * 1000;
jasmine.getEnv().defaultTimeoutInterval = 180 * 1000;

describe('The Julia StaticLint.jl provider for Linter', () => {
beforeEach(async () => {
Expand Down

0 comments on commit c55bc70

Please sign in to comment.