Skip to content
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

Script doesn't execute #666

Open
priand opened this issue Jan 21, 2025 · 3 comments
Open

Script doesn't execute #666

priand opened this issue Jan 21, 2025 · 3 comments

Comments

@priand
Copy link

priand commented Jan 21, 2025

My environment suddenly stopped executing scripts on one of my Macbook Pro M3 (Sequoia 15.2), after running properly for a few months. Once the script is input, the spinning wheel keeps running and it never displays a result. Even for simple expressions like 1+1. 'Stop' doesn't do anything, although 'Kill" does it. But then 'Run' get it back to the previous state.
I reinstalled 3.0.3, rebooted the machine but nothing helped. After reinstalling the RunJS, I'm still getting my history so I bet there is a folder somewhere to erase to do a full reset?

@lukehaas
Copy link
Owner

Yes, there is a config file at the following location, depending on your OS:
Linux: ~/.config/runjs/config.json
Mac: ~/Library/Application\ Support/runjs/config.json
Windows: %APPDATA%\runjs\config.json

Try deleting this and then restarting RunJS. Before you delete it, it would be helpful if you could paste its contents here; that way, I can diagnose the issue and prevent it from happening again.

@priand
Copy link
Author

priand commented Jan 21, 2025

Thanks - just deleting the config.json file and re-entering the license # made it work.
Here is the old config.json where I replaced confidential info by "XXXX".

{
	"autoeval": true,
	"showUndefined": false,
	"loopProtection": true,
	"lineNumbers": false,
	"invisibles": false,
	"matchingLines": true,
	"activeLine": false,
	"lineWrap": true,
	"vimkeys": false,
	"userId": "de24bfbf-44b4-4587-b0af-f568d7e405ab",
	"fontSize": "15",
	"font": "DejaVu Sans Mono",
	"formatOnRun": false,
	"closeBrackets": true,
	"width": 749,
	"height": 1029,
	"envVars": [],
	"analytics": true,
	"prettierConfig": {
		"printWidth": 80,
		"tabWidth": 2,
		"useTabs": false,
		"semi": true,
		"singleQuote": false,
		"quoteProps": "as-needed",
		"jsxSingleQuote": false,
		"trailingComma": "es5",
		"bracketSpacing": true,
		"bracketSameLine": false,
		"arrowParens": "always"
	},
	"babelPlugins": {
		"decoratorsPlugin": false,
		"functionSentPlugin": false,
		"doExpressionsPlugin": false,
		"pipelineOperatorPlugin": false,
		"partialApplicationPlugin": false,
		"throwExpressionsPlugin": false,
		"regexpModifiersPlugin": false
	},
	"babelPresets": {
		"typeScriptPreset": true,
		"reactPreset": false,
		"envPreset": true
	},
	"statementResults": true,
	"tabs": {
		"order": [
			"1f2dd844-584f-4ce1-8dd7-cfb3e2474cb1"
		],
		"activeTabID": "1f2dd844-584f-4ce1-8dd7-cfb3e2474cb1",
		"removedTabID": "3a4b76c8-af7b-4eb1-a754-3b2ff4fa07f5",
		"3a4b76c8-af7b-4eb1-a754-3b2ff4fa07f5": {
			"saveFilePath": "XXXX",
			"unsaved": false,
			"title": "",
			"arrangement": {
				"direction": "horizontal",
				"editor": {
					"size": 55
				},
				"outputGroup": {
					"size": 45
				}
			}
		},
		"1f2dd844-584f-4ce1-8dd7-cfb3e2474cb1": {
			"saveFilePath": "XXXX",
			"unsaved": true,
			"title": "",
			"arrangement": {
				"direction": "horizontal",
				"editor": {
					"size": 55
				},
				"outputGroup": {
					"size": 45
				}
			}
		}
	},
	"tabBarForSingleTab": true,
	"autocomplete": true,
	"diagnostics": false,
	"signatures": false,
	"hoverInfo": true,
	"horizontalLayout": true,
	"scrolling": "auto",
	"confirmClose": false,
	"systemNode": false,
	"renewReminder": true,
	"outputHighlighting": true,
	"autoUpdates": true,
	"showActivityBar": true,
	"misc1": "nyJ+0WpaoTJbGVu7woMxdjq2BP3DvZsxFXpmdWhHpgTG",
	"misc2": "FygXJBUrcA5C1MsEWi5NYzq/Yaz4JVJdY2VZmJqbzE85",
	"theme": "dracula",
	"currentVersion": "3.0.3",
	"firstOpen": false,
	"x": 1372,
	"y": 218,
	"hasValidLicense": true,
	"licenseKey": "XXXX",
	"newMachineId": true,
	"updateReady": false,
	"hasUpdated": false
}

@lukehaas
Copy link
Owner

Thanks for providing this, and thanks for replacing the confidential info; I should have mentioned that.

The config seems completely fine and valid so it's unclear what the issue could have been.

It would be very helpful If you could provide a copy of your debug log, which may have some extra clues. You can access this via the help menu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants