I have installed masm32 in c:\masm32\. Then, I have created a Build System in ST3:
{
"shell_cmd": "c:\\masm32\\bin\\build.bat \"${file_path}/${file_base_name}\"",
"file_patterns": "[\"*.asm\"]",
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"selector": "source.asm,source.ASM",
"working_dir": "${file_path}",
"encoding": "utf-8"
}
I can see my new system in the list under the "Build System" menu, but when opening an .asm file and trying to build, I can see the text Line XX, ColumnXX; No Build System at the bottom. It happens also if I explicitly select my Build System.
What is wrong in my configuration?
I have tried this configuration unsuccessfully:
{
"shell": true,
"cmd": ["ml", "/c", "/coff", "$file", "&&",
"link", "/SUBSYSTEM:WINDOWS", "${file/\\.asm/\\.obj/}", "&&",
"explorer.exe", "$file_path"],
"selector": "source.asm"
}
Pressing Ctrl+B still says "No Build system".
Related
I'm trying to send an email with SendGrid. However, it doesn't work. I configured SendGrip as
Setup->Guide->Integrate->Web API->Node.js and get "myKeyFromSendGrid"
I setup the file config/plugins.js
module.exports = ({ env }) => ({ // ... email: { provider: "sendgrid", providerOptions: { apiKey: env( "myKeyFromSendGrid" ), }, settings: { defaultFrom: "test#test.com", defaultReplyTo: "no-reply#test.com", }, }, // ... });
I started my Strapi server, and configured at Roles & Permissions the Email Send to Public. Then, I went to Postman and create a new POST request "http://localhost:1337/email" with this content:
{
"to": "test#example.com",
"from": "test#example.com",
"subject": "Sending with Twilio SendGrid is Fun",
"text": "and easy to do anywhere, even with Node.js",
"html": "<strong>and easy to do anywhere, even with Node.js</strong>"
}
But I keep receiving "Internal Server Error" from Postman, and from Strapi Debug
AssertionError [ERR_ASSERTION]: Cannot wrap non-Error object
at Function.boomify (C:\Users\GustavoRangel\Documents\Development\sandbox\personal_blog\server\node_modules\boom\lib\index.js:107:14)
at formatBoomPayload (C:\Users\GustavoRangel\Documents\Development\sandbox\personal_blog\server\node_modules\strapi\lib\middlewares\boom\index.js:47:22)
at C:\Users\GustavoRangel\Documents\Development\sandbox\personal_blog\server\node_modules\strapi\lib\middlewares\boom\index.js:84:36
at processTicksAndRejections (internal/process/task_queues.js:97:5)
Any idea on what am I doing wrong? I am using Strapi v3.0.1
So I have installed the Nodejs package and the .sublime-build file looks like this:
{
"cmd": ["node", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.js",
"shell": false,
"encoding": "cp1252",
"windows":
{
"shell_cmd": "taskkill /F /IM node.exe & node $file"
},
...
}
And I have a basic JS file...
let check = true;
let funcToCheck = (check) => {
console.log(check);
}
funcToCheck();
The issue is whenever I try to build the JS file, I get:
SUCCESS: The process "node.exe" with PID 1308 has been terminated.
So it is terminating the process that has been created but is not actually logging anything to the console. I have looked at many examples on how the .sublime-build should look but cannot see where it is wrong
If I type in the CMD.exe
slimrb -p SashaSlim.slim>SashaSlim.html
the contents of the my valid file, for example, SashaSlim.slim correct compiled into SashaSlim.html. But I can not make the build system for Sublime Text, which would do the same.
Example of my code:
{
"path": "$file_path",
"selector": "text.slim",
"shell_cmd": "slimrb -p $file_name>$file_base_name.html",
}
When I run my build system, create blank file SashaSlim.html without the result of compiling.
Where I made a mistakes in my .sublime-build file?
Windows 10
Sublime Text Build 3114
Thanks.
{
"cmd": ["slimrb"],
"working_dir": "${file_path:${folder}}",
"selector": "text.slim",
"quiet": true,
"windows": {
"cmd": ["slimrb", "-p", "--trace", "$file", "$file_base_name.html"],
"shell": true
}
}
Re: https://gist.github.com/Kristinita/f49eca1aa44545b5fcacaceeb8eaaee4
I can successfully use the node in the console of the sublime text 3 editor. I try to use nodemon to make it faster for me to run it each time I save the file.
I go tools-> build system and type this:
{
"cmd": [ "/usr/local/bin/nodemon", "$file" ],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.js"
}
but I get the following error:
env: node: Argument list too long
[Finished in 25.7s with exit code 126]
[cmd: ['/usr/local/bin/nodemon', '/Users/x/Documents/MSCS/p2/v4/app.js']]
[dir: /Users/x/Documents/MSCS/p2/v4]
[path: /usr/bin:/bin:/usr/sbin:/sbin]
And in the console here is what happens:
x$> nodemon --v app.js
env: node: Argument list too long
Thanks for help:)
Let me tell you how I manage
1st. add the main script on the package.json to start with a simple nodemon (without args)
"scripts": {
"start": "node app-server.js",
...
2nd. tools > build system > new build system
{
"shell": true,
"cmd": ["nodemon"],
"path": "/usr/local/bin/:$PATH",
"env": {
"dns_srv": "4.2.2.2",
},
"working_dir": "${project_path:${folder}}",
"selector": "*.js"
}
still working on how to get ansi colors on the output terminal..
I've installed Sublime Text's NodeJS plugin which provides a NodeJS build that looks like this:
{
"cmd": ["node", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.js",
"shell":true,
"encoding": "cp1252",
"windows":
{
"cmd": ["taskkill /F /IM node.exe & node", "$file"]
},
"linux":
{
"cmd": ["killall node; node", "$file"]
}
}
I've compiled node myself and located into: /opt/node/v0.10.24. The full path to the bin being /opt/node/v0.10.24/bin/node.
I'm testing this with a simple file containing console.log('Hello World');
When running the build system I get:
/Users/jviotti/Desktop/test.js: node: command not found
[Finished in 0.0s with exit code 127]
I tried adding a path to the build like this:
"path": "/opt/node/v0.10.24/bin",
And when running the build I get just:
[Finished in 0.1s]
Notice that the console log is not printed. What am I missing?
EDIT: This is the NodeJS plugin I use: https://github.com/tanepiper/SublimeText-Nodejs
This should do it ..
{
"cmd": ["node $file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.js",
"shell": false,
"encoding": "cp1252",
"windows":
{
"cmd": ["taskkill /F /IM node.exe && node $file"]
},
"linux":
{
"cmd": ["killall nodejs 2>/dev/null; nodejs $file"] // or node, if built from source
}
}
Found the problem. Commenting out "shell": true solves the problem.