-
Notifications
You must be signed in to change notification settings - Fork 25
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
Unable to refresh projects and files (Unexpected end-of-input) #90
Comments
Hello @ldebruyn You say you are trying to refresh project, but the log file you attached shows result of If refresh still does not work please include the log as well as
|
Apologies. I am using a small test project here, but the same problem occurs on the enormous production project. Here is a bit more information for you. Thanks for reading! OS/version: vim version (full output): I opened up the project, and ran the other commands. Here are the results: output of :ApexToolingVersion in vim: --action=version --tempFolderPath='/Users/leodebruyn/code/apex-temp' --config='/Users/leodebruyn/code/apex-properties/lionbrave-developer.properties' --projectPath='/Users/leodebruyn/code/lionbrave-developer' --debuggingHeaderConfig='/var/folders/_n/xzft2wm167ggpsytcwr5028m0000gn/T/vlRcO5E/3-apexTraceFlag.conf' --responseFilePath='/Users/leodebruyn/code/lionbrave-developer/.vim-force.com/response_version' --pollWaitMillis=1000 --maxPollRequests=1000 output of java -version from command line: content of project-path/.vim-force.com/response_refresh file: I am not too familiar with debugging this application since I am new to it, but here is the output from ApexMessages as well, if that helps: --action=refresh --tempFolderPath='/Users/leodebruyn/code/apex-temp' --config='/Users/leodebruyn/code/apex-properties/lionbrave-developer.properties' --projectPath='/Users/leodebruyn/code/lionbrave-developer' --debuggingHeaderConfig='/var/folders/_n/xzft2wm167ggpsytcwr5028m0000gn/T/vlRcO5E/8-apexTraceFlag.conf' --skipModifiedFilesCheck=true --responseFilePath='/Users/leodebruyn/code/lionbrave-developer/.vim-force.com/response_refresh' --pollWaitMillis=1000 --maxPollRequests=1000 ^ [INFO] # Time taken: 0.005s |
Your environment looks fine at first glance. what API version is configured in your package.xml ? do you need to use proxy to connect to the internet ? If you do then (based on the log) it is not configured. The problem seems to be with the call to SFDC not returning response in the expected format. When this happens there is nothing can be done on the client. If above does not give you enough to debug it yourselves then I could send you .jar version which does more debug output. Perhaps we will be able to see what response you get when calling SFDC. |
Let's try a debug jar, if that's not too much trouble.
There is nothing weird about my connection - a typical US in-router cable
company wifi connection (comcast). I am not aware of any changes, and am
able to connect via other tools like Mavensmate. If there has been a
change, perhaps more debug info will isolate it.
It does seem to be getting a connection, just having trouble pulling things
down. In SF, I do see three sessions under Setup > Security Contrtols >
Session Management for my ip address, two which are obviously from logging
into the browser (content and UI) and a third that has the right timestamp
which has the following properties:
Session Type: API
User Type: Standard
Login Type: Other Apex API
I am guessing that is vim-force doing its thing.
|
what API version is configured in your package.xml ? To run jar file with some more debug output please follow these steps
Thanks |
Here are the results. Then, I backed up and cleared out any old files and projects, and tried to initialize the project fresh, basically:
I entered user, name, key, url. The config was good, and the project was set up but once it started to refresh, I get the same errors. I checked Login History in salesforce setup, and I can see the login in question: In my new project folder, I have now got:
Attached are the terminal logs for java and the apex_messages log. |
Thanks, looks like we are getting somewhere.
If you believe you did not set Assuming you confirmed that this variable is not set - try to execute |
Well I'll be... debugging a program you like to use is like reading a great detective novel. Looks like it is set after all. Clearing Note, I literally copy and pasted it from the help file, and it is totally valid JSON. So, thankfully I can continue working now, but the bug is the inability to set
|
I cannot ApexRefreshProject or ApexRefreshFile today. I tried it on two different projects, including trying to pull down into an empty folder. I get an error about:
[ERROR] spray.json.JsonParser$ParsingException: Unexpected end-of-input at input index 0 (line 1, position 1), expected JSON Value:
Attached is the full log.
log-buffer.txt
The text was updated successfully, but these errors were encountered: