Skip to content

Commit

Permalink
Release v7.9.0 (#4816)
Browse files Browse the repository at this point in the history
* Prepare 7.9.0 release

* Put back the v7.8.0 version

We need this to ensure the versioning used during testing on GitHub.com doesn't cause caching problems in future

* fix errors on non-UTF-8 encodings

Some files failed with "invalid byte sequence in UTF-8 (ArgumentError)"
when BlobHelper#lines was called. Some problematic files include
UTF-16LE samples such as test/fixtures/Data/utf16le.

Errors were not present when computing stats from git repositories,
since git blobs are always read as ASCII-8BIT and that was working
correctly. However, when using FileBlob, encoding could be ASCII-8BIT,
UTF-8 or other, depending on the runtime value of Encoding.external_encoding.

Tests were not catching the error since they were forcing
Encoding.external_encoding to be ASCII-8BIT (introduced in #1211). So the
error would only be seen in wild usage (see issue #353).

This commit forces ASCII-8BIT on File.read calls. The error is still
present if using memory blobs with other encodings.

* Decrease expected error count

* Set version to 7.9.0

Co-authored-by: Rick Winfrey <rewinfrey@github.com>
Co-authored-by: Santiago M. Mola <santi@mola.io>
  • Loading branch information
3 people authored Mar 19, 2020
1 parent f5125ea commit 40992ba
Show file tree
Hide file tree
Showing 56 changed files with 59 additions and 57 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ end
# The error count will need to be adjusted here until such time as all grammars are 100% error free.
desc "Check that compiling the grammars doesn't introduce any new unexpected errors"
task :check_grammars do
expected_error_count = 35 # This count should only ever go down. If it goes up, there's a new issue that needs to be addressed before updating the grammar.
expected_error_count = 42 # This count should only ever go down. If it goes up, there's a new issue that needs to be addressed before updating the grammar.
rm_rf "linguist-grammars"
output, status = Open3.capture2e("script/grammar-compiler", "compile", "-o", "linguist-grammars")
errors_found = output[/the grammar library contains ([0-9]+) errors/, 1].to_i
Expand Down
1 change: 1 addition & 0 deletions grammars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,7 @@ vendor/grammars/vscode-hack:
- source.hack
vendor/grammars/vscode-lean:
- source.lean
- source.lean.markdown
vendor/grammars/vscode-opa:
- source.rego
vendor/grammars/vscode-plantuml:
Expand Down
2 changes: 1 addition & 1 deletion lib/linguist/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.8.0
7.9.0
2 changes: 1 addition & 1 deletion vendor/CodeMirror
2 changes: 1 addition & 1 deletion vendor/grammars/AutoHotkey
2 changes: 1 addition & 1 deletion vendor/grammars/MagicPython
2 changes: 1 addition & 1 deletion vendor/grammars/abap.tmbundle
2 changes: 1 addition & 1 deletion vendor/grammars/atom-language-innosetup
2 changes: 1 addition & 1 deletion vendor/grammars/atom-language-julia
2 changes: 1 addition & 1 deletion vendor/grammars/atom-language-nextflow
2 changes: 1 addition & 1 deletion vendor/grammars/chapel-tmbundle
2 changes: 1 addition & 1 deletion vendor/grammars/elixir-tmbundle
2 changes: 1 addition & 1 deletion vendor/grammars/lang-4d
2 changes: 1 addition & 1 deletion vendor/grammars/language-csound
2 changes: 1 addition & 1 deletion vendor/grammars/language-eml
Submodule language-eml updated 1 files
+1 −1 Gemfile.lock
2 changes: 1 addition & 1 deletion vendor/grammars/language-msl
2 changes: 1 addition & 1 deletion vendor/grammars/language-renpy
2 changes: 1 addition & 1 deletion vendor/grammars/language-roff
2 changes: 1 addition & 1 deletion vendor/grammars/language-shellscript
2 changes: 1 addition & 1 deletion vendor/grammars/r.tmbundle
Submodule r.tmbundle updated 1 files
+1 −1 Support/tmR.rb
2 changes: 1 addition & 1 deletion vendor/grammars/vscode-codeql
Submodule vscode-codeql updated 30 files
+1 −0 .editorconfig
+23 −20 .vscode/launch.json
+16 −4 .vscode/settings.json
+41 −17 CONTRIBUTING.md
+38 −8 common/config/rush/shrinkwrap.yaml
+36 −2 extensions/ql-vscode/package.json
+266 −13 extensions/ql-vscode/src/cli.ts
+87 −0 extensions/ql-vscode/src/discovery.ts
+19 −10 extensions/ql-vscode/src/extension.ts
+4 −1 extensions/ql-vscode/src/logging.ts
+59 −0 extensions/ql-vscode/src/qlpack-discovery.ts
+222 −0 extensions/ql-vscode/src/qltest-discovery.ts
+1 −1 extensions/ql-vscode/src/query-results.ts
+3 −1 extensions/ql-vscode/src/queryserver-client.ts
+52 −20 extensions/ql-vscode/src/run-queries.ts
+234 −0 extensions/ql-vscode/src/test-adapter.ts
+9 −0 extensions/ql-vscode/src/test-tree-node.ts
+85 −0 extensions/ql-vscode/src/test-ui.ts
+1 −1 extensions/ql-vscode/src/vscode-tests/index-template.ts
+1 −1 extensions/ql-vscode/src/vscode-tests/minimal-workspace/activation.test.ts
+1 −1 extensions/ql-vscode/src/vscode-tests/minimal-workspace/index.ts
+1 −1 extensions/ql-vscode/src/vscode-tests/no-workspace/activation.test.ts
+1 −1 extensions/ql-vscode/src/vscode-tests/no-workspace/index.ts
+37 −3 extensions/ql-vscode/src/vscode-tests/run-integration-tests.ts
+0 −1 extensions/ql-vscode/test/pure-tests/location.test.ts
+3 −0 lib/semmle-vscode-utils/src/index.ts
+65 −0 lib/semmle-vscode-utils/src/multi-file-system-watcher.ts
+27 −0 lib/semmle-vscode-utils/src/ui-service.ts
+1 −1 rush.json
+2 −1 tsfmt.json
2 changes: 1 addition & 1 deletion vendor/grammars/vscode-gcode-syntax
2 changes: 1 addition & 1 deletion vendor/grammars/vscode-prisma
2 changes: 1 addition & 1 deletion vendor/grammars/vscode-vlang
2 changes: 1 addition & 1 deletion vendor/grammars/zephir-sublime
2 changes: 1 addition & 1 deletion vendor/licenses/grammar/AutoHotkey.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
type: grammar
name: AutoHotkey
version: 90d3189125d67acbaa186eec1845ce959215fcfd
version: 18a875235d7d6427cff668babea27c061d3d7959
license: unlicense
---
This is free and unencumbered software released into the public domain.
Expand Down
2 changes: 1 addition & 1 deletion vendor/licenses/grammar/MATLAB-Language-grammar.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
type: grammar
name: MATLAB-Language-grammar
version: 90dad4575a164f05161416864905eac4af1f8072
version: 69dbf20c1eb19efd629c0438a2a493e60617e8de
license: bsd-2-clause
---
Copyright 2018 The MathWorks, Inc.
Expand Down
2 changes: 1 addition & 1 deletion vendor/licenses/grammar/MagicPython.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
type: grammar
name: MagicPython
version: 9d40c7165cdd4d72129dafa29dced3e17c5b83bf
version: c9b3409deb69acec31bbf7913830e93a046b30cc
license: mit
---
The MIT License
Expand Down
2 changes: 1 addition & 1 deletion vendor/licenses/grammar/abap.tmbundle.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
type: grammar
name: abap.tmbundle
version: 4603312e0b33e0c171651d7149c18056f9bfa7a7
version: 4df7e3cd8663480f357dd73b8e4d11b4781efce4
license: permissive
---
If not otherwise specified (see below), files in this repository fall under the following license:
Expand Down
2 changes: 1 addition & 1 deletion vendor/licenses/grammar/atom-language-innosetup.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
type: grammar
name: atom-language-innosetup
version: 7e0d2b969b17111843bc97cb74a535f7f57768d0
version: f05bc0d83956b38c5c19630c5e962e9a231bdadb
license: mit
---
The MIT License (MIT)
Expand Down
2 changes: 1 addition & 1 deletion vendor/licenses/grammar/atom-language-julia.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
type: grammar
name: atom-language-julia
version: 73f55e2be936136a20696278d213a8c37f87406c
version: f71b9da514bc5a19fc1b9e51e36a403419307e58
license: mit
---
The atom-language-julia package is licensed under the MIT "Expat" License:
Expand Down
2 changes: 1 addition & 1 deletion vendor/licenses/grammar/atom-language-nextflow.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
type: grammar
name: atom-language-nextflow
version: cf1ea6d773477a6a4cb8d80b4846deab611d9ab0
version: 40387695d768dc7c9ab7b8594cd2c925fd254e47
license: mit
---
Copyright (c) 2018 Paolo Di Tommaso
Expand Down
2 changes: 1 addition & 1 deletion vendor/licenses/grammar/chapel-tmbundle.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
type: grammar
name: chapel-tmbundle
version: aff241981b8395cad16eef71974161d5d9d34f67
version: 7337ec9d9069b4e8deeeb62f6d56969a1b65dbc3
license: apache-2.0
---
Apache License
Expand Down
2 changes: 1 addition & 1 deletion vendor/licenses/grammar/d.tmbundle.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
type: grammar
name: d.tmbundle
version: 266c4d49d05bc9328056ed3558536c2ac6f8638a
version: 622626530610566617838326458ee327b9d9df95
license: permissive
---
If not otherwise specified (see below), files in this repository fall under the following license:
Expand Down
2 changes: 1 addition & 1 deletion vendor/licenses/grammar/elixir-tmbundle.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
type: grammar
name: elixir-tmbundle
version: 69fdc72a1c96986dc4227ef733f15741faf0180c
version: f7806bc7e0b0d6c076984e71c1572a6087a35bf2
license: apache-2.0
---
Copyright 2012 Plataformatec.
Expand Down
2 changes: 1 addition & 1 deletion vendor/licenses/grammar/lang-4d.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
type: grammar
name: lang-4d
version: d2b055404473f709db3c6175a41f31a6bf15a8f0
version: cae7c50f2ca3ea9f2a5508542d567a506e42c850
license: mit
---
MIT License
Expand Down
2 changes: 1 addition & 1 deletion vendor/licenses/grammar/language-csound.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
type: grammar
name: language-csound
version: 8648c33d05a1c6f114c874a4e8567e0a423c0b36
version: fce4a6f58623c70c9155f57678c46357b528465c
license: mit
---
Copyright © 2015–2018 Nathan Whetsell
Expand Down
2 changes: 1 addition & 1 deletion vendor/licenses/grammar/language-eml.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
type: grammar
name: language-eml
version: ffb4afaf1a34fd60522c1e53dc92aeefcb150897
version: 657451acd85f1c46359d4a66772b95c0b7f95736
license: mit
---
Copyright (c) 2019 Mario Zaizar
Expand Down
2 changes: 1 addition & 1 deletion vendor/licenses/grammar/language-haskell.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
type: grammar
name: language-haskell
version: 3c71c9eda5ab9ea094fd652df6688f9858073cb7
version: a1adeb73d19206ff0a3505fc2752fb0cd13b4ac5
license: mit
---
The MIT License (MIT)
Expand Down
3 changes: 2 additions & 1 deletion vendor/licenses/grammar/language-msl.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
---
type: grammar
name: language-msl
version: 8418ec2b4afe24660f05f0ddf9115d0beb3beb85
version: 955e537fcbb14ef308a706eee72085a32e28d46a
license: mit
---
MIT License

Copyright (c) 2020 mIRC-Scripters
Copyright (c) 2017 lol2k

Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
2 changes: 1 addition & 1 deletion vendor/licenses/grammar/language-renpy.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
type: grammar
name: language-renpy
version: 8c6682b4fceb05f91bd18b79a4e9133da61299b9
version: e9743cb1b453c27e7d34ca1283aec015f46eda8e
license: mit
---
Original work Copyright (c) 2014 GitHub Inc.
Expand Down
4 changes: 2 additions & 2 deletions vendor/licenses/grammar/language-roff.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
type: grammar
name: language-roff
version: 755ec54822442266090610857363b54354b2a617
version: f0b7e16fe304ab886c667fc09a34f8704034f1b5
license: isc
---
Copyright (c) 2016-2019, John Gardner
Copyright (c) 2016-2020, John Gardner

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
Expand Down
2 changes: 1 addition & 1 deletion vendor/licenses/grammar/language-shellscript.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
type: grammar
name: language-shellscript
version: 0bba7949ad6beaece790c121344407c012b5346e
version: b4e945380ecd130089e9514fe5adca7152c3b253
license: mit
---
Copyright (c) 2014 GitHub Inc.
Expand Down
2 changes: 1 addition & 1 deletion vendor/licenses/grammar/r.tmbundle.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
type: grammar
name: r.tmbundle
version: d005a0f1055020757b797e4959d1b43ece3708aa
version: 6a15532161ab833f2785a7fca0d3de48f1ad87bf
license: permissive
---
If not otherwise specified (see below), files in this repository fall under the following license:
Expand Down
2 changes: 1 addition & 1 deletion vendor/licenses/grammar/vscode-codeql.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
type: grammar
name: vscode-codeql
version: 2435a0b2f7f61b2ee19f87edc04e46e4915dea74
version: '059a75c5a460ac6a061b88ca84c18b92ceef755d'
license: mit
---
Copyright (c) 2019 GitHub, Inc.
Expand Down
2 changes: 1 addition & 1 deletion vendor/licenses/grammar/vscode-gcode-syntax.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
type: grammar
name: vscode-gcode-syntax
version: 7702ae413cd87a016498d778097a58253531a407
version: aff7d787d5c0de4729038276e8fb8635929683ea
license: mit
---
MIT License
Expand Down
2 changes: 1 addition & 1 deletion vendor/licenses/grammar/vscode-hack.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
type: grammar
name: vscode-hack
version: 72beaf978fa89d1a90a1cc60c12d0b1f6ca77413
version: 552d910a74c1ec237ddc3b39355794f4fbb5a952
license: mit
---
MIT License
Expand Down
2 changes: 1 addition & 1 deletion vendor/licenses/grammar/vscode-lean.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
type: grammar
name: vscode-lean
version: 8019b3fb444072f38788123cd9cdf9dade6626df
version: e43beaa72c428cdcc531078bcb98f444f5270900
license: apache-2.0
---
Apache License
Expand Down
2 changes: 1 addition & 1 deletion vendor/licenses/grammar/vscode-prisma.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
type: grammar
name: vscode-prisma
version: 22b1c9ae85630335e45624ca182dcf9510ee0236
version: 9b44572322026383c0ae44ada9fd628d184be0da
license: apache-2.0
---
Apache License
Expand Down
2 changes: 1 addition & 1 deletion vendor/licenses/grammar/vscode-vlang.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
type: grammar
name: vscode-vlang
version: 8fd5e7ec6867d99c04b1662503f65e512f02aa67
version: 770d3e32d03b59f93f66be58af9dd7f3560dad6a
license: mit
---
MIT License
Expand Down
4 changes: 2 additions & 2 deletions vendor/licenses/grammar/zephir-sublime.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
type: grammar
name: zephir-sublime
version: 1935db8e087e2a9323d09b9b136d405abfb17975
version: 86d8d61843f2ca0b6ef9dfd3b606fab33cc49e67
license: mit
---
Copyright (c) 2014-2017 Zephir Team
Copyright (c) 2014-2020 Zephir Team
http://zephir-lang.com

MIT License
Expand Down

0 comments on commit 40992ba

Please sign in to comment.