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

Commit c55bc70

Browse files
committed
fixed logfile crash on very first install
1 parent 95738c0 commit c55bc70

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

.circleci/config.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,6 @@ defaults: &defaults
1919
- run:
2020
name: Julia version
2121
command: julia --version
22-
- run:
23-
name: Install StaticLint.jl
24-
# Note the "using Lint" is to pre-compile the cache
25-
# Also, we are using the `master` branch directly since a working
26-
# version isn't currently released.
27-
command: |
28-
julia -E 'using Pkg; Pkg.add(PackageSpec(url="https://github.com/julia-vscode/StaticLint.jl", rev="master")); using StaticLint;'
29-
- run:
30-
name: StaticLint.jl version
31-
command: julia -E 'using Pkg; Pkg.status("StaticLint");'
3222
- run:
3323
name: Create VFB for Atom to run in
3424
command: /usr/local/bin/xvfb_start

lib/julia-server.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ if ispath(port)
4040
exit()
4141
end
4242

43+
# it is needed for the log file at the very first install
44+
mkpath(store_location)
45+
4346
# remove previous logs
4447
logs = readdir(store_location, join = true)
4548
for f in logs

spec/linter-julia-spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const badFile = path.join(__dirname, 'fixtures', 'bad.jl');
1212
const goodFile = path.join(__dirname, 'fixtures', 'good.jl');
1313

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

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

0 commit comments

Comments
 (0)