Skip to content

Commit

Permalink
add (require 'dash) on every file in an attempt to fix issue with ema…
Browse files Browse the repository at this point in the history
…cs28 w/native comp

Related to:
- (void-variable it) errors when starting omnisharp server with Emacs 28 native comp OmniSharp#521
  • Loading branch information
razzmatazz committed Jul 25, 2021
1 parent 2008559 commit 184cf3f
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions omnisharp-code-structure.el
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <http://www.gnu.org/licenses/>.

(require 'dash)

(defun omnisharp--cs-inspect-buffer (callback)
"Calls into the /v2/codestructure endpoint to retrieve code structure for
Expand Down
2 changes: 2 additions & 0 deletions omnisharp-current-symbol-actions.el
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <http://www.gnu.org/licenses/>.

(require 'dash)

(defun omnisharp-current-type-information (&optional add-to-kill-ring)
"Display information of the current type under point. With prefix
argument, add the displayed result to the kill ring. This can be used
Expand Down
2 changes: 2 additions & 0 deletions omnisharp-format-actions.el
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <http://www.gnu.org/licenses/>.

(require 'dash)

(defun omnisharp-code-format-entire-file ()
"Format the code in the current file. Replaces the file contents
with the formatted result."
Expand Down
2 changes: 2 additions & 0 deletions omnisharp-helm-integration.el
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <http://www.gnu.org/licenses/>.

(require 'dash)

(when (require 'helm-grep nil 'noerror)
;;; Helm usages
(defvar omnisharp-helm-usage-candidates nil)
Expand Down
2 changes: 2 additions & 0 deletions omnisharp-http-utils.el
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <http://www.gnu.org/licenses/>.

(require 'dash)

(defun omnisharp--get-host ()
"Makes sure omnisharp-host is ended by / "
(if (string= (substring omnisharp-host -1 ) "/")
Expand Down
2 changes: 2 additions & 0 deletions omnisharp-navigation-actions.el
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
;; along with this program. If not, see <http://www.gnu.org/licenses/>.


(require 'dash)

(defun omnisharp-go-to-definition (&optional other-window)
"Jump to the definition of the symbol under point. With prefix
argument, use another window."
Expand Down
2 changes: 2 additions & 0 deletions omnisharp-server-actions.el
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
;; along with this program. If not, see <http://www.gnu.org/licenses/>.


(require 'dash)

(defun omnisharp--start-omnisharp-server (no-autodetect)
"Actual implementation for autoloaded omnisharp-start-omnisharp-server.
Expand Down
1 change: 1 addition & 0 deletions omnisharp-server-installation.el
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
;; along with this program. If not, see <http://www.gnu.org/licenses/>.

(require 'gnutls)
(require 'dash)

(defun omnisharp--server-installation-dir ()
"Returns installation directory for automatic server installation."
Expand Down
3 changes: 3 additions & 0 deletions omnisharp-server-management.el
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
;; :project-path - path to server project .sln, .csproj or directory
;; :project-root - project root directory (based on project-path)
;; :last-unit-test - a tuple of (test-framework (test-method-names ..))

(require 'dash)

(defvar omnisharp--server-info nil)

(defvar omnisharp--last-project-path nil)
Expand Down
2 changes: 2 additions & 0 deletions omnisharp-settings.el
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

;; this file contains settings that are used throughout the project

(require 'dash)

(defgroup omnisharp ()
"Omnisharp-emacs is a port of the awesome OmniSharp server to
the Emacs text editor. It provides IDE-like features for editing
Expand Down
1 change: 1 addition & 0 deletions omnisharp-solution-actions.el
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <http://www.gnu.org/licenses/>.

(require 'dash)

(defun omnisharp--prepare-solution-errors-buffer ()
"Makes a new *omnisharp-solution-errors* buffer or creates a new one
Expand Down
1 change: 1 addition & 0 deletions omnisharp-unit-test-actions.el
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <http://www.gnu.org/licenses/>.

(require 'dash)

(defun omnisharp-unit-test-at-point ()
"Runs test case under point, if any."
Expand Down
1 change: 1 addition & 0 deletions omnisharp-utils.el
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <http://www.gnu.org/licenses/>.

(require 'dash)

(defun omnisharp--path-to-server (path)
(if (and path (eq system-type 'cygwin))
Expand Down

0 comments on commit 184cf3f

Please sign in to comment.