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

Error on interpreter startup #1448

Closed
ceremona opened this issue May 5, 2015 · 6 comments
Closed

Error on interpreter startup #1448

ceremona opened this issue May 5, 2015 · 6 comments
Assignees
Labels
bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. comp: help schelp documentation good first issue indicates issue tickets that are suitable for a new contributor
Milestone

Comments

@ceremona
Copy link

ceremona commented May 5, 2015

Bug description: On starting the new SC 3.7 prerelease build on OSX 10.8 I get:
SCDoc: Indexing help-files...
ERROR: Message 'isPathSeparator' not understood.
RECEIVER:
nil
ARGS:

PROTECTED CALL STACK:
Meta_MethodError:new 0x114eae9c0
arg this = DoesNotUnderstandError
arg what = nil
arg receiver = nil
Meta_DoesNotUnderstandError:new 0x114eb0980
arg this = DoesNotUnderstandError
arg receiver = nil
arg selector = isPathSeparator
arg args = [ ]
Object:doesNotUnderstand 0x114a06440
arg this = nil
arg selector = isPathSeparator
arg args = nil
PathName:entries 0x115a16040
arg this = PathName()
var path =
PathName:folders 0x115a18000
arg this = PathName()
a FunctionDef 0x114da5840
sourceCode = ""
arg dir = PathName()
ArrayedCollection:do 0x115abc540
arg this = [ /Users/cere/Library/Application Support/SuperCollider/Extensions, /Library/Application Support/SuperCollider/Extensions, ]
arg function = a Function
var i = 2
Meta_SCDoc:helpSourceDirs 0x114da5300
arg this = SCDoc
var find = a Function
var rootPaths = [ /Users/cere/Library/Application Support/SuperCollider/Extensions, /Library/Application Support/SuperCollider/Extensions, ]
Meta_SCDoc:indexAllDocuments 0x114da0900
arg this = SCDoc
arg clearCache = false
var now = 1.248405106
var key = nil
var doc = nil
var nonHelpFiles = nil
var undocClasses = IdentitySet[ GrayNoise, TapN, StartUp, Error, TdefGui, AbstractPlayControl, SymbolArray, Plambda, Ppar, JITGui, CurveWarp, Int8Array, SinGrainIBF, SoftClipAmp, UHJ2B, ScaleInfo, Pen, BLBufRd, TouchResponder, PV_Cutoff, BusScopeSynth, OteyPiano, Switch1, Poll, DelayC, Function, Prout, QPen, FuncFilterPattern, BendResponder, AbstractIn, Rest, TabFileReader, CleanupStream, FoaDominateX, Pseg, Ref, DragView, FeatureSave, Pevent, SCViewHolder, BufGrain, PowerOfTwoBlock, CheapVerb, RMShelf, FFTSubbandPower, HDR, ...etc...
var additions = Dictionary[ ]
Meta_SCDoc:documents 0x114da5180
arg this = SCDoc
Meta_SCDoc:prepareHelpForURL 0x114da90c0
arg this = SCDoc
arg url = file:///Users/cere/Library/Application Support/SuperCollider/Help/Help.html
var path = /Users/cere/Library/Application Support/SuperCollider/Help/Help.html
var targetBasePath = /Users/cere/Library/Application Support/SuperCollider/Help
var pathIsCaseInsensitive = false
var subtarget = Help
var src = nil
var c = nil
var cmd = nil
var doc = nil
var destExist = true
var destMtime = 1430775913
var verpath = /Users/cere/Library/Application Support/SuperCollider/Help/version
a FunctionDef 0x114d01e40
sourceCode = ""
Function:prTry 0x11510ce80
arg this = a Function
var result = nil
var thread = a Routine
var next = nil
var wasInProtectedFunc = true

CALL STACK:
DoesNotUnderstandError:reportError 0x116c6d848
arg this =
< closed FunctionDef > 0x116beca58
arg error =
Integer:forBy 0x1163cef38
arg this = 0
arg endval = 0
arg stepval = 2
arg function =
var i = 0
var j = 0
SequenceableCollection:pairsDo 0x116e06968
arg this = [*2]
arg function =
Scheduler:seconds_ 0x116e07818
arg this =
arg newSeconds = 1.252734415
Meta_AppClock:tick 0x1176e20b8
arg this =
var saveClock =
Process:tick 0x1176ef698
arg this =
^^ The preceding error dump is for ERROR: Message 'isPathSeparator' not understood.
RECEIVER: nil

Steps to reproduce:

  1. Download sc 3.7 prerelease build
  2. Start SC app from within the built folder

Actual result:

Expected result:

@crucialfelix
Copy link
Member

The problem is that you have a blank line added to your include paths

this is an array of 3 items, the last one is ""

arg this = [ /Users/cere/Library/Application Support/SuperCollider/Extensions, /Library/Application Support/SuperCollider/Extensions, ]

Look at LanguageConfig.includePaths

To fix it open the preferences and remove the bad entry.

The system shouldn't break though, so there is a bug here to fix.

@crucialfelix crucialfelix added comp: help schelp documentation good first issue indicates issue tickets that are suitable for a new contributor labels May 5, 2015
@ceremona
Copy link
Author

ceremona commented May 5, 2015

Hrm. Can you tell me which file to look at? Based on what you are saying this would come from the sclang_conf.yaml file:
includePaths:
- ""
excludePaths:
[]
postInlineWarnings: false

When I vi into this file, I don't see a blank line.

@crucialfelix
Copy link
Member

your first line in includePaths is ""

its an empty string

the error is happening because its trying to get the first character of ""
(to see if its a path separator)
and that returns nil

// index out of bounds returns nil
""[0]

On Tue, May 5, 2015 at 8:41 AM ceremona notifications@github.com wrote:

Hrm. Can you tell me which file to look at? Based on what you are saying
this would come from the sclang_conf.yaml file:
includePaths:

  • ""
    excludePaths:
    []
    postInlineWarnings: false

When I vi into this file, I don't see a blank line.


Reply to this email directly or view it on GitHub
#1448 (comment)
.

@bagong
Copy link
Contributor

bagong commented May 5, 2015

An autogenerated empty sclang_config.yaml looks like this:

includePaths:
    []
excludePaths:
    []
postInlineWarnings: false

@scztt scztt added this to the 3.7 milestone May 5, 2015
@scztt scztt added the bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. label May 5, 2015
@telephon
Copy link
Member

Can you check if this fixes it for you? Otherwise, feel free to reopen.

@ceremona
Copy link
Author

Yes, I cleared out the delimeters in the .yaml file and that seemed to fix things. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. comp: help schelp documentation good first issue indicates issue tickets that are suitable for a new contributor
Projects
None yet
Development

No branches or pull requests

5 participants