I downloaded VS code and was trying to run a particular julia code. I ran into this error that says "Cannot read properties of undefined (reading 'file')". Now I have looked at a bunch of similar questions on here, but most of them pertains to remote accessing VS code (SSH) and that is not what I'm dealing with here. What have I done wrong here?
I saw from a link that it probably has to do with accessing Julia itself. I included the path directory to Julia under Settings. Under settings, it says that "Could not start the Julia language server. Make sure the julia.executablePath setting points to the Julia binary.". I have the same path included in the User, Workspace, and src Folder
When I go back to my main code and run it, it says that the "Path to shell executable" does not exist. What is going on here?
The "Cannot read properties of undefined" error occurs with the JavaScript of VC Code when you try to access a property or a method on a variable that stores an undefined value. In this case, it is likely that a pathname associated with Julia is not defined or points to a file which does not exist.
The error is likely related to the message you quote as "Make sure the julia.executablePath setting points to the Julia binary." Check the pathname for Julia's binary. In particular, look at the path for improperly set slashes, drive names, or backslashes, since sometimes the path separator '/' or '\\' is not being used properly in your executablePath setting even if the Julia binary is where it should be.
Related
Can not extract resource from com.android.aaptcompiler.ParsedResource#d5789c4.,Can not extract resource from com.android.aaptcompiler.ParsedResource#57808e1e.
i had the same message of error and it resulted to be this annoying litle mistake in the color resource file: the double angle bracket, which by the way the compliler doesn't highlights
>#color/gris_oscuro
This is likely a problem in some resource file. I think it's very frustrating, the error message says "Check logs for more details" but I am not sure how to get the logs.
I had a similar problem and after many attempts I exited Studio, manually removed the build directory, and tried again. This time I did see a log, and they pointed at my strings.xml file, which I was able to fix.
By the way, I realized that if you run "Compile some_file.xml" from the Build menu, you'll get the error even if the error is somewhere else. So this is not helpful.
(FWIW, my error had to do with a single quote inside a [[CDATA]] block. I thought that Xml allows any text inside CDATA, but maybe Studio is less forgiving. Anyway, your error is probably something else, you'll just have to find it.)
I see here that people discuss how to get grade logs. I was not able to run gradlew from the terminal (I am on macOS) but that seems to be the official way to get lgs.
Check colors.xml and strings.xml file. I had error in colors.xml. I had written wrong color code of two colors. That is why I was getting this error.
I have a script on a machine that has multiple versions of Photoshop that looks for any open version of Photoshop (in this case CS6) and saves the name as a variable called AppName.
It seems to work fine for checking "If AppName is running" but later on down the script I have "tell application ... " and when I start doing things inside there, I get error 1728.
Example: I have CS6 open and one image open.
tell application AppName
log count documents
log file path of document 1
end tell
That would generate
(*1*)
(*Adobe Photoshop CS6 got an error: Can't get path. - -1728*)
It works perfectly fine if I just enter "Adobe Photoshop CS6" or "com.adobe.photoshop", but for various reasons I can't do that and need it to remain a variable.
Anyone have any ideas? =/
The argument of tell application must be a literal string (a constant) because the terminology is evaluated at compile time.
The only way to evaluate AppleScript terminology beside tell application is an using terms from block frequently used in event handlers for example
using terms from application "Adobe Photoshop CS6"
end using terms from
but this requires also a constant as argument. The implementation depends on the context.
Have been using Ndisgen to try to generate a .ko kernel module for an rtl8192se driver for my Freebsd 9 netbook having followed instructions found on several different dev blogger sites.
Somehow, i've just not been able to generate a file with extension .ko. Instead, i keep getting a .kmod file.
Question is, what is the difference between these ?
I have also attempted kldload for this .kmod file. When i check it via kldstat, ok, i see it there but, when i then check with dmesg and pciconf -lv, my realtek card is still not hooked up.
So i reckon i really need to generate the .ko file in the first place, but what am i doing wrong or missing, such that only a kmod is generated?
Any pointers would be appreciated! thanks! :)
Update::
There was a message I had ignored.
My bad!
the message after conversion was :
"...Cleaning up... rm: machine: is a directory cleanup failed.Exiting"
That's all because i had pasted a copy of the "/usr/include/machine" folder with all the headers i thought was required in the path where I was converting the driver.
But i ignored it thinking, well since ndisgen had already created a .kmod file(which was what I had assumed was also a kernel module, just not in .ko form) then it was alright.
SO finally, since it's complaining that it's a directory and can't be cleaned, i then created a symbolic link to that folder instead.
Et voila! the clean was successful and now i have the .ko file! :D
The ndisgen script renames the .ko file to .kmod temporarily to do some cleanup.
If that cleanup works, it should rename it back to a .ko file. See the drvgen function /usr/src/usr.sbin/ndiscvt/ndisgen.sh.
I'm assuming that something goes wrong in between both renames. Do you get any error messages?
Keep in mind that if you load the driver, it should show up as the ndis0 device!
Looks like you are getting a NetBSD kernel module, not a FreeBSD one. See these posts:
hubertf's NetBSD Blog
Modern net bsd kernel module
Is the source code that you are using available publicly for us to try follow your steps?
I have a rails app that contains a simple piece of code to create a directory if one does not exist.
FileUtils.mkpath(self.webapp_dir) unless File.exists?(self.webapp_dir)
This behaves as expected on my development workstation (OS X 10.9), but I'm getting errors when deployed to other environments (Red Hat 4.4.6-3).
In my rails console, I ran the following:
FileUtils.mkpath('/path/to/my/project/public/web_apps/1')
Note that on first run, 'public/web_apps/' exists, but '1' does not. This succeeds. I can run it again with the whole path already existing, and it succeeds without error every time.
Now, I try to run the same code in the rails console in the production environment. Again, 'public/web_apps/' already exists, but '1' does not. In this case I get an error.
FileUtils.mkpath('/path/to/my/project/public/web_apps/1')
--> Errno::EEXIST: File exists - /path/to/my/project/public/web_apps
Does anyone know why this behaves differently between the two machines, and what I can do about it? I suppose I could go through and check each directory in the path and create it only if it doesn't exist, but that's what I would have already expected mkpath to do.
I've found other differences between how other functions that interact with the file system behave (like how File.size does not immediately report the correct value after a file write unless you open it first). I haven't been able to find any mention of these differences in behavior in any documentation or other SO posts though, and I seem to keep stumbling upon them which is getting a little frustrating now. Is this a known thing, and how do other apps account for this?
This was actually all due to a broken sym link =(.
So web_apps was actually a sym link to a shared directory that did not exist on our servers. On my dev machine it did exist. This was not horribly obvious due to the "File exists" error.
Our deployment scripts were building the sym links without first checking if that directory actually existed. Bah.
This looks to be a permission issue, the directories are created if they DON'T exist, otherwise you don't get any errors.
Look at the owner of '/path/to/my/project/public/web_apps/'
Just wondering if anyone might know what's happening here. I have several schema.yml files, and when I try to build model classes using symfony propel:build-model I don't get any error message, however instead of any classes being generated I get xml files generated in the same config folder as the schema yml files. i.e. if I have a file named logger_schema.yml in the config directory, after I run build-model, I will also have a generated-logger_schema.xml file in the config directory as well, and no generated classes.
Any idea what could be causing this?
The XML file in question is a worker file symfony/Propel creates as part of the class generation process - it's not an "error" as such.
symfony CLI tasks require quite a lot of PHP memory, especially on Windows. If the Propel task is failing, I would recommend a permanent change to the php.ini file setting on memory allocation to at least 256M. I know this seems high, but you should only ever need these tasks on a development machine. As you note, you saw evidence of memory exhaustion on another related task.
If that doesn't fix it, could you add to your question all of the CLI output when you run the task? It might shed some light on the step which is failing.
After looking at this ticket, it appears the XML files are likely the result of a symfony error, despite the fact that I repeatedly got no error message using propel:build-model. After trying propel:build --model --forms, I did in fact get a "memory exhausted" error, which was solved by temporarily increasing the PHP memory limit.