Comments (18)
please remove JSON.parse from your code. Enjoy
from pros-atom3.
At this point I'm pretty sure that this error is non-fatal and can be safely ignored. We'll have to add the code to suppress the notification soon.
from pros-atom3.
I'm not sure why we're getting this error. If you're willing to debug, it would be much appreciated if you could pop a breakpoint on the culprit line (inside @purduesigbots/pros-cli-middleware/dist/util.js:110) to see what the data looks like. If not, we'll add a try/catch to at least print out the line to the console (but that won't really solve the issue)
from pros-atom3.
I am getting this same error.
.
Any help solving this would be appreciated.
from pros-atom3.
I am getting the same error with a new installation of PROS on my system. I am not sure how to proceed
from pros-atom3.
I'm not sure why we're getting this error. If you're willing to debug, it would be much appreciated if you could pop a breakpoint on the culprit line (inside @purduesigbots/pros-cli-middleware/dist/util.js:110) to see what the data looks like. If you'd like help walking through this, join our Slack and we'll be glad to take you through the steps.
from pros-atom3.
I'm getting the same issue, I don't know why. It would be extremely helpful if you could update me on the issue, as in, has there been any solve to it? I'm on macOS btw.
from pros-atom3.
I'm not sure why we're getting this error. If you're willing to debug, it would be much appreciated if you could pop a breakpoint on the culprit line (inside @purduesigbots/pros-cli-middleware/dist/util.js:110) to see what the data looks like. If not, we'll add a try/catch to at least print out the line to the console (but that won't really solve the issue)
I'm not sure why we're getting this error. If you're willing to debug, it would be much appreciated if you could pop a breakpoint on the culprit line (inside @purduesigbots/pros-cli-middleware/dist/util.js:110) to see what the data looks like. If you'd like help walking through this, join our Slack and we'll be glad to take you through the steps.
from pros-atom3.
I don't have a slack account and it doesn't show a sign up page. Are you sure there isn't an easier way to resolve this issue?
from pros-atom3.
We haven't been able to reproduce this issue on our machines, so we don't know what's causing it. That is to say, it would be very enlightening if someone who is running into the issue could help us out debugging it.
You can join the slack workspace using this link instead
from pros-atom3.
What channel would I use to help to debug this error?
from pros-atom3.
I got the same error but after that it said unable to start c++ server I don't know if that has somenthing to do with that or if that's just me
from pros-atom3.
JSON Error.mov.zip
Here's a video of the error.
from pros-atom3.
Apologies for the delay in taking a look at this -- been in a cross country move and settling in to work.
Following up on the discussion in slack. I've opened purduesigbots/pros-cli-middleware#9 to help us debug these issue in the future. In the meantime so we can resolve your issue, will you modify that pros-cli-middleware/dist/util.js file that you put the breakpoint on to the following and let us know the results. With this information we should be able to see what string is causing the error.
if (e.startsWith(PREFIX)) {
try {
var jdata = JSON.parse(e.substr(PREFIX.length));
var primary = jdata.type.split('/')[0];
_this.emit(primary, jdata);
}
catch (error) {
console.error("Crashing while parsing \"" + e + "\"");
throw error;
}
}
else if (e.trim()) {
console.log(e);
}
from pros-atom3.
Where would the results be found? Is the code you posted an addition to the modification I made or is it what it should look like right now?
from pros-atom3.
sorry im not in the slack but am experiencing similar issues. Was this ever resolved? Thank you!
from pros-atom3.
please remove JSON.parse from your code. Enjoy
hm. i'm not sure what this would accomplish exactly given that we need to parse the JSON data from the CLI in order to do anything with it, but thanks for the input
from pros-atom3.
i had the same error when i was conveying data from the server to my webpage, the reason for that is i was parsing JSON before the readyState was 4 .
<script type="text/javascript">
const Http = new XMLHttpRequest();
const url='xxxx';
Http.onreadystatechange = function(){
if (this.readyState == 4 && this.status == 200) {
const b = JSON.parse(Http.responseText);
}
}
Http.open("POST", url);
Http.send();
</script>
from pros-atom3.
Related Issues (20)
- Uncaught TypeError: Cannot read property 'indexOf' of undefined HOT 10
- Atom crashing when open terminal. HOT 6
- Add analytics
- New Project Error HOT 8
- Installation Error HOT 1
- Allow copying text from the terminal window HOT 4
- Project Upgrade: cmd.exe could not be spawned HOT 5
- Error Uploading - Uncaught SyntaxError: Unexpected end of JSON input HOT 1
- Cannot create new project on pros V5 HOT 19
- PROS crashing when terminal opened HOT 2
- Setup Instructions for PROS plugin on existing Atom Install HOT 11
- pros3: Build or Open terminal buttons not working HOT 17
- Failed to install pros-bootstrapper dependencies HOT 2
- Uncaught SyntaxError: Unexpected end of JSON input HOT 1
- Can't find CLI in path HOT 5
- Installation Issue: 'cmd.exe' could not be spawned. HOT 1
- Uncaught TypeError: Invalid Version: null
- Add progress reporting for new project creation HOT 3
- Atom is outdated and causes packages installed by default with PROS to throw errors when updated HOT 2
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 pros-atom3.