I'm getting errors when running Elixir files inside Atom IDE when a dependency is referenced in the script.
I'm using the Atom package "Script" to run the file.
Here's the code:
# This Elixir code runs fine when using Atom package "Script"
IO.puts "hello world"
When a dependency is referenced (NimbleCSV in this case) I get the error:
IO.puts "hello world"
NimbleCSV.define(MyParser, separator: "\t", escape: "\"")
** (UndefinedFunctionError) function NimbleCSV.define/2 is undefined (module NimbleCSV is not available)
NimbleCSV.define(MyParser, [separator: "\t", escape: "\""])
(stdlib) erl_eval.erl:669: :erl_eval.do_apply/6
(elixir) lib/code.ex:168: Code.eval_string/3
When running the same file in Terminal using "mix run [filename]" the file runs without errors.
How do I configure Atom so that is recognizes the Elixir dependencies?
If you are open to using a different package, take a look at build. In my opinion, it has the advantage of letting you choose a separate package as build provider. So, whenever there are several compilers to choose from, you can install a build provider (if available). As for Elixir, there actually is a build provider for mix.
Related
I built my own R library mlib001, and did Build/Build source package, which produced tar file in that libs directory. Now I can reference that library from another main/test R script file with:
library(mlib001)
I also went to Tools in that main code screen, Install Packages, Install from Package archive, then brows to the tar file for that library mlib001, import - all gets loaded fine. I then run the main code with CTRL-ALT-R, it runs fine and invokes functions from mlib001 and all completes ok. But if I set breakpoint in the main code to step into the function from the library, once I do step in I get the message that source code is not available: "Debug location is approximate because the source code is not available". How do I resolve this so I can step into the functions with the debugger? Thanks
I'm not sure if this is applicable but I had similar problems because I copied some comments written elsewhere that included some scandinavian characters, like "ä".
I'm a newbie and I am trying to run my first "Hello World!" program using atom editor. I have installed the build package but when I tried to build I get an error message saying 'no eligible build target. No configuration to build this project exists.' I am using ruby. What am I doing wrong?
This seems to be an old question, however I faced the same issue, hence would like call out on the solution I followed:-
When using "atom-build" package in Atom Editor, whenever you upgrade the package, you may have encountered this issue.
To fix this issue in your environment, what you need to do is:-
Atom Editor Menu:-
File -> "Add Project Folder"
Select your existing JS Project.
Once done, you should be able to use the "atom-build" package again, by invoking the build commands.
Refer:-
https://github.com/noseglid/atom-build/issues/230
I'm reading Foundations of Qt Development - by Johan Thelin.
Here quote from page 450 about Building QMake Project.
If you choose to create a Makefile using QMake, you can build your project using a simple make command (or nmake if you’re using Visual Studio). You can clean up your intermediate files using make clean. The slightly more brutal step is to run make distclean, which cleans up all generated files, including the Makefile. You will have to run QMake again to get a Makefile for make.
I tried hard to clean the files using 'make clean'. But cmd displaying the message 'make' is not recognized as an internal or external command, operable program or batch file.
I searched here and tried to find the PATH to make inside Qt directory. But not successful. Then according to this solution I tried to use mingw32-make also. But same results.
Anyone of you can help me?
If you using mingw32, try mingw32-make clean. Remember, you must add mingw's bin directory to User Enviroment to use this command. Follow "My Computer" > "Properties" > "Advanced" > "Environment Variables" > "Path" and add ;C:\Qt\Tools\mingw492_32\bin
OR
use command: setx PATH %PATH%;C:\Qt\Tools\mingw492_32\bin
Im trying to compile static library project with CodeLite and getting error:
ar rcus ./Debug/libtestlib.a #"testlib.txt"
ar: #testlib.txt: No such file or directory
But i have file testlib.txt. When i inspect exported makefile i see:
$(AR) $(ArchiveOutputSwitch)$(OutputFile) #$(ObjectsFileList) $(ArLibs)
For me it is strange to see there # symbol near ObjectsFileList. How should i compile static library project in CodeLite ?
The #"testlib.txt" is a way of letting the linker (or ar in your case) to read the object list from a file and not from a command line, this is done because on some OS, there is a limitation on the input string that a program can accept from the command line.
Usually this is not a problem ( you did not mention what is your OS and CodeLite version ) but if it is a problem (like in your case), you can disable this from CodeLite's menu bar:
Settings -> Build Settings -> Compilers -> <Your Compiler Name> -> Advanced
and Uncheck the option:
"Pass object list to the linker via file" and your problems will be gone
FYI:
I only seen this error on OSX, is this the case here?
Eran
I am writing robot tests for web testing using Google's Robot Framework with SeleniumLibrary (a test library) , one of my test involves uploading a file from the desktop by clicking on a"Browse" button on the webpage and using the windows file explorer window that pops up to navigate to and select the file ( providing a text path to file is disabled on the website for security reasons.) I have tried digging around but found little on automating this Windows File Explorer action , is there a way I can do this ?
After downloading the AutoIt library and trying to install it is asking for wincom32./python window extensions.And i am trying to install it is giving some error like
Building pywin32 2.7.217.0
Trace-back (most recent call last):
File "setup.py", line1944, in <module>
""" % dirs).split(),
File "setup.py", line 603, in __init__
if os.path.isfile(os.path.join(sdk_dir, "include", "activdbg.h")):
File"C:\Python27\lib\ntpath.py", line 96 in join
assert len(path) > 0
TypeError: object of type 'NoneType' has no len()
Below is a quick step to step guide to install autoit for robotframework in Windows (as what versions work with what in python is a pain):
First you will need a 32 bit python as autoit will not install for windows 64bit. I have used:
Python 2.6
Then from http://sourceforge.net/projects/pywin32/files/pywin32/Build%20217/
Download the windows installer so for python 2.6 it will be:
pywin32-217.win32-py2.6.exe
Now on the command prompt go to the location of where you downloaded the autoit files ex:
- cd C:\Development\Downloaded files\AutoItLibrary-1.1
and then type
- python setup.py install
If successful you will see lines in the cmd line such as:
Generating...
Importing module
running install
running build
running build_py
creating build
creating build\lib
creating build\lib\AutoItLibrary
copying src\AutoItLibrary\Counter.py -> build\lib\AutoItLibrary
copying src\AutoItLibrary\Logger.py -> build\lib\AutoItLibrary
copying src\AutoItLibrary\__init__.py -> build\lib\AutoItLibrary
running install_lib
copying build\lib\AutoItLibrary\Counter.py -> C:\Python26\Lib\site- packages\AutoItLibrary
copying build\lib\AutoItLibrary\Logger.py -> C:\Python26\Lib\site-
Now run the test
C:\RobotFramework\Extensions\AutoItLibrary\tests
Note: Ensure you have the environment variables set correctly:i.e.
- c:\python26 for python
- c:\python26\scripts for pybot
You can now run your robotframework tests by creating an exe and calling
- Run C:\RobotFramework\Seans Autoit Files\FF_FileUpload.exe
To find how to create the autoit exe visit the autoit website.
Are you attempting to install the pywin32 extensions from source? There are windows installers for all flavours of windows so I would recommend you install using an installer.
(one other thing, google did not make robot framework. It was Nokia Siemens networks...)
Use the Keyword 'Choose File'. No need for AutoIT Lib
Name: Choose File
Source: Selenium2Library
Arguments: [ locator | file_path ]
Inputs the file_path into file input field found by identifier.
This keyword is most often used to input files into upload forms. The file specified with file_path must be available on the same host where the Selenium Server is running.
Example: Choose File my_upload_field C:\Automation\sample.csv
"Choose File" worked in my case. Please note that in my case this made robot write the file path into the input field which was otherwise not editable manually.