Last active
July 3, 2019 19:29
Star
You must be signed in to star a gist
Patch for "undefined constant Crystal::Codegen::Target" error - crystal-lang-tools/scry v0.8.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/scry/completion_provider.cr b/src/scry/completion_provider.cr | |
index 29e0d36..f67438c 100644 | |
--- a/src/scry/completion_provider.cr | |
+++ b/src/scry/completion_provider.cr | |
@@ -1,4 +1,5 @@ | |
require "./log" | |
+require "compiler/crystal/codegen/target" | |
require "compiler/crystal/crystal_path" | |
require "./completion/*" | |
diff --git a/src/scry/parse_analyzer.cr b/src/scry/parse_analyzer.cr | |
index d87eca4..bbe9ed5 100644 | |
--- a/src/scry/parse_analyzer.cr | |
+++ b/src/scry/parse_analyzer.cr | |
@@ -1,4 +1,5 @@ | |
require "compiler/crystal/syntax" | |
+require "compiler/crystal/codegen/target" | |
require "compiler/crystal/crystal_path" | |
require "./workspace" | |
require "./text_document" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment