-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Includes #3
Comments
I got it to work for me by setting my |
Setting the include dirs like that: "linter-erlang":
includeDirs: "./apps/lsm_oauth_client/include" It gives me the following error, something with the underscores in the dir name (lsm_oauth_client) perhaps? Atom Version: 1.0.11 Stack TraceUncaught TypeError: Cannot read property 'match' of undefined
Commands
Config{
"core": {
"disabledPackages": [
"symbols-view"
],
"themes": [
"one-light-ui",
"writer-syntax"
]
},
"linter-erlang": {
"includeDirs": "./apps/lsm_oauth_client/include"
}
} Installed Packages# User
atom-beautify, v0.28.12
atom-ctags, v4.2.0
autocomplete-erlang, v1.1.1
autocomplete-html-entities, v0.1.0
autocomplete-paths, v1.0.2
autocomplete-polymer, v0.2.4
autocomplete-python, v0.5.3
color-picker, v2.0.11
file-icons, v1.6.9
file-types, v0.5.1
git-log, v0.4.1
imdone-atom, v1.1.38
language-elixir, v0.5.2
language-erlang, v3.0.0
language-log, v0.6.0
language-plantuml, v0.1.1
linter, v1.5.1
linter-erlang, v0.3.0
linter-markdown, v1.2.1
linter-pep8, v1.0.1
markdown-mindmap, v0.2.4
markdown-scroll-sync, v0.4.2
minimap, v4.13.3
pigments, v0.14.0
plantuml-viewer, v0.6.1
project-manager, v2.5.1
python-autopep8, v0.1.3
sync-settings, v0.6.0
writer-syntax, v0.16.2
# Dev
No dev packages |
Hmmm I'll look into it tonight when I get som more time. I think I have an idea what is going on. |
Hi RaoH, if you give me some tip maybe I could have a look at it. |
Really sorry! Life came in my way big time so I couldn't get time to focus on the issue here. Looks like we didn't get the row number as expected when parsing the row on init.coffee on line 75.
change to
And turn on the developer tools on atom. If you could paste the output it should hasten a solution! On a side-note, this package will be removed from atom-packages quite soon. I am now admin on the linter-erlc package. So will probably do an overhaul on the entire parsing on linter errors. But your output will help making it better! |
Don't worry. This is the console output (the intended line in init.coffee for me is 65 instead of 75): ./deps/ls_lib/include/ls_uri.hrl:27: type record() undefined |
Oh it does help if I'm looking in the right version =) Ah I see it now! Thanks! |
Hmm thought I didn't catch type warnings. But seems that it does. Did a mock project like the structure you got, but I don't seem to get the error at all. Really weird. I made a little patch that bumped the atom-linter helper module to a newer version. If you could help me with a console.log(filePath) at the same place, perhaps I could understand why the crash happens. Seems like the atom-linter helper somehow crashes. |
Here is the console output: /Users/frepond/Documents/code/lsm_bot/apps/lsm_oauth_client/src/lsm_oauth_session.erl |
Man, I've been trying to replicate the error for awhile now and I really don't see it anymore. |
Raoul, thanks for having a look at it. If I'm able to replicate this in a project I could share I'll send it to you. In the meanwhile I look forward for linter-erlc. Regards |
Hi, I couldn't get includes working. Neither setting absolute or relative paths. Do you have any clue?
I have the following project structure:
The text was updated successfully, but these errors were encountered: