Comments (8)
Can you post the contents of your elm-package.json
?
from elm-mode.
Closing due to inactivity, feel free to re-open if this is still an issue.
from elm-mode.
I'm having the same problem as stated above. @Bogdanp, can we re-open this issue, please? My elm source files are in the "src/elm" subdirectory. Here is my elm-package.json contents:
{
"version": "1.0.0",
"summary": "helpful summary of your project, less than 80 characters",
"repository": "https://github.com/user/project.git",
"license": "BSD3",
"source-directories": [
"src/elm"
],
"exposed-modules": [],
"dependencies": {
"circuithub/elm-number-format": "1.0.2 <= v < 2.0.0",
"elm-lang/core": "3.0.0 <= v < 4.0.0",
"evancz/elm-effects": "2.0.1 <= v < 3.0.0",
"evancz/elm-html": "4.0.2 <= v < 5.0.0",
"evancz/start-app": "2.0.2 <= v < 3.0.0"
},
"elm-version": "0.16.0 <= v < 0.17.0"
}
from elm-mode.
I've re-opened the issue. Can you post the result of evaluating (elm--find-dependency-file-path)
in one of your source files (or confirm whether or not it evaluates to your project root)?
from elm-mode.
I did this in the shell:
cd ~/documents/elm/password
emacs src/elm/TextField.elm
In emacs I ran the command you gave and it resulted in this: "~/documents/elm/password/src/elm//"
.
I'm running emacs 24.5.1 on OSX 10.10.5.
I'm fairly sure that I'm using elm-mode-20160104.233 from elpa.
While writing this it occurred to me to try commenting out stuff in my emacs init file. It turns out that the problem only occurs when I have this code enabled:
(eval-after-load 'flycheck
'(add-hook 'flycheck-mode-hook #'flycheck-elm-setup))
(add-hook 'elm-mode-hook
(lambda () (flycheck-mode)))
from elm-mode.
My next question would've been "do you have flycheck-elm on by any chance?" :). See this issue bsermons/flycheck-elm#3
from elm-mode.
That was it. I applied the fix given in bsermons/flycheck-elm#3 and now default-directory
is set correctly and it all works. Thanks. Feel free to close this issue again.
[BTW, elm-mode is great. Thank you for providing and supporting it.]
from elm-mode.
Glad to hear it and thanks for the kind words :).
from elm-mode.
Related Issues (20)
- Requires reformatter.el? HOT 4
- Types of items for imenu should be optional. HOT 3
- Evil - Deleting around a paragraph deletes to the end of buffer HOT 7
- Not all warnings from elm-analyse are shown HOT 1
- Indentation after parens produces unwanted completion
- How to enable format-on-save for all Elm buffers? HOT 4
- Incorrect Indentation for HTML Attributes
- package install failed: HOT 2
- project-root definition causes errors with lsp-mode HOT 5
- Indent tab cycling not working as expected for me HOT 3
- Refurbish elm-mode HOT 5
- Remove reliance on reformatter HOT 3
- indentation mode inserts tabs, but elm compiler does not accept tabs HOT 3
- Proposal: highlight exposed functions HOT 1
- Performence issue with large elm files HOT 4
- default binding use elm-mode-format-buffer HOT 1
- Tabs cannot be turned off suddenly HOT 2
- Compilation errors on Emacs 28.1 HOT 3
- Is it intention that "." is a word constituent in the syntax table? HOT 7
- `effect` should not be considered a keyword HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elm-mode.