When I start Emacs, I get the following error message and was wondering how I can fix it:
enter image description here
When I then start emacs with --debug-init as recommended, it shows the following error log:
enter image description here
Since it might have something to do with my .emacs file, here is the code for it:
enter image description here
exec-path-from-shell is a package that needs to be installed. When you say require exec-path-from-shell, you are telling emacs to load this package. However, this is not installed so it complains. You can either comment out that line or if you'd like to install it, follow instructions here:
https://github.com/purcell/exec-path-from-shell
Related
Sorry if this is a silly question - just getting started with Go.
I have installed 'go 1.13' (due to this being the version currently supported by Cloud Functions) and the latest version for the VSCode Go extension. This is all in Windows.
I then followed the Go Getting Started Guide. All seems to be working fine - I can run the application and VSCode does not report any syntax errors etc.
Now VSCode just gives me a nagging error message whenever I open a .go or .mod file:
Unable to execute 'go list'' command, run 'go mod tidy' to know more
Running the go mod tidy command does not result in any output. The other tools, such as gopls where installed successfully by VSCode. Any idea what could cause this and how it can be fixed?
This error is caused by the 'Dependency Analysis' extension (redhat.fabric8-analytics). Disabling this extension will result in the error not being shown anymore.
This error is also listed in the FAQ for the Dependency Analysis extension:
FAQ Item 3: Failed to run golist command.
Suggestion: Resolve the error thrown by go mod tidy and go list for the project and try again.
Maybe this will work for someone else but it didn't work for me (only disabling the extension did). In any case, I've raised an issue at the extensions GitHub rep fabric8-analytics/fabric8-analytics-vscode-extension to see if there is another fix but disabling the extension.
I just install the latest version(1.16.3) and work for me.
I've been running Maxima on my iMac with Sierra. I just tried doing some examples to learn about plotting. When I try to make a plot with the plot2d command I get my plot but there are no labels, no numbers on my axis and no title. No text at all. I also get a series of error messages related to a module called Pango.
The error messages are:
(process:11388): Pango-CRITICAL **: No modules found:
No builtin or dynamically loaded modules were found.
PangoFc will not work correctly.
This probably means there was an error in the creation of:
'/opt/mac/quartz-new/etc/pango/pango.modules'
You should create this file by running:
pango-querymodules > '/opt/mac/quartz-new/etc/pango/pango.modules'
(process:11388): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderCoreText', script='common'
(process:11388): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderCoreText', script='latin'
Does anyone know how to resolve this. It only happens with inline plots. If I use the wxmaxima menu for plotting and send it thru GNUPLOT I avoid this issue.
I don't have a Mac so I haven't tried these commands; I found this info via a web search. I hope it works for you.
It appears that the Pango library is not installed. Searching the web seems to show that installing it is simple: http://brewformulas.org/Pango
That method requires a package manager named Homebrew. If that is not already installed, you'll need to install Homebrew first and then Pango. See: http://macappstore.org/pango/
I'm trying to get vim-ipython working, and have been using this reference guide (https://github.com/ivanov/vim-ipython).
First, I created the following directory:
/Users/***/.vim/ftconfig/python/ipy.vim
However, when I type %edit in IPython, I still get
No default editor available.
Specify a GUI text editor in the `IPythonWidget.editor` configurable to enable the %edit magic
Then, I tried typing the following in IPython:
source ipy.vim
I got an error:
File "<ipython-input-7-505e44392e8d>", line 1
source ipy.vim
^
SyntaxError: invalid syntax
Finally, I edited ipython_qtconsole.config.py to include the following line:
c.IPythonWidget.editor = "/Users/***/.vim/ftplugin/python/ipy.vim"
Still no dice. I can get emacs to work by editing c.IpythonWidge.editor, but I'm not sure how to change it to use vim as the editor.
Any suggestions? Thanks!
I have had a few attempts at installing SASS on netbeans. I have followed the following tutorial:
http://kgagliardo.com/blog/netbeans-sass-windows-7
I get the below error when creating and trying to save the SASS file and no CSS file is created.
""C:\Ruby193\bin\sass.bat" "--cache-location"
"C:\Users\Leanne\AppData\Local\NetBeans\Cache\7.4\sass-compiler"
"C:\Users\Leanne\Documents\work\freelance\sites\fws_templates\gamer\scss\store.scss"
"C:\Users\Leanne\Documents\work\freelance\sites\fws_templates\gamer\css\store.css"
'"ruby.exe"' is not recognized as an internal or external command,
operable program or batch file. Done."
I've been stuck on this all morning, please help...
UPDATE
I've tried to follow the instructions provided below and it still does not work, although I did get a slightly different error message:
"C:\Ruby193\bin\sass.bat" "--cache-location"
"C:\Users\Leanne\AppData\Local\NetBeans\Cache\7.4\sass-compiler"
"C:\Users\Leanne\Documents\work\freelance\sites\fws_templates\gamer\scss\store.scss"
"C:\Users\Leanne\Documents\work\freelance\sites\fws_templates\gamer\css\store.css"
Syntax error: File to import not found or unreadable:
foundation/components/accordion.
Load path: C:/Users/Leanne/Documents/work/freelance/sites/fws_templates
(DEPRECATED)
on line 10 of C:\Users\Leanne\Documents\work\freelance\sites\fws_templates\gamer\scss\foundation\foundation.scss
from line 11 of C:\Users\Leanne\Documents\work\freelance\sites\fws_templates\gamer\scss\store.scss
Use --trace for backtrace. Done.
However Now I simply get the original error message again. No idea what to do. See image below showing that I have done everything according to the instructions (I think).
http://i.stack.imgur.com/Eekyt.png
Your path environment variable points to the wrong folder
Your Path to ruby is C:\Ruby193\bin
Go back and edit your path environment variable to point to C:\Ruby193\bin . At the moment you have C:\Ruby\192\bin
EDIT
And Now remove the backslash between Ruby and 193.
Your Path is set to : C:\Ruby\193\bin :-) !
your .bat is in Folder : C:\Ruby193\bin
TIP
Go to Options
Miscellaneous --> CSS Preprocessors
check : Generate extra information (debug)
You don't have path to ruby.exe which is c:\Ruby\192\bin in you PATH variable.
In Windows 7:
Right click on My computer and select Properties -> Go to
Advanced Tab -> Click on the Environmental Variables button
In the Environmental Variables window highlight PATH variable in
System variables section and click Edit
Append ;c:\Ruby\192\bin to the end (the semicolon is intentional)
Restart command prompt
You don't have path to ruby.exe
As simple, reinstall ruby, use ruby installer for windows.
When you go through the installation wizard, you’ll come to this options screen:
From what I can tell, the only option that you need to check on that one is the middle option, which helps your command-line instructions recognize where to find (as it says) “Ruby executables”. Otherwise, you’ll get the error message “ruby is not recognized as an internal or external command” when you try to install Sass in the command prompt.
Go to Options
Miscellaneous --> CSS Preprocessors
check : Generate extra information (debug)
For more information go to Setting Up Sass on Windows
They are all right in the above message. The problem is that Netbeans is not designed to pick up these changes instantaneously. Once you make the changes above, you have to RESTART Netbeans, so that the changes will be applied. This worked for me. Let me know if it works for you.
Thanks
I had a problem with Terminal a Jekyll install but I didn't spot the site being not-uploaded to the server by rsync because I didn't see an error in the output. So, I was wandering:
Is there any way to make Terminal detect errors and give them a specific color?
My error here was:
rsync error: unexplained error (code 255) at /SourceCache/rsync/rsync-42/rsync/io.c(452) [sender=2.6.9]
It had other things, but if this line was highlighted, I would have spotted it way earlier.
Generally speaking, color output is a responsibility of a program and not a terminal.
For example, clang compiler produces colorful error and warning messages.
If the application you are using does not support this, the only option is to create a wrapper and parse its output, highlighting errors in different color. This approach is taken by colorgcc, for instance, to make GCC compiler output in colors.
Perhaps you can grab that script and adjust it for your needs? Check it out here - https://github.com/colorgcc/colorgcc
Also, if there are errors, the app should probably exit with non-zero exit code. It might be a good idea to check it and write an even bigger and noticeable message upon exit in case of errors.
Hope it helps.
Good luck!
You can enable highlighting of errors for one command with the hilite utility. It only works for commands you type hilite for – it isn’t enabled globally – but it’s still useful if you know or suspect that a command outputs errors and you want to locate them. So when you build with jekyll, you could do any of the following:
Change jekyll … to hilite jekyll … in your build script
Try to remember to always type hilite before jekyll
Run jekyll normally, but if its output or exit code makes you suspect you got errors, run it again with hilite to locate them
On OS X, you can install hilite with Homebrew using brew install hilite.